use-config-profile 0.1.0

Primitive runtime and deployment profile names for RustUse
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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.

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