Attribute Macro unstable

Source
#[unstable]
Expand description

Marks a function or struct (item) as unstable and guards it behind a feature flag.

The defining crate is allowed to use functions marked as unstable even when the feature is disabled.

ยงExamples

#[rust_libretro_proc::unstable(feature = "name")]
fn my_example_function() { }
// We must add an empty `rust_libretro_proc::unstable` attribute to the struct,
// in order to process the struct items.
#[rust_libretro_proc::unstable]
struct Example {
    pub stable_struct_item: bool,

    #[unstable(feature = "name")]
    pub unstable_struct_item: bool,
}