Cargo Features
subst has no features set by default.
[dependencies]
subst = { version = "0.3.3", features = ["json", "toml", "yaml", "preserve-order", "doc-cfg"] }
- json
-
Enable support for performing substitution in all string values of a JSON document.
Enables serde and serde_json
Affects
subst::json
… - toml
-
Enable support for performing substitution in all string values of a TOML document.
Affects
subst::toml
… - yaml
-
Enable support for performing substitution in all string values of a YAML document.
Enables serde and serde_yaml
Affects
subst::yaml
… - preserve-order
-
Preserve the order of fields in JSON objects and TOML tables (YAML always preserves the order).
Enables preserve_order of optional serde_json and optional toml
- doc-cfg
-
Enable #[doc(cfg...)] annotations for optional parts of the library (requires a nightly compiler).