Cargo Features
[dependencies]
ratman-types = { version = "0.4.0", default-features = false, features = ["proto", "serde_json"] }
- default = proto
-
The
proto
feature is set by default wheneverratman-types
is added without
somewhere in the dependency tree.default-features = false - proto default = protobuf, protoc-rust
-
Affects
ratman-types::api
,ratman-types::parse_message
,ratman-types::decode_message
,ratman-types::encode_message
…
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.
- protobuf proto
-
Enables protobuf ^2.19
- serde_json implicit feature
-
Enables serde_json
serde_json:
A JSON serialization file format
- protoc-rust build proto