Attribute Macro allow_until::allow_until
source · #[allow_until]Expand description
Allows an item until a specified semver version, and then errors on compilation.
#[allow_until(version = ">= 1.0.x", reason = "struct is deprecated from version 1.0.x onwards")]
struct MyStruct {
//....
}