tiron
config-rs
tiron | config-rs | |
---|---|---|
1 | 11 | |
50 | 2,364 | |
- | - | |
8.5 | 8.2 | |
about 1 month ago | 15 days ago | |
Rust | Rust | |
Apache License 2.0 | Apache License 2.0 |
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.
tiron
config-rs
-
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?
confy - 🛋 Zero-boilerplate configuration management in Rust
docs.rs - crates.io documentation generator
itconfig-rs - Easy build a configs from environment variables and use it in globally.
comtrya - Configuration Management for Localhost / dotfiles
rq - Record Query - A tool for doing record analysis and transformation
cargo-xtask
cfg-rs - A Configuration Library for Rust Applications
parse_it - A python library for parsing multiple types of config files, envvars & command line arguments that takes the headache out of setting app configurations.
monoio - Rust async runtime based on io-uring.
portable-simd - The testing ground for the future of portable SIMD in Rust
swift-bridge - swift-bridge facilitates Rust and Swift interop.
salak.rs - A multi layered configuration loader and zero-boilerplate configuration parser.