Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression. Learn more →
Top 10 Rust Configuration Projects
-
config-rs
⚙️ Layered configuration system for Rust applications (with strong support for 12-factor applications).
Consider config crate. It could be like:
-
Project mention: Announcing Nickel 1.0, a configuration language written in (and usable from) Rust | /r/rust | 2023-06-08
The LSP is aware of contracts (and the rest of the tooling, in particular `nickel query`) and is able to show "types" (really contracts), documentation, provide completion and so on. You can take a look at a simple Kubernetes example here: https://github.com/tweag/nickel/blob/master/examples/record-contract/record-contract.ncl
-
SonarLint
Clean code begins in your IDE with SonarLint. Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.
-
I'd really recommend confy! It does exactly what you seem to want and supports YAML, TOML, and RON :)
-
kcl
A constraint-based record & functional language mainly used in configuration and policy scenarios.
Project mention: Show HN: The KCL Programming Language for DevOps | news.ycombinator.com | 2023-06-07 -
dotter-rs -- config manager with templates
-
Project mention: Ask HN: How do you manage dotfiles and provision machines? | news.ycombinator.com | 2023-05-26
Probably true but as an aging and burned out dev I really hoped that there would be some ready and baked solutions by mid-2023, you know.
It's actually quite the glaring hole in dev tooling. Everyone formulating their own cloud or GIT synced adhoc scripts is a huge waste of energy IMO!
Guess I'll have to start allocating time and check out Ansible, Chef and Puppet (I heard they can do OS- and distro-agnostic package management which sounds promising). Or, since I have no plans to use Windows for anything except gaming ever again and will stick to Macs and Linux machines, then I'll just carefully compose a few bash/zsh scripts with some package manager shims and command/arguments translation and nail that and use it to my grave.
Still, I really expected dev tooling to be better. It's weird how each one of us has to invent their own package syncing manager.
The only tool I was able to find is https://github.com/tversteeg/emplace -- but I am still fighting with it and I can't even make it use config file on a custom location, and it does seem semi-defunct. Will research it a bit, still have hope it'll work but likely not. Oh well.
-
Project mention: Confique 0.2.0 released: a type-safe, layered configuration library | /r/rust | 2022-10-21
I also thought about some form of integration with clap. Confique currently doesn't but yeah, it sounds like something I could add. I have to properly explore the design space there first. I created an issue on that topic: https://github.com/LukasKalbertodt/confique/issues/19
-
InfluxDB
Access the most powerful time series database as a service. Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.
-
Project mention: autokernel 2.0.1 | A kernel configuration tool that guarantees semantic correctness | /r/linux | 2022-11-14
-
cvars
Configuration variables and consoles for games in Rust. An alternative to inline_tweak / const-tweaker with different tradeoffs.
-
Rust Configuration related posts
- Show HN: The KCL Programming Language for DevOps
- Is there a pydantic.BaseSettings equivalent in rust?
- Rewrite it in Rust: Kubernetes
- Nickel v1.0.0
- Ron: Rusty Object Notation
- The KCL programming language v0.4.6 is out! Kustomize/Helm/KPT integrations and new VS code extension
- KCL v0.4.6 is Coming — Rust-Based IDE Extension, Helm/Kustomize/KPT Integrations
-
A note from our sponsor - InfluxDB
www.influxdata.com | 8 Jun 2023
Index
What are some of the best open-source Configuration projects in Rust? This list will help you:
Project | Stars | |
---|---|---|
1 | config-rs | 1,951 |
2 | nickel | 1,493 |
3 | confy | 729 |
4 | kcl | 566 |
5 | dotter | 566 |
6 | emplace | 214 |
7 | confique | 117 |
8 | autokernel | 74 |
9 | cvars | 36 |
10 | cfg-rs | 36 |