Description: avoid benches
Author: Jonas Smedegaard <dr@jones.dk>
Forwarded: not-needed
Last-Update: 2024-08-19
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/crates/swc_allocator/Cargo.toml
+++ b/crates/swc_allocator/Cargo.toml
@@ -1,5 +1,6 @@
 [package]
 authors       = ["강동윤 <kdy1997.dev@gmail.com>"]
+autobenches   = false
 description   = "A thin wrapper for bumpalo"
 documentation = "https://rustdoc.swc.rs/swc_allocator/"
 edition       = { workspace = true }
@@ -37,17 +38,8 @@
 
 
 [dev-dependencies]
-codspeed-criterion-compat = { workspace = true }
-criterion                 = { workspace = true }
-
 swc_malloc = { version = "1.2.3", path = "../swc_malloc" }
 
-
-[[bench]]
-harness           = false
-name              = "bench"
-required-features = ["nightly"]
-
 [[test]]
 name = "alloction"
 required-features = ["nightly"]
--- a/crates/swc_common/Cargo.toml
+++ b/crates/swc_common/Cargo.toml
@@ -1,5 +1,6 @@
 [package]
 authors       = ["강동윤 <kdy1997.dev@gmail.com>"]
+autobenches   = false
 description   = "Common utilities for the swc project."
 documentation = "https://rustdoc.swc.rs/swc_common/"
 edition       = { workspace = true }
--- a/crates/swc_estree_compat/Cargo.toml
+++ b/crates/swc_estree_compat/Cargo.toml
@@ -1,5 +1,6 @@
 [package]
 authors       = ["강동윤 <kdy1997.dev@gmail.com>"]
+autobenches   = false
 description   = "Compatibility layer between estree and swc"
 documentation = "https://rustdoc.swc.rs/swc_estree_compat/"
 edition       = { workspace = true }
@@ -36,7 +37,6 @@
 swc_node_comments = { version = "14.0.0", path = "../swc_node_comments/" }
 
 [dev-dependencies]
-codspeed-criterion-compat = { workspace = true }
 pretty_assertions         = { workspace = true }
 
 swc                 = { version = "34.0.0", path = "../swc", default-features = false }
@@ -45,7 +45,3 @@
 swc_ecma_transforms = { version = "28.0.0", path = "../swc_ecma_transforms/" }
 testing             = { version = "15.0.0", path = "../testing" }
 walkdir             = { workspace = true }
-
-[[bench]]
-harness = false
-name    = "babelify"
--- a/crates/swc_html_minifier/Cargo.toml
+++ b/crates/swc_html_minifier/Cargo.toml
@@ -3,6 +3,7 @@
   "강동윤 <kdy1997.dev@gmail.com>",
   "Alexander Akait <sheo13666q@gmail.com>",
 ]
+autobenches = false
 description = "HTML minifier"
 documentation = "https://rustdoc.swc.rs/swc_html_minifier/"
 edition = "2021"
@@ -55,11 +56,5 @@
 swc_html_visit = { version = "14.0.0", path = "../swc_html_visit" }
 
 [dev-dependencies]
-codspeed-criterion-compat = { workspace = true }
-
 swc_malloc = { version = "1.2.3", path = "../swc_malloc" }
 testing    = { version = "15.0.0", path = "../testing" }
-
-[[bench]]
-harness = false
-name    = "full"
--- a/crates/swc_html_parser/Cargo.toml
+++ b/crates/swc_html_parser/Cargo.toml
@@ -3,6 +3,7 @@
   "강동윤 <kdy1997.dev@gmail.com>",
   "Alexander Akait <sheo13666q@gmail.com>",
 ]
+autobenches = false
 description = "HTML parser"
 documentation = "https://rustdoc.swc.rs/swc_html_parser/"
 edition = "2021"
@@ -27,7 +28,6 @@
 swc_html_utils = { version = "14.0.0", path = "../swc_html_utils" }
 
 [dev-dependencies]
-codspeed-criterion-compat = { workspace = true }
 serde                     = { workspace = true }
 serde_json                = { workspace = true }
 
@@ -38,18 +38,6 @@
 swc_malloc = { version = "1.2.3", path = "../swc_malloc" }
 testing = { version = "15.0.0", path = "../testing" }
 
-[[bench]]
-harness = false
-name    = "compare"
-
-[[bench]]
-harness = false
-name    = "lexer"
-
-[[bench]]
-harness = false
-name    = "parser"
-
 [[test]]
 name = "html5lib_tests"
 required-features = ["html5lib"]
--- a/crates/swc_plugin_runner/Cargo.toml
+++ b/crates/swc_plugin_runner/Cargo.toml
@@ -1,5 +1,6 @@
 [package]
 authors       = ["강동윤 <kdy1997.dev@gmail.com>"]
+autobenches   = false
 description   = "Runner for swc plugins. This crate is INTERNAL crate and used by swc itself."
 documentation = "https://rustdoc.swc.rs/swc_plugin_runner/"
 edition       = { workspace = true }
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -33,12 +33,10 @@
   cargo_metadata            = ">= 0.18.1, <= 0.19"
   changesets                = "0.2.2"
   chrono                    = "0.4.38"
-  codspeed-criterion-compat = "3.0.4"
   compact_str               = ">= 0.7.1, <= 0.8"
   console_error_panic_hook  = "0.1.7"
   copyless                  = "0.1.5"
   crc                       = ">= 2.1, <= 3"
-  criterion                 = "0.5.1"
   dashmap                   = ">= 5.5.3, <= 6"
   dialoguer                 = ">= 0.10.2, <= 0.11"
   difference                = "2"
--- a/crates/hstr/Cargo.toml
+++ b/crates/hstr/Cargo.toml
@@ -1,5 +1,6 @@
 [package]
 authors     = ["강동윤 <kdy1997.dev@gmail.com>"]
+autobenches = false
 description = "A string type which is optimized for hash operations."
 edition     = { workspace = true }
 license     = { workspace = true }
@@ -29,17 +30,11 @@
 
 [dev-dependencies]
 compact_str  = { workspace = true }
-criterion    = { workspace = true }
 kstring      = { workspace = true }
 num_cpus     = { workspace = true }
-par-iter     = { workspace = true }
 rand         = { workspace = true }
 smartstring  = { workspace = true }
 smol_str     = { workspace = true }
 string_cache = { workspace = true }
 
 swc_malloc = { version = "1.2.3", path = "../swc_malloc" }
-
-[[bench]]
-harness = false
-name    = "libs"
--- a/crates/swc_plugin_backend_tests/Cargo.toml
+++ b/crates/swc_plugin_backend_tests/Cargo.toml
@@ -14,7 +14,6 @@
 
 [dev-dependencies]
 anyhow                    = { workspace = true }
-codspeed-criterion-compat = { workspace = true }
 rustc-hash                = { workspace = true }
 serde                     = { workspace = true, features = ["derive"] }
 serde_json                = { workspace = true }
@@ -40,7 +39,3 @@
 
 swc_plugin_backend_wasmer = { version = "1.0", path = "../swc_plugin_backend_wasmer" }
 swc_plugin_backend_wasmtime = { version = "0.2", path = "../swc_plugin_backend_wasmtime" }
-
-[[bench]]
-harness = false
-name    = "ecma_invoke"
--- a/crates/swc_ts_fast_strip/Cargo.toml
+++ b/crates/swc_ts_fast_strip/Cargo.toml
@@ -35,9 +35,4 @@
 swc_ecma_visit = { version = "14.0.0", path = "../swc_ecma_visit" }
 
 [dev-dependencies]
-codspeed-criterion-compat = { workspace = true }
 testing                   = { version = "15.0.0", path = "../testing" }
-
-[[bench]]
-harness = false
-name    = "assets"
