Derive Macro AllowUntil

Source
#[derive(AllowUntil)]
{
    // Attributes available to this derive:
    #[allow_until]
}
Expand description

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

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