use-config-profile 0.1.0

Primitive runtime and deployment profile names for RustUse
Documentation
  • Coverage
  • 100%
    9 out of 9 items documented1 out of 3 items with examples
  • Size
  • Source code size: 6.8 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 413.74 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 4s Average build duration of successful builds.
  • all releases: 4s 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-profile

Primitive runtime and deployment profile names.

use-config-profile models profile names such as local, development, test, staging, production, and custom names. Common aliases like dev and prod normalize to stable variants.

use std::str::FromStr;
use use_config_profile::ConfigProfile;

assert_eq!(ConfigProfile::from_str("dev").unwrap(), ConfigProfile::Development);
assert_eq!(ConfigProfile::Custom("preview".to_owned()).to_string(), "preview");

Profiles carry no file, environment, secret, or runtime behavior.