confy
🛋 Zero-boilerplate configuration management in Rust (by rust-cli)
config-rs
⚙️ Layered configuration system for Rust applications (with strong support for 12-factor applications). (by mehcode)
Our great sponsors
confy | config-rs | |
---|---|---|
3 | 11 | |
846 | 2,326 | |
2.5% | - | |
5.0 | 8.4 | |
about 2 months ago | 12 days ago | |
Rust | Rust | |
GNU General Public License v3.0 or later | Apache License 2.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
confy
Posts with mentions or reviews of confy.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-12-15.
-
How do you manage configuration in rust?
I'd really recommend confy! It does exactly what you seem to want and supports YAML, TOML, and RON :)
-
[Media] I made a Rust CLI game that tests how fast you can guess the language of a code block!
I use confy for persisted data (just the token and high score for now) because I don't know the best practices for where to put those kinds of files, which stores it as TOML.
-
OS agnostic crate to save user config
Confy might do it for you : https://github.com/rust-cli/confy
config-rs
Posts with mentions or reviews of config-rs.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-12-05.
-
Hey Rustaceans! Got a question? Ask here (49/2023)!
I like config.rs, but I am struggling to overwrite config profiles with environment variables. The desired config is mixed, like .toml
-
Is there a pydantic.BaseSettings equivalent in rust?
Consider config crate. It could be like:
-
How do you store and pass credentials?
I've been using Config most of the time. I also use once_cell to make it a static variable.
-
How do you manage configuration in rust?
I've enjoyed using this one: https://crates.io/crates/config
- Blessed.rs – An unofficial guide to the Rust ecosystem
-
Hey Rustaceans! Got a question? Ask here! (28/2022)!
Anyone know of a library like https://github.com/netflix/go-env but for rust? I found https://github.com/mehcode/config-rs but it's just not as simple...
-
How do you merge config in Rust with a default?
I was just in that space today. The config crate has an example you might find useful: https://github.com/mehcode/config-rs/tree/master/examples/hierarchical-env
-
[ANN] cfg-rs 0.2.0 release
How it differs from config?
-
Best way to set environment for Rust App
Checking an environment variable is very easy with std::env::var or similar. If you have other bits of configuration that also change—which is typical; things like DB connection strings—you may consider a more full-featured solution like https://docs.rs/config/0.10.1/config/ (pay particular attention to this example, which seems to be very close to what you want: https://github.com/mehcode/config-rs/blob/master/examples/hierarchical-env/src/settings.rs ).
-
Good way to set up default configurations
It's unfortunate, it looks like there was an attempt to get someone else to maintain it here, but no one ended up really stepping up to the plate.
What are some alternatives?
When comparing confy and config-rs you can also consider the following projects:
itconfig-rs - Easy build a configs from environment variables and use it in globally.
docs.rs - crates.io documentation generator
syntect - Rust library for syntax highlighting using Sublime Text syntax definitions.
nickel - Better configuration for less
comtrya - Configuration Management for Localhost / dotfiles
guess-that-lang - CLI game to see how fast you can guess the language of a code block!
rq - Record Query - A tool for doing record analysis and transformation
uclicious - Uclicious is a flexible reduced boilerplate configuration framework.
cargo-xtask
language-guesser
cfg-rs - A Configuration Library for Rust Applications