Skip to content

Commit

Permalink
test: Enable scoped API by default (#9247)
Browse files Browse the repository at this point in the history
**Description:**

This PR is to profile real performance using codspeed
  • Loading branch information
kdy1 committed Jul 15, 2024
1 parent 887d7a2 commit e7ce94b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions crates/swc_allocator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ version = "0.1.5"


[features]
rkyv = ["dep:rkyv"]
scoped = []
serde = ["dep:serde", "dep:serde_derive"]
default = ["scoped"]
rkyv = ["dep:rkyv"]
scoped = []
serde = ["dep:serde", "dep:serde_derive"]

[dependencies]
allocator-api2 = { workspace = true, features = ["serde"] }
Expand Down
2 changes: 1 addition & 1 deletion crates/swc_common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ url = { workspace = true }
ast_node = { version = "0.9.8", path = "../ast_node" }
better_scoped_tls = { version = "0.1.1", path = "../better_scoped_tls" }
from_variant = { version = "0.1.8", path = "../from_variant" }
swc_allocator = { version = "0.1.1", path = "../swc_allocator" }
swc_allocator = { version = "0.1.1", path = "../swc_allocator", default-features = false }
swc_atoms = { version = "0.6.5", path = "../swc_atoms" }
swc_eq_ignore_macros = { version = "0.1.3", path = "../swc_eq_ignore_macros" }
swc_visit = { version = "0.5.14", path = "../swc_visit" }
Expand Down
2 changes: 1 addition & 1 deletion crates/swc_core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ swc_transform_common = { optional = true, version = "0.1.0", path =
swc_typescript = { optional = true, version = "0.2.0", path = "../swc_typescript" }
testing = { optional = true, version = "0.37.0", path = "../testing" }
# TODO: eventually swc_plugin_runner needs to remove default features
swc_allocator = { version = "0.1.2", path = "../swc_allocator" }
swc_allocator = { version = "0.1.2", path = "../swc_allocator", default-features = false }
swc_plugin_runner = { optional = true, version = "0.110.0", path = "../swc_plugin_runner", default-features = false }

[build-dependencies]
Expand Down

0 comments on commit e7ce94b

Please sign in to comment.