Cargo Features

[dependencies]
zenoh-protocol = { version = "0.11.0-rc.1", default-features = false, features = ["std", "shared-memory", "stats", "complete_n", "test"] }
default = std

The std feature is set by default whenever zenoh-protocol is added without default-features = false somewhere in the dependency tree.

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.

shared-memory = std

Enables shared-memory of zenoh-buffers

Affects zenoh::ext.ShmType, zenoh::ValueType.ext_shm, put::Put.ext_shm, put::ext.Shm, put::ext.ShmType, reply::Reply.ext_shm, reply::ext.Shm, reply::ext.ShmType

stats

Affects network::NetworkMessage.size, scouting::ScoutingMessage.size, transport::TransportMessage.size

complete_n
test = rand

Enables test of zenoh-buffers

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.

rand test?