Skip to content

Commit 69d154d

Browse files
committed
Persistable and procmacros - unstable
1 parent 08af626 commit 69d154d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

esp-hal/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,8 @@ mod macros;
194194
#[cfg_attr(docsrs, doc(cfg(feature = "unstable")))]
195195
pub use procmacros::load_lp_code;
196196
#[cfg_attr(docsrs, doc(cfg(feature = "unstable")))]
197+
#[instability::unstable]
198+
#[cfg_attr(not(feature = "unstable"), allow(unused))]
197199
pub use procmacros::{handler, ram};
198200

199201
// can't use instability on inline module definitions, see https://github.com/rust-lang/rust/issues/54727
@@ -364,6 +366,7 @@ pub use private::Internal;
364366
/// reset occurs during a write or a reset interrupts the zero initialization
365367
/// on first boot.
366368
/// - Structs must contain only `Persistable` fields and padding
369+
#[instability::unstable]
367370
pub unsafe trait Persistable: Sized {}
368371

369372
macro_rules! impl_persistable {
@@ -381,6 +384,7 @@ impl_persistable!(atomic AtomicU8, AtomicI8, AtomicU16, AtomicI16, AtomicU32, At
381384
unsafe impl<T: Persistable, const N: usize> Persistable for [T; N] {}
382385

383386
#[doc(hidden)]
387+
#[instability::unstable]
384388
pub mod __macro_implementation {
385389
//! Unstable private implementation details of esp-hal-procmacros.
386390

0 commit comments

Comments
 (0)