diff --git a/Cargo.toml b/Cargo.toml index 0b5f508a0..19165c062 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -85,59 +85,84 @@ oxc_linter = { path = "crates/oxc_linter" } oxc_prettier = { path = "crates/oxc_prettier" } oxc_tasks_common = { path = "tasks/common" } -napi = { version = "2" } -napi-derive = { version = "2" } +napi = "2" +napi-derive = "2" -assert-unchecked = { version = "0.1.2" } -bpaf = { version = "0.9.11" } -bitflags = { version = "2.5.0" } -bumpalo = { version = "3.15.4" } -convert_case = { version = "0.6.0" } -dashmap = { version = "5.5.3" } -flate2 = { version = "1.0.28" } -futures = { version = "0.3.30" } -glob = { version = "0.3.1" } -ignore = { version = "0.4.22" } -itertools = { version = "0.12.1" } -jemallocator = { version = "0.5.4" } -lazy_static = { version = "1.4.0" } -miette = { version = "7.2.0", features = ["fancy-no-syscall"] } -mimalloc = { version = "0.1.39" } -num-bigint = { version = "0.4.4" } -num-traits = { version = "0.2.18" } -phf = { version = "0.11" } -pico-args = { version = "0.5.0" } -proc-macro2 = { version = "1.0.79" } -project-root = { version = "0.2.2" } -quote = { version = "1.0.35" } -rayon = { version = "1.10.0" } -regex = { version = "1.10.4" } -rustc-hash = { version = "1.1.0", default-features = false, features = ["std"] } -ryu-js = { version = "1.0.1" } -ropey = { version = "1.6.1" } -seq-macro = { version = "0.3.5" } -serde = { version = "1.0.197" } -serde_json = { version = "1.0.114" } -syn = { version = "=1.0.109" } -tempfile = { version = "3.10.1" } -thiserror = { version = "1.0.58" } -tokio = { version = "1" } -tower-lsp = { version = "0.20.0", features = ["proposed"] } -unicode-id-start = { version = "1.1.2" } -ureq = { version = "2.9.6", default-features = false, features = ["tls", "json"] } -url = { version = "2.5.0" } -walkdir = { version = "2.5.0" } -indexmap = { version = "2.2.6" } -index_vec = { version = "0.1.3" } -static_assertions = { version = "1.1.0" } -tracing-subscriber = { version = "0.3" } -insta = { version = "1.36.1", features = ["glob"] } -mime_guess = { version = "2.0.4" } -language-tags = { version = "0.3.2" } -tsify = { version = "0.4.5" } -wasm-bindgen = { version = "0.2" } -serde-wasm-bindgen = { version = "0.6.5" } -handlebars = { version = "5.1.2" } +assert-unchecked = "0.1.2" +bpaf = "0.9.11" +bitflags = "2.5.0" +bumpalo = "3.15.4" +convert_case = "0.6.0" +dashmap = "5.5.3" +flate2 = "1.0.28" +futures = "0.3.30" +glob = "0.3.1" +ignore = "0.4.22" +itertools = "0.12.1" +jemallocator = "0.5.4" +lazy_static = "1.4.0" +miette = { version = "7.2.0", features = ["fancy-no-syscall"] } +mimalloc = "0.1.39" +num-bigint = "0.4.4" +num-traits = "0.2.18" +phf = "0.11" +pico-args = "0.5.0" +proc-macro2 = "1.0.79" +project-root = "0.2.2" +quote = "1.0.35" +rayon = "1.10.0" +regex = "1.10.4" +rustc-hash = "1.1.0" +ryu-js = "1.0.1" +ropey = "1.6.1" +seq-macro = "0.3.5" +serde = "1.0.197" +serde_json = "1.0.114" +syn = "=1.0.109" +tempfile = "3.10.1" +thiserror = "1.0.58" +tokio = "1" +tower-lsp = "0.20.0" +unicode-id-start = "1.1.2" +ureq = { version = "2.9.6", default-features = false } +url = "2.5.0" +walkdir = "2.5.0" +indexmap = "2.2.6" +index_vec = "0.1.3" +static_assertions = "1.1.0" +tracing-subscriber = "0.3" +insta = "1.36.1" +mime_guess = "2.0.4" +language-tags = "0.3.2" +tsify = "0.4.5" +wasm-bindgen = "0.2" +serde-wasm-bindgen = "0.6.5" +handlebars = "5.1.2" +base64 = "0.22.0" +brotlic = "0.8.2" +compact_str = "0.7.1" +console = "0.15.8" +encoding_rs = "0.8.33" +encoding_rs_io = "0.1.7" +env_logger = { version = "0.11.3", default-features = false } +flexbuffers = "2.0.0" +globset = "0.4.14" +humansize = "2.1.3" +json-strip-comments = "1.0.2" +log = "0.4.21" +memchr = "2.7.1" +napi-build = "2" +once_cell = "1.19.0" +ouroboros = "0.18.3" +owo-colors = "4.0.0" +oxc_resolver = "1.6.3" +petgraph = "0.6.4" +rust-lapper = "1.1.0" +serde_yaml = "0.9.34" +similar = "2.4.0" +sourcemap = "8.0.0" +textwrap = "0.16.0" +unicode-width = "0.1.11" [profile.dev] debug = 1 # "limited" debug, speed up compilation; debug info without type or variable-level information. diff --git a/crates/oxc_codegen/Cargo.toml b/crates/oxc_codegen/Cargo.toml index 41965d5b7..12c783938 100644 --- a/crates/oxc_codegen/Cargo.toml +++ b/crates/oxc_codegen/Cargo.toml @@ -23,10 +23,10 @@ oxc_ast = { workspace = true } oxc_span = { workspace = true } oxc_allocator = { workspace = true } oxc_syntax = { workspace = true } -sourcemap = { version = "8.0.0" } +sourcemap = { workspace = true } bitflags = { workspace = true } rustc-hash = { workspace = true } [dev-dependencies] oxc_parser = { workspace = true } -base64 = "0.22.0" +base64 = { workspace = true } diff --git a/crates/oxc_diagnostics/Cargo.toml b/crates/oxc_diagnostics/Cargo.toml index 4af8d255e..8d0b2fba4 100644 --- a/crates/oxc_diagnostics/Cargo.toml +++ b/crates/oxc_diagnostics/Cargo.toml @@ -21,6 +21,6 @@ doctest = false thiserror = { workspace = true } miette = { workspace = true } -unicode-width = "0.1.11" -owo-colors = { version = "4.0.0" } -textwrap = { version = "0.16.0" } +unicode-width = { workspace = true } +owo-colors = { workspace = true } +textwrap = { workspace = true } diff --git a/crates/oxc_language_server/Cargo.toml b/crates/oxc_language_server/Cargo.toml index a9fbec1dd..224f9b571 100644 --- a/crates/oxc_language_server/Cargo.toml +++ b/crates/oxc_language_server/Cargo.toml @@ -34,6 +34,6 @@ tokio = { workspace = true, features = ["full"] } tower-lsp = { workspace = true, features = ["proposed"] } serde = { workspace = true, features = ["derive"] } serde_json = { workspace = true } -log = "0.4.21" -globset = "0.4.14" -env_logger = { version = "0.11.3", default-features = false, features = ["humantime"] } +log = { workspace = true } +globset = { workspace = true } +env_logger = { workspace = true, features = ["humantime"] } diff --git a/crates/oxc_linter/Cargo.toml b/crates/oxc_linter/Cargo.toml index 606ddae68..033015d7e 100644 --- a/crates/oxc_linter/Cargo.toml +++ b/crates/oxc_linter/Cargo.toml @@ -29,7 +29,7 @@ oxc_semantic = { workspace = true } oxc_syntax = { workspace = true } oxc_codegen = { workspace = true } oxc_index = { workspace = true } -oxc_resolver = { version = "1.6.3" } +oxc_resolver = { workspace = true } rayon = { workspace = true } lazy_static = { workspace = true } # used in oxc_macros @@ -45,10 +45,10 @@ language-tags = { workspace = true } mime_guess = { workspace = true } url = { workspace = true } -rust-lapper = "1.1.0" -once_cell = "1.19.0" -memchr = "2.7.1" -json-strip-comments = "1.0.2" +rust-lapper = { workspace = true } +once_cell = { workspace = true } +memchr = { workspace = true } +json-strip-comments = { workspace = true } [dev-dependencies] insta = { workspace = true } diff --git a/crates/oxc_parser/Cargo.toml b/crates/oxc_parser/Cargo.toml index 832e0bef7..c3227f1d2 100644 --- a/crates/oxc_parser/Cargo.toml +++ b/crates/oxc_parser/Cargo.toml @@ -31,12 +31,12 @@ rustc-hash = { workspace = true } num-bigint = { workspace = true } seq-macro = { workspace = true } -memchr = "2.7.1" +memchr = { workspace = true } [dev-dependencies] oxc_ast = { workspace = true, features = ["serialize"] } serde_json = { workspace = true } -ouroboros = "0.18.3" # for `multi-thread` example +ouroboros = { workspace = true } # for `multi-thread` example [features] # Expose Lexer for benchmarks diff --git a/crates/oxc_semantic/Cargo.toml b/crates/oxc_semantic/Cargo.toml index 4db12a921..adaceb3ca 100644 --- a/crates/oxc_semantic/Cargo.toml +++ b/crates/oxc_semantic/Cargo.toml @@ -30,7 +30,7 @@ indexmap = { workspace = true } phf = { workspace = true, features = ["macros"] } rustc-hash = { workspace = true } serde = { workspace = true, features = ["derive"], optional = true } -petgraph = "0.6.4" +petgraph = { workspace = true } tsify = { workspace = true, optional = true } wasm-bindgen = { workspace = true, optional = true } @@ -40,7 +40,7 @@ oxc_parser = { workspace = true } itertools = { workspace = true } indexmap = { workspace = true } -insta = { workspace = true } +insta = { workspace = true, features = ["glob"] } phf = { workspace = true, features = ["macros"] } rustc-hash = { workspace = true } diff --git a/crates/oxc_span/Cargo.toml b/crates/oxc_span/Cargo.toml index 54ef475ba..d06a47906 100644 --- a/crates/oxc_span/Cargo.toml +++ b/crates/oxc_span/Cargo.toml @@ -20,7 +20,7 @@ doctest = false [dependencies] miette = { workspace = true } -compact_str = { version = "0.7.1" } +compact_str = { workspace = true } tsify = { workspace = true, optional = true } wasm-bindgen = { workspace = true, optional = true } diff --git a/justfile b/justfile index 254d82955..cbbac9174 100755 --- a/justfile +++ b/justfile @@ -53,10 +53,6 @@ check: test: cargo test -test-transform: - cargo run -p oxc_transform_conformance - cargo run -p oxc_transform_conformance -- --exec - # Lint the whole project lint: cargo lint -- --deny warnings @@ -76,6 +72,21 @@ codecov: benchmark: cargo benchmark +# Removed Unused Dependencies +shear: + cargo binstall cargo-shear + cargo shear --fix + +# Automatically DRY up Cargo.toml manifests in a workspace. +autoinherit: + cargo binstall cargo-autoinherit + cargo autoinherit + +# Test Transform +test-transform: + cargo run -p oxc_transform_conformance + cargo run -p oxc_transform_conformance -- --exec + # Generate the JavaScript global variables. See `tasks/javascript_globals` javascript-globals: cargo run -p javascript_globals diff --git a/napi/parser/Cargo.toml b/napi/parser/Cargo.toml index 6aff0b853..e28d3a869 100644 --- a/napi/parser/Cargo.toml +++ b/napi/parser/Cargo.toml @@ -30,11 +30,11 @@ oxc_module_lexer = { path = "../../crates/oxc_module_lexer" } serde = { workspace = true } serde_json = { workspace = true } -flexbuffers = { version = "2.0.0" } +flexbuffers = { workspace = true } tokio = { workspace = true } napi = { workspace = true, features = ["serde-json", "async"] } napi-derive = { workspace = true } [build-dependencies] -napi-build = "2" +napi-build = { workspace = true } diff --git a/tasks/common/Cargo.toml b/tasks/common/Cargo.toml index f9c2cc1f2..03338ccea 100644 --- a/tasks/common/Cargo.toml +++ b/tasks/common/Cargo.toml @@ -13,13 +13,13 @@ test = false doctest = false [dependencies] -console = "0.15.8" +console = { workspace = true } oxc_syntax = { workspace = true, features = ["serialize"] } project-root = { workspace = true } serde = { workspace = true, features = ["derive"] } serde_json = { workspace = true } -similar = "2.4.0" +similar = { workspace = true } -ureq = { workspace = true } +ureq = { workspace = true, features = ["tls", "json"] } url = { workspace = true } diff --git a/tasks/coverage/Cargo.toml b/tasks/coverage/Cargo.toml index ab9933d27..2a84bca8f 100644 --- a/tasks/coverage/Cargo.toml +++ b/tasks/coverage/Cargo.toml @@ -44,8 +44,8 @@ phf = { workspace = true, features = ["macros"] } futures = { workspace = true } tokio = { workspace = true, features = ["rt-multi-thread", "macros"] } -console = "0.15.8" -encoding_rs = "0.8.33" -encoding_rs_io = "0.1.7" -serde_yaml = "0.9.34" -similar = "2.4.0" +console = { workspace = true } +encoding_rs = { workspace = true } +encoding_rs_io = { workspace = true } +serde_yaml = { workspace = true } +similar = { workspace = true } diff --git a/tasks/minsize/Cargo.toml b/tasks/minsize/Cargo.toml index b1640b4ef..b9c12a591 100644 --- a/tasks/minsize/Cargo.toml +++ b/tasks/minsize/Cargo.toml @@ -25,5 +25,5 @@ oxc_minifier = { workspace = true } oxc_tasks_common = { workspace = true } flate2 = { workspace = true } -humansize = "2.1.3" -brotlic = "0.8.2" +humansize = { workspace = true } +brotlic = { workspace = true }