use-config-secret 0.1.0

Primitive secret references and redacted values for RustUse configuration helpers
Documentation
  • Coverage
  • 100%
    10 out of 10 items documented1 out of 10 items with examples
  • Size
  • Source code size: 7.44 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 485.38 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 7s Average build duration of successful builds.
  • all releases: 7s 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-secret

Primitive secret references and redacted value wrappers.

use-config-secret models references to secrets and values that should not leak through accidental display or debug formatting. It does not store secrets, encrypt secrets, or talk to secret managers.

use use_config_secret::{Redacted, SecretRef};

let reference = SecretRef::new("database/password").unwrap();
let value = Redacted::new("super-secret");

assert_eq!(reference.to_string(), "secret:database/password");
assert_eq!(value.to_string(), "[redacted]");
assert_eq!(format!("{value:?}"), "[redacted]");

Redacted<T> deliberately keeps Debug and Display output redacted.