Optional features
The rosetta-i18n and rosetta-build crates allow to turn on some additional features with Cargo features.
Most of these requires additional dependencies and are not enabled by default.
To enable a feature, you need to add a
featurekey in theCargo.tomlfile like the following example:rosetta-i18n = { version = "0.1", features = ["serde"] }
rosetta-i18n
serde: enable Serde support, providingSerializeandDeserializeimplementation for some types. Utility functions to serialize and deserialize generated types are also provided.
rosetta-build
rustfmt(enabled by default): format generated code with rustfmt. Disable this feature ifrustfmtis not installed in your computer.