Cargo Features

OXC has no features set by default.

[dependencies]
oxc = { version = "0.43.0", features = ["full", "semantic", "transformer", "minifier", "codegen", "mangler", "cfg", "isolated_declarations", "serialize", "wasm"] }
full = cfg, codegen, isolated_declarations, mangler, minifier, semantic, transformer
semantic full? = oxc_semantic

Affects oxc::semantic

transformer full? = oxc_transformer

Affects oxc::transformer

minifier full? = oxc_mangler, oxc_minifier

Affects oxc::minifier

codegen full? = oxc_codegen

Affects oxc::codegen

mangler full? = oxc_mangler

Affects oxc::mangler

cfg full? = oxc_cfg

Affects oxc::cfg

isolated_declarations full? = oxc_isolated_declarations

Affects oxc::isolated_declarations

serialize

Enables serialize of oxc_ast, optional oxc_semantic, oxc_span, and oxc_syntax

wasm

Enables wasm of oxc_transformer

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.

oxc_cfg cfg?
oxc_codegen codegen?
oxc_isolated_declarations isolated_declarations?
oxc_mangler mangler? minifier?
oxc_minifier minifier?
oxc_semantic semantic?
oxc_transformer transformer? wasm?