im a new, i was wondering if the rust std supports any configuration languages (like json, yaml, toml) natively
No, this is not in scope of Rust's standard library. We use 3rd party crates for this, namely toml
and serde_json
. With YAML we currently are in a bit of a strange situation where the most widely used implementation, serde_yaml
, was deprecated last year and there currently is no clear successor crate, at least to my knowledge (just please don't use serde_yml
).
On top of what jofas already mentioned, it's worth mentioning also that there are amazing crates for dealing with the configuration
problem, such as figment by Sergio Benitez, the creator of the Rocket web framework.
2 Likes