Cargo Features
[dependencies]
zallocator = { version = "0.5.1", default-features = false, features = ["std", "core", "js", "future", "tokio", "async-std", "smol"] }
- default = std
-
The
std
feature is set by default wheneverzallocator
is added without
somewhere in the dependency tree.default-features = false - std default = parking_lot
-
Enables triomphe, crossbeam-queue and crossbeam-utils, std and std_rng of rand
- core = hashbrown, spin
-
Enables spin_no_std of lazy_static and alloc of rand
rand:
Option: "alloc" enables support for Vec and Box when not using "std"
- js
-
Enables wasm-bindgen of futures-timer and js of getrandom
getrandom:
Feature to enable JavaScript bindings on wasm*-unknown-unknown
- future async-std? smol? tokio? = futures-timer
- tokio = future
-
Enables tokio
- async-std = future
-
Enables async-std
- smol = future
-
Enables smol
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.
- futures-timer future? js?
- getrandom js?
- hashbrown core?
-
Enables hashbrown ^0.14
- parking_lot std
- spin core?