v0.4.0
Features
Array Parameter Values
Attribution now supports parameters which accept a collection of parameter values. These are expressed as array literals in the attribute.
Example
#[attr_args]
struct AttrArgs {
array: Vec<i64>
}
#[my_attr(array = [1, 2, 3])]
fn foo() {
// ...
}Bug Fixes
- Fixes an issue where tagging an enum with the
#[attr_args]attribute would cause warnings to be generated on all variants.