diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2020-01-23 14:04:42 +0100 |
---|---|---|
committer | Daniel Mueller <deso@posteo.net> | 2021-01-10 10:15:44 -0800 |
commit | a7668265d507a7214b312c5dce874f0185b7b09a (patch) | |
tree | ea6252f123910a2f4bad5eac78f33f055af738da /Cargo.toml | |
parent | 9d3c50ca3f9ff0bf12b1b25344959ed333ffbdee (diff) | |
download | nitrocli-a7668265d507a7214b312c5dce874f0185b7b09a.tar.gz nitrocli-a7668265d507a7214b312c5dce874f0185b7b09a.tar.bz2 |
Use envy to parse environment variables for Config
This patch uses the envy crate to parse the environment. A variable
NITROCLI_KEY can be used to overwrite the configuration for *key*. This
has the side effect that the NITROCLI_NO_CACHE variable is evaluated as
a boolean variable (instead of only checking whether it is set). We
also accept two new variables, NITROCLI_MODEL and NITROCLI_VERBOSITY.
Diffstat (limited to 'Cargo.toml')
-rw-r--r-- | Cargo.toml | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -52,9 +52,15 @@ version = "1.0" [dependencies.base32] version = "0.4.0" +[dependencies.envy] +version = "0.4.2" + [dependencies.libc] version = "0.2" +[dependencies.merge] +version = "0.1" + [dependencies.nitrokey] version = "0.7.1" |