Crates.io | env_applier |
lib.rs | env_applier |
version | 0.1.2 |
source | src |
created_at | 2020-03-22 16:25:18.265139 |
updated_at | 2020-05-03 18:12:46.595839 |
description | Apply environment variables on an object |
homepage | |
repository | https://github.com/jmfiaschi/env_applier |
max_upload_size | |
id | 221461 |
size | 55,583 |
Apply environment variables on an object.
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);
}
time: [233.55 us 233.94 us 234.35 us]
change: [-4.4260% -2.9642% -1.5991%] (p = 0.00 < 0.05)