Cargo Features

OXC has no features set by default.

[dependencies]
oxc = { version = "0.56.5", features = ["full", "semantic", "transformer", "minifier", "codegen", "mangler", "cfg", "isolated_declarations", "ast_visit", "serialize", "wasm"] }
full = ast_visit, 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

ast_visit full? = oxc_ast_visit

Affects oxc::ast_visit

serialize

Enables from_raw_parts of oxc_allocator, serialize of oxc_ast, oxc_ast_visit, oxc_span, oxc_syntax, and optional oxc_semantic

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_ast_visit ast_visit? serialize?
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?