Cargo Features

swc_ecma_ast has no features set by default.

[dependencies]
swc_ecma_ast = { version = "7.0.0", features = ["rkyv-impl", "serde-impl", "shrink-to-fit", "fuzzing"] }
rkyv-impl = bytecheck, rancor, rkyv

Enables rkyv-impl of swc_atoms and swc_common

Affects lit::EncodeBigInt

serde-impl = serde
shrink-to-fit

Enables shrink-to-fit, shrink-to-fit of swc_atoms and swc_common

fuzzing = arbitrary

Enables arbitrary of swc_atoms and swc_common

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.

bytecheck rkyv-impl?
rancor rkyv-impl?
rkyv rkyv-impl?
serde serde-impl?
arbitrary fuzzing?