env_applier

Crates.ioenv_applier
lib.rsenv_applier
version0.1.2
sourcesrc
created_at2020-03-22 16:25:18.265139
updated_at2020-05-03 18:12:46.595839
descriptionApply environment variables on an object
homepage
repositoryhttps://github.com/jmfiaschi/env_applier
max_upload_size
id221461
size55,583
jm.fiaschi (jmfiaschi)

documentation

README

env_applier

Actions Status

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)
Commit count: 11

cargo fmt