#env-var #environment #env #boilerplate #startup #encapsulate

envutil

A rust library to encapsulate boilerplate code for handling environment variables

3 releases

0.0.4 Jul 19, 2023
0.0.3 Jul 19, 2023
0.0.2 Jul 16, 2023
0.0.1 Jul 16, 2023

#2118 in Development tools

MIT license

10KB
176 lines

gaia-rs

A rust library to encapsulate boilerplate code for handling environment variables at startup

sample usage

use envutil;

fn add_1() {
    let num: i64 = envutil::get_int("key"); // assume an environment "key" exists
    num + 1
}

No runtime deps