schematic
schematic copied to clipboard
Configuration and schema crate.
If there is a single nested field without comment in a config, the template generator fails: Output is invalid YAML: ```yml nested: one: true ``` Minimal example: ```rs #[derive(Debug, Clone,...
I was wondering if it would be possible to add a validation function for `is_uuid` (https://docs.rs/schematic/latest/schematic/validate/index.html).
Resolves #148 Allows for forwarding additional attributes to the generated partial struct/enum. This is particularly useful for integration with CLI parsing crates like `clap` as you can now create a...
Hey, thanks for making this library. I've been really enjoying it. Recently, I wanted to see if it would be easy to support the common three-layered configuration approach of CLI...
# There is an compilation error during the `schematic_macro` compilation. ``` Compiling schematic_macros v0.17.8 error: Unexpected type `lit` --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/schematic_macros-0.17.8/src/common/field.rs:44:22 | 44 | #[darling(with = "preserve_str_literal", map = "Some")] |...
Rewriting the macro and traits from the ground up...
This is a rough draft, that is probably incomplete, but does compile on my end (I haven't tested it at runtime yet). I wanted to see how invasive it was...
Sometimes you want users to be able to define in their configuration how a certain option should merge with existing values. For example, if I have: ```rust #[derive(Config)] struct MyConfig...
The docs mention supporting non-String types for the enum fallback value, but the implementation errors when doing so, because of the `Display` impl expecting the fallback variant to return a...
With it, I would be able to write ```rust #[setting(default = LevelFilter::Debug)] pub log_level: LevelFilter, ``` rather than ```rust #[setting(default = parse_log_level_str("debug"))] pub log_level: LevelFilter, ```