Cargo Features

[dependencies]
swc_allocator = { version = "1.0.0", default-features = false, features = ["nightly", "rkyv", "scoped", "serde"] }
default = scoped

The scoped feature is set by default whenever swc_allocator is added without default-features = false somewhere in the dependency tree.

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

Enables rkyv =0.7.45

scoped default = nightly
serde

Enables serde