v_utils_macros 2.11.52

Macros for my utils crate
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use v_utils_macros::SettingsNested;

// Unknown struct-level `#[settings(...)]` ident must be a hard error. A typo here
// (e.g. `prefxi` instead of `prefix`) would otherwise silently fall back to the
// default prefix, producing wrong flag names and config paths with no diagnostic.
#[derive(Clone, Debug, Default, SettingsNested)]
#[settings(prefxi = "strategy")] //~ ERROR: unknown `prefxi`
pub struct BadConfig {
	pub nested: u32,
}

fn main() {}