use-config-source 0.1.0

Primitive configuration source identity and precedence metadata for RustUse
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# 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.

```rust
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.