Cargo Features
[dependencies]
swc_allocator = { version = "2.0.0", default-features = false, features = ["nightly", "rkyv", "scoped", "serde"] }
- default = rkyv, scoped
-
These default features are set whenever
swc_allocator
is added without
somewhere in the dependency tree.default-features = false - nightly scoped
-
Enables allocator_api of bumpalo and nightly of hashbrown ^0.14.5
hashbrown:
Enables use of nightly features. This is only guaranteed to work on the latest version of nightly Rust.
Affects
collections::HashMap
,collections::HashSet
,swc_allocator::boxed
,swc_allocator::vec
… - rkyv default
- scoped default = nightly
- serde
-
Enables serde