Cargo Features
[dependencies]
agnostic-lite = { version = "0.4.0", default-features = false, features = ["std", "time", "tokio", "async-io", "smol", "async-std", "wasm", "test"] }
- default = std
-
The
std
feature is set by default wheneveragnostic-lite
is added without
somewhere in the dependency tree.default-features = false - std default time? wasm?
- time async-io? test? = atomic-time, paste, std
-
Enables macros, sync and time of optional tokio, channel and time of optional feature-extension-for-wasm-bindgen-futures, channel and time of optional feature-extension-for-async-std and optional feature-extension-for-smol
Affects
spawner::AfterHandleError
,spawner::AfterHandle
,spawner::AsyncAfterSpawner
… - tokio
-
Enables tokio
Affects
agnostic-lite::tokio
… - async-io async-std? smol? = time
-
Enables async-io
Affects
agnostic-lite::async_io
… - smol = async-io
-
Enables feature-extension-for-smol
Affects
agnostic-lite::smol
… - async-std = async-io
-
Enables feature-extension-for-async-std
Affects
agnostic-lite::async_std
… - wasm = std
-
Enables async-await, async-await-macro and std of futures-util, channel of feature-extension-for-wasm-bindgen-futures
Affects
agnostic-lite::wasm
… - test = time
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.