From 73d2558c14733b519f7cf3407d6d3434c94435bc Mon Sep 17 00:00:00 2001 From: Boshen Date: Sun, 4 Aug 2024 19:33:04 +0800 Subject: [PATCH] fix(oxlint): fix oxlint failed to build due to missing feature closes #4626 --- crates/oxc_linter/Cargo.toml | 2 +- tasks/benchmark/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/oxc_linter/Cargo.toml b/crates/oxc_linter/Cargo.toml index f5a3222cc1e3b..3ce4efdf536bc 100644 --- a/crates/oxc_linter/Cargo.toml +++ b/crates/oxc_linter/Cargo.toml @@ -22,7 +22,7 @@ doctest = false [dependencies] oxc_allocator = { workspace = true } oxc_parser = { workspace = true } -oxc_span = { workspace = true, features = ["schemars"] } +oxc_span = { workspace = true, features = ["schemars", "serialize"] } oxc_ast = { workspace = true } oxc_cfg = { workspace = true } oxc_diagnostics = { workspace = true } diff --git a/tasks/benchmark/Cargo.toml b/tasks/benchmark/Cargo.toml index d345d40b9ed41..773d4abe9a283 100644 --- a/tasks/benchmark/Cargo.toml +++ b/tasks/benchmark/Cargo.toml @@ -74,7 +74,7 @@ oxc_minifier = { workspace = true, optional = true } oxc_parser = { workspace = true, features = ["benchmarking"], optional = true } oxc_prettier = { workspace = true, optional = true } oxc_semantic = { workspace = true, optional = true } -oxc_span = { workspace = true, optional = true, features = ["serialize", "schemars"] } +oxc_span = { workspace = true, optional = true, features = ["schemars", "serialize"] } oxc_tasks_common = { workspace = true, optional = true } oxc_transformer = { workspace = true, optional = true } oxc_codegen = { workspace = true, optional = true }