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
feature
key in theCargo.toml
file like the following example:rosetta-i18n = { version = "0.1", features = ["serde"] }
rosetta-i18n
serde
: enable Serde support, providingSerialize
andDeserialize
implementation 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 ifrustfmt
is not installed in your computer.