From 48b1e4ad32d07ba137d1315aceec9ed0d4fcb672 Mon Sep 17 00:00:00 2001 From: Boshen <1430279+Boshen@users.noreply.github.com> Date: Sun, 8 Dec 2024 15:38:57 +0000 Subject: [PATCH] refactor(napi/parser): enable `serialize` feature for `oxc_ast` only (#7728) --- Cargo.lock | 1 + napi/parser/Cargo.toml | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 73fa2ad27307b..558f99f56d878 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 f166d346fd17d..f17bec23d04dc 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 }