From 831217a517062a7252f2e998e29204ea87821b8b Mon Sep 17 00:00:00 2001 From: Boshen Date: Sun, 8 Dec 2024 23:31:39 +0800 Subject: [PATCH] refactor(napi/parser): enable `serialize` feature for `oxc_ast` only --- Cargo.lock | 1 + napi/parser/Cargo.toml | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 73fa2ad27307b2..558f99f56d8780 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1824,6 +1824,7 @@ dependencies = [ "napi-build", "napi-derive", "oxc", + "oxc_ast", "oxc_napi", "rustc-hash", "serde_json", diff --git a/napi/parser/Cargo.toml b/napi/parser/Cargo.toml index f166d346fd17de..f17bec23d04dc4 100644 --- a/napi/parser/Cargo.toml +++ b/napi/parser/Cargo.toml @@ -21,7 +21,8 @@ test = false doctest = false [dependencies] -oxc = { workspace = true, features = ["serialize"] } +oxc = { workspace = true } +oxc_ast = { workspace = true, features = ["serialize"] } # enable feature only oxc_napi = { workspace = true } rustc-hash = { workspace = true } @@ -31,7 +32,7 @@ napi = { workspace = true, features = ["async"] } napi-derive = { workspace = true } [package.metadata.cargo-shear] -ignored = ["napi"] +ignored = ["napi", "oxc_ast"] [build-dependencies] napi-build = { workspace = true }