Cargo Features
[dependencies]
hyprland = { version = "0.4.0-beta.1", default-features = false, features = ["async-lite", "async-std", "tokio", "dispatch", "data", "ctl", "keyword", "config", "listener", "parking_lot", "ahash", "unsafe-impl", "tokio-stream"] }
- default = ahash, config, ctl, data, dispatch, keyword, listener, tokio
-
These default features are set whenever
hyprland
is added without
somewhere in the dependency tree.default-features = false - async-lite
-
Enables async-net
- async-std
-
Enables async-std
- tokio default
-
Enables tokio
- dispatch default config listener
-
Affects
hyprland::dispatch
… - data default listener
-
Affects
hyprland::data
… - ctl default
-
Affects
hyprland::ctl
… - keyword default config
-
Affects
hyprland::keyword
… - config default = dispatch, keyword
-
Affects
hyprland::config
… - listener default = data, dispatch
-
Affects
hyprland::event_listener
,unsafe_impl::listeners
… - parking_lot
-
Enables parking_lot, parking_lot of optional tokio and parking_lot of once_cell
once_cell:
Uses parking_lot to implement once_cell::sync::OnceCell.
This makes no speed difference, but makes each OnceCell<T>
up to 16 bytes smaller, depending on the size of the T. - ahash default
-
Enables ahash
- unsafe-impl
-
Affects
hyprland::unsafe_impl
…
Features from optional dependencies
- tokio-stream implicit feature
-
Enables tokio-stream
tokio-stream:
Utilities to work with
Stream
andtokio