Expand description
This is the library documentation for code which is used in the binary cfgrs, which is likely
what you’re looking for.
This can be found at https://github.com/tveness/cfgrs/releases
or alternatively can be installed with cargo install cfgrs.
cfgrs is a small CLI helper tool for converting between different configuration formats. The current formats supported are:
- hcl
- json
- toml
- yaml
These formats are not completely interchangeable, and as such if they cannot be converted an error is currently raised.
cfgrs may be used in the following way to convert between formats:
cat Cargo.toml|cfgrs -o yamlwhich will then display a Cargo.toml file in its yaml representation (if this is possible)
Structs§
- Parse
Config Error - Error type for parsing input
Enums§
- Config
Type - Lists different configuration file formats supported
- Parsed
Input - Wrapper for the different crates’ parsed input e.g.
serde_json::Valuegets wrapped byJson