Cargo Features
tonic-rpc has no features set by default.
[dependencies]
tonic-rpc = { version = "0.2.1", features = ["json", "cbor", "messagepack", "bincode"] }
- json = serde_json
-
Affects
codec::JsonSerdeCodec
,codec::JsonCodec
… - cbor = serde_cbor
-
Affects
codec::CborSerdeCodec
,codec::CborCodec
… - messagepack = rmp-serde
-
Affects
codec::MessagePackSerdeCodec
,codec::MessagePackCodec
…
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.
- bincode implicit feature
-
Enables bincode
optional codecs
Affects
codec::BincodeSerdeCodec
,codec::BincodeCodec
… - rmp-serde messagepack?
- serde_json json?
- serde_cbor cbor?