File: inert_derive_helpers.rs

package info (click to toggle)
rust-macro-rules-attribute 0.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 160 kB
  • sloc: sh: 20; makefile: 2
file content (14 lines) | stat: -rw-r--r-- 227 bytes parent folder | download
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,
}