Cargo Features
[dependencies]
zbus = { version = "4.2.2", default-features = false, features = ["uuid", "url", "time", "chrono", "option-as-array", "bus-impl", "p2p", "async-io", "tokio", "vsock", "tokio-vsock"] }
- default = async-io
-
The
async-io
feature is set by default wheneverzbus
is added without
somewhere in the dependency tree.default-features = false - uuid
- url
- time
- chrono
- option-as-array
-
Enables ser/de of
Option<T>
as an array of 0 or 1 elements.Enables option-as-array of zvariant
- bus-impl = p2p
-
Enables API that is only needed for bus implementations (enables
p2p
). - p2p bus-impl?
-
Enables API that is only needed for peer-to-peer (p2p) connections.
Affects
socket::channel
… - async-io default = async-executor, async-fs, async-lock, async-task, blocking
-
Enables async-io and io of futures-util
activate default features
- tokio tokio-vsock?
-
Enables tokio
FIXME: We should only enable process feature for Mac OS. See comment on async-process below for why we can't.
Affects
executor::Executor
,executor::Task
,file::FileLines
,utils::block_on
… - vsock
- tokio-vsock = tokio
-
Enables tokio-vsock ^0.4
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.