Skip to content

Commit

Permalink
Mention rs-env and direnv tools in Step 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
tyranron committed Sep 14, 2023
1 parent 5fccb09 commit 5f9ce58
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 3_ecosystem/3_9_cmd_env_conf/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ However, most of the time you want to operate with typed data, not with raw stri

It's worth mentioning, that [`clap`] crate is [able to parse from environment variables][7] too, which is super handy when it comes to backing your [CLI] with [environment variables][2].

Finally, [`dotenv`] crate should be mentioned. It sets [environment variables][2] basing on [`.env` file][8] contents, which is widely used convention to simplify environment configuration and to omit declaring all the required environment variables by hand each time when running some program. This one is especially _useful in development_.
Finally, [`dotenv`] crate should be mentioned. It sets [environment variables][2] basing on [`.env` file][8] contents, which is widely used convention to simplify environment configuration and to omit declaring all the required environment variables by hand each time when running some program. This one is especially _useful in development_ (consider also [`rs-env`] and [`direnv`] for better development experience).

For better understanding and familiarity with [environment variables][2] tools in [Rust] ecosystem, read through the following articles:
- [Rust Book: 12.5. Working with Environment Variables][3]
Expand Down Expand Up @@ -107,8 +107,10 @@ After completing everything above, you should be able to answer (and understand

[`clap`]: https://docs.rs/clap
[`config`]: https://docs.rs/config
[`direnv`]: https://direnv.net
[`dotenv`]: https://docs.rs/dotenv
[`envy`]: https://docs.rs/envy
[`rs-env`]: https://github.com/sysid/rs-env
[`serde`]: https://docs.rs/serde
[`std::env`]: https://doc.rust-lang.org/std/env/index.html
[`std::env::Arg`]: https://doc.rust-lang.org/std/env/struct.Args.html
Expand Down

0 comments on commit 5f9ce58

Please sign in to comment.