use-config-source 0.1.0

Primitive configuration source identity and precedence metadata for RustUse
Documentation
  • Coverage
  • 100%
    19 out of 19 items documented1 out of 9 items with examples
  • Size
  • Source code size: 7.95 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 439.15 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-source

Primitive configuration source identity and precedence metadata.

use-config-source models where a configuration value came from and how sources compare by priority. It describes source identity only.

use use_config_source::{ConfigSource, ConfigSourceKind};

let source = ConfigSource::named(ConfigSourceKind::Custom("fixture".to_owned()), "baseline", 5);

assert_eq!(source.priority(), 5);
assert_eq!(source.to_string(), "fixture:baseline@5");

This crate does not read files, environment variables, secret managers, or runtime state.