Crate allow_until

Source
Expand description

§allow-until

Allows an item until a specified semver version, and then errors on compilation.

githubcrates-iodocs-rs

#[allow_until(version = ">= 1.0.x", reason = "struct is deprecated from version 1.0.x onwards")]
struct MyStruct {
    //....
}

Or with the derive macro:

#[derive(AllowUntil)]
struct MyStruct {
    #[allow_until(version = ">= 1.0.x", reason = "member is deprecated from version 1.0.x onwards")]
    foo: usize
}

Attribute Macros§

allow_until
Allows an item until a specified semver version, and then errors on compilation.

Derive Macros§

AllowUntil
Allows an item until a specified semver version, and then errors on compilation.