apollo-configuration-macros 0.1.1

Supporting macros for apollo-configuration (internal, do not use directly)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::derive_configuration_struct;

#[test]
fn deny_tuple_struct() {
    let result = derive_configuration_struct(
        Default::default(),
        syn::parse_quote! {
            struct MyConfig(Inner);
        },
    );

    let Err(err) = result else {
        panic!("tuple struct should return error");
    };
    assert_eq!(err.to_string(), "tuple structs are not yet supported");
}