[go: up one dir, main page]

darling 0.20.11

A proc-macro library for reading attributes into structs when implementing custom derives.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#![allow(dead_code)]

//! Test expansion of enums which have struct variants.

use darling::FromMeta;
#[derive(Debug, FromMeta)]
#[darling(rename_all = "snake_case")]
enum Message {
    Hello { user: String, silent: bool },
    Ping,
    Goodbye { user: String },
}

#[test]
fn expansion() {}