Skip to content

Commit

Permalink
docs(oxc): include feature-guarded modules in docs.rs (#6012)
Browse files Browse the repository at this point in the history
  • Loading branch information
DonIsaac committed Sep 24, 2024
1 parent c77cd24 commit 18371dd
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions crates/oxc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,16 @@ oxc_syntax = { workspace = true }
oxc_transformer = { workspace = true, optional = true }

[features]
full = ["codegen", "mangler", "minifier", "semantic", "transformer", "isolated_declarations", "sourcemap", "cfg"]
full = [
"codegen",
"mangler",
"minifier",
"semantic",
"transformer",
"isolated_declarations",
"sourcemap",
"cfg",
]

semantic = ["oxc_semantic"]
transformer = ["oxc_transformer"]
Expand All @@ -54,11 +63,19 @@ codegen = ["oxc_codegen"]
mangler = ["oxc_mangler"]
cfg = ["oxc_cfg"]

serialize = ["oxc_ast/serialize", "oxc_semantic?/serialize", "oxc_span/serialize", "oxc_syntax/serialize"]
serialize = [
"oxc_ast/serialize",
"oxc_semantic?/serialize",
"oxc_span/serialize",
"oxc_syntax/serialize",
]

sourcemap = ["oxc_sourcemap"]
sourcemap_concurrent = ["oxc_sourcemap/concurrent", "sourcemap"]

isolated_declarations = ["oxc_isolated_declarations"]

wasm = ["oxc_transformer/wasm"]

[package.metadata.docs.rs]
all-features = true

0 comments on commit 18371dd

Please sign in to comment.