denv

Crates.iodenv
lib.rsdenv
version0.3.0
sourcesrc
created_at2017-01-03 19:34:57.066071
updated_at2021-09-10 15:06:06.179462
descriptionLoad environment variables from .env file
homepagehttps://github.com/eagletmt/denv-rust
repositoryhttps://github.com/eagletmt/denv-rust
max_upload_size
id7904
size12,838
Kohei Suzuki (eagletmt)

documentation

README

denv-rust

Build Status crates.io

Load environment variables from .env file.

CLI usage

Usage: denv [OPTIONS] COMMAND...

Options:
    -f, --filename FILENAME
                        Path to .env file
    -h, --help          Print help
% cat .env
FOO=bar
% denv printenv FOO
bar
% cat hoge.env
HOGE=fuga
% denv -f printenv HOGE
fuga

Library usage

denv::load("/path/to/.env").expect("Unable to load .env file");

Acknowledgment

Original implementation is written by taiki45. https://github.com/taiki45/denv

Commit count: 21

cargo fmt