3 releases
0.1.2 | May 3, 2020 |
---|---|
0.1.1 | Mar 22, 2020 |
0.1.0 | Mar 22, 2020 |
#825 in Configuration
51 downloads per month
Used in chewdata
19KB
66 lines
env_applier
Apply environment variables on an object.
Getting Started
Quick Start
extern crate env_applier;
use env_applier::*;
use std::env::*;
fn main() -> () {
let mut config = r#"{"test":"{{ HOME }}"}"#.to_string();
config = Vars::apply(config);
println!("My new config : {:?}", config);
}
Bench
time: [233.55 us 233.94 us 234.35 us]
change: [-4.4260% -2.9642% -1.5991%] (p = 0.00 < 0.05)
Dependencies
~2–3MB
~53K SLoC