From c6a19aa478085522427bf44b1d2c4097969674dc Mon Sep 17 00:00:00 2001 From: Boshen <1430279+Boshen@users.noreply.github.com> Date: Mon, 9 Dec 2024 09:16:32 +0000 Subject: [PATCH] refactor(linter): remove unused `serde` features (#7738) --- Cargo.lock | 5 ++--- Cargo.toml | 2 +- crates/oxc_linter/Cargo.toml | 8 ++++---- crates/oxc_syntax/Cargo.toml | 2 +- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 558f99f56d878..a5dd636362e96 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -710,7 +710,6 @@ dependencies = [ "log", "regex-automata", "regex-syntax", - "serde", ] [[package]] @@ -1619,9 +1618,9 @@ dependencies = [ [[package]] name = "oxc_index" -version = "1.0.1" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f004e73d346bec03a428ca26cf2df245d08563f1d3268b7bcbd5554fc1db05c5" +checksum = "5eca5d9726cd0a6e433debe003b7bc88b2ecad0bb6109f0cef7c55e692139a34" dependencies = [ "serde", ] diff --git a/Cargo.toml b/Cargo.toml index a59e45f327dde..0cec2be84804d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -121,7 +121,7 @@ unicode-id-start = "1" # oxc-browserslist = "1.1.0" -oxc_index = "1.0.1" +oxc_index = "2" oxc_resolver = "2.1.1" oxc_sourcemap = "1.0.3" diff --git a/crates/oxc_linter/Cargo.toml b/crates/oxc_linter/Cargo.toml index b1ff7150e3444..ab333d24a941e 100644 --- a/crates/oxc_linter/Cargo.toml +++ b/crates/oxc_linter/Cargo.toml @@ -26,14 +26,14 @@ oxc_cfg = { workspace = true } oxc_codegen = { workspace = true } oxc_diagnostics = { workspace = true } oxc_ecmascript = { workspace = true } -oxc_index = { workspace = true, features = ["serialize"] } +oxc_index = { workspace = true } oxc_macros = { workspace = true } oxc_parser = { workspace = true } oxc_regular_expression = { workspace = true } oxc_resolver = { workspace = true } oxc_semantic = { workspace = true } -oxc_span = { workspace = true, features = ["schemars", "serialize"] } -oxc_syntax = { workspace = true, features = ["serialize"] } +oxc_span = { workspace = true, features = ["schemars"] } +oxc_syntax = { workspace = true } # bitflags = { workspace = true } @@ -41,7 +41,7 @@ convert_case = { workspace = true } cow-utils = { workspace = true } dashmap = { workspace = true } fast-glob = { workspace = true } -globset = { workspace = true, features = ["serde1"] } +globset = { workspace = true } itertools = { workspace = true } json-strip-comments = { workspace = true } language-tags = { workspace = true } diff --git a/crates/oxc_syntax/Cargo.toml b/crates/oxc_syntax/Cargo.toml index 28c063a2547d4..a792ef06a6652 100644 --- a/crates/oxc_syntax/Cargo.toml +++ b/crates/oxc_syntax/Cargo.toml @@ -44,7 +44,7 @@ serialize = [ "bitflags/serde", "dep:serde", "dep:wasm-bindgen", - "oxc_index/serialize", + "oxc_index/serde", "oxc_estree/serialize", ]