Cargo Features
[dependencies]
waterark = { version = "0.1.0", default-features = false, features = ["std", "alloc", "sync", "future", "parking_lot", "smol", "async-std", "tokio", "wasm", "crossbeam-queue", "tracing"] }
- default = std
-
The
std
feature is set by default wheneverwaterark
is added without
somewhere in the dependency tree.default-features = false - std default sync?
-
Enables crossbeam-utils, optional async-channel, and optional futures-channel, use_std of scopeguard
- alloc = hashbrown
- sync = crossbeam-channel, std
-
Affects
closer::sync
,watermark::sync
,waterark::closer
… - future async-std? smol? tokio? wasm? = async-channel, futures-channel, futures-util
-
Enables event-listener
Affects
closer::future
,watermark::future
,waterark::closer
… - parking_lot
-
Enables parking_lot of optional wg
- smol = future
-
Enables smol of agnostic-lite
- async-std = future
-
Enables async-std of agnostic-lite
- tokio = future, futures-util
-
Enables tokio of agnostic-lite
- wasm = future, futures-util
-
Enables wasm of agnostic-lite
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.
- agnostic-lite async-std? smol? tokio? wasm?
- crossbeam-queue implicit feature
-
Enables crossbeam-queue
crossbeam-queue:
Concurrent queues
- hashbrown alloc?
-
Enables hashbrown ^0.14
- crossbeam-channel sync?
- wg sync?
- async-channel future?
- event-listener future?
- futures-util future? tokio? wasm?
- futures-channel future?
- tracing implicit feature
-
Enables tracing
tracing:
Application-level tracing for Rust