Skip to content

v0.4.0

Choose a tag to compare

@chuck-flowers chuck-flowers released this 09 Jun 11:10
· 10 commits to master since this release

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.