einstellung_derive 0.1.6

Proc-Macro crate for einstellung
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
source: einstellung_derive/src/test.rs
expression: formatted
---
/// --- input ---
#[derive(Config)]
struct ServerConfig {
    host: String,
    port: u16,
    #[config(merge = "foo")]
    is_active: bool,
}

/// --- output ---
::core::compile_error! {
    "Unknown value: `foo`. Available values: `extend`, `function`, `replace`"
}