use-config-key 0.1.0

Primitive configuration keys, dotted paths, and sections for RustUse
Documentation
  • Coverage
  • 100%
    22 out of 22 items documented1 out of 19 items with examples
  • Size
  • Source code size: 11.32 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 623.16 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-config
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-config-key

Primitive configuration key, path, and section types.

use-config-key models names for configuration values. It supports plain keys such as port and dotted paths such as server.port, while rejecting empty keys and empty path segments.

use use_config_key::ConfigPath;

let path = ConfigPath::parse("server.port").unwrap();
let segments: Vec<_> = path.segments().collect();

assert_eq!(segments, vec!["server", "port"]);
assert_eq!(path.to_string(), "server.port");

This crate only models names. It does not read files, parse configuration formats, or resolve values.