Cargo Features
[dependencies]
tsyncp = { version = "0.4.1", default-features = false, features = ["full", "json", "prost", "bincode"] }
- default = full
-
The
full
feature is set by default whenevertsyncp
is added without
somewhere in the dependency tree.default-features = false - full default = bincode, json, prost
- json full = serde, serde_json
-
Affects
broadcast::JsonReceiver
,broadcast::JsonSender
,channel::JsonChannel
,mpsc::JsonSender
,mpsc::JsonReceiver
,multi_channel::JsonChannel
… - prost full
-
Enables prost ^0.12
Affects
broadcast::ProstReceiver
,broadcast::ProstSender
,channel::ProstChannel
,mpsc::ProstSender
,mpsc::ProstReceiver
,multi_channel::ProstChannel
… - bincode full = serde
-
Enables bincode
Affects
broadcast::BincodeReceiver
,broadcast::BincodeSender
,channel::BincodeChannel
,mpsc::BincodeSender
,mpsc::BincodeReceiver
,multi_channel::BincodeChannel
…
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.