macro_rules_attribute 0.2.2

Use declarative macros in attribute or derive position
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[macro_use]
extern crate macro_rules_attribute;

use ::serde::Serialize;

derive_alias! {
    #[derive(Nothing!)] = #[derive()];
}

#[derive(Nothing!, Serialize)]
#[serde(rename_all = "snake_case")]
struct Foo {
    x: i32,
}