From 18371dda3d6b1fffc7c99d691bcbd1029eb730b7 Mon Sep 17 00:00:00 2001 From: DonIsaac <22823424+DonIsaac@users.noreply.github.com> Date: Tue, 24 Sep 2024 02:42:00 +0000 Subject: [PATCH] docs(oxc): include feature-guarded modules in docs.rs (#6012) --- crates/oxc/Cargo.toml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/crates/oxc/Cargo.toml b/crates/oxc/Cargo.toml index 6edc40a73..3510f0e6b 100644 --- a/crates/oxc/Cargo.toml +++ b/crates/oxc/Cargo.toml @@ -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"] @@ -54,7 +63,12 @@ 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"] @@ -62,3 +76,6 @@ sourcemap_concurrent = ["oxc_sourcemap/concurrent", "sourcemap"] isolated_declarations = ["oxc_isolated_declarations"] wasm = ["oxc_transformer/wasm"] + +[package.metadata.docs.rs] +all-features = true