strict-env

Crates.iostrict-env
lib.rsstrict-env
version0.1.2
sourcesrc
created_at2021-04-13 05:29:47.017239
updated_at2021-04-16 01:59:05.512562
descriptionParse config values from environment variables
homepage
repositoryhttps://github.com/andybarron/strict-env-rs
max_upload_size
id382703
size20,996
mio-core (github:tokio-rs:mio-core)

documentation

README

strict-env

Parse config values from environment variables

Documentation Build status Test coverage
crates.io Downloads Rust version
MIT license

Resources

TL;DR

std::env::set_var("PORT", "9001"); // or e.g. dotenv::dotenv()
let port: u16 = strict_env::parse("PORT")?;
assert_eq!(port, 9001);
Commit count: 18

cargo fmt