Cargo Features
[dependencies]
zenoh-protocol = { version = "1.0.2", default-features = false, features = ["std", "shared-memory", "stats", "test"] }
- default = std
-
The
std
feature is set by default wheneverzenoh-protocol
is added without
somewhere in the dependency tree.default-features = false - std default shared-memory?
-
Enables std and std_rng of optional rand and std of serde, uhlc, zenoh-keyexpr, and zenoh-result
serde:
Provide impls for common standard library types like Vec<T> and HashMap<K, V>.
Requires a dependency on the Rust standard library. -
Enables shared-memory of zenoh-buffers
Affects
init::InitSyn.ext_shm
,init::ext.Shm
,init::InitAck.ext_shm
,open::OpenSyn.ext_shm
,open::ext.Shm
,open::OpenAck.ext_shm
,err::Err.ext_shm
,err::ext.Shm
,err::ext.ShmType
,zenoh::ext.ShmType
,zenoh::ValueType.ext_shm
,put::Put.ext_shm
,put::ext.Shm
,put::ext.ShmType
… - stats
-
Affects
network::NetworkMessage.size
,scouting::ScoutingMessage.size
,transport::TransportMessage.size
… - test = rand
-
Enables test of zenoh-buffers
Affects
parameters::rand
…
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.