DEV Community

Managing Application Config in Rust

Miles on September 18, 2023

One of the tenets of a Twelve-Factor app is to store application configs in the environment the application is deployed to. To pass config values t...
Collapse
 
asad199866 profile image
Asad

would have liked to see more about handling secret or sensitive configuration data securely. a good starting point though

Collapse
 
boshragirl22 profile image
Boshra Hasn

this was very helpful, thanks

Collapse
 
rimarima profile image
Rima

good intro, but I would have liked a deeper dive into advanced scenarios like dynamic config reloading or integration with configuration management tools.

Collapse
 
jollanar profile image
jollanar

The explanation of reading from environment variables is useful, especially for containerized applications. Good to know that Rust's standard library can handle it without extra crates.

Collapse
 
benurio profile image
benurio

i enjoyed this article, very informativea nd well structured

Collapse
 
rasel37 profile image
rasel

finally a clear and solution to managing configs in rust! Ive been struggling with it. The ConfigProvider trait idea is brilliant for handling different sources.

Collapse
 
sanafande profile image
Sana fande

While I found the article informative, I wish it had included more advanced techniques or real-world examples of managing complex configurations in Rust applications...

Collapse
 
mozamme60304785 profile image
Mozammel Hoque

I liked the usage of the dotenv crate for reading config values from a .env file. It simplifies the process and makes it more organized for different environments.

Collapse
 
marlainasari profile image
Marlena sari

The use of the expect() method for mandatory config values is a good practice! It ensures that the application won't start if critical config data is missing.

Collapse
 
maisalkbaily profile image
Mais alkbaily

good, easy to undestand read! lots of helpful advice

Collapse
 
ellameller1 profile image
Ella Meller

I can already tell that the section on reading from command line arguments using argmap is going to save me a lot of time.

Collapse
 
rorr profile image
rorr

the section on reading from command line arguments really helped with my project. straightforward and effective!

Collapse
 
jalalyunus7 profile image
Jalal Yunus

I found the article well-structured and easy to follow. Nicealy done

Collapse
 
mohsin12 profile image
Mohsin Khan

a great guide for managing application configs in Rust. the explanation of reading from environment variables was very helpful for my project.