From 7871fcbaa26cafaa3bb4592cc95a3d95aea46ab8 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Fri, 26 Jul 2024 14:03:23 +0800 Subject: [PATCH] chore: bump oxc --- Cargo.lock | 106 +++++++++++++++++++++++++++++++++++++---------------- Cargo.toml | 2 +- 2 files changed, 75 insertions(+), 33 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 6469e4c..11b86ab 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -98,6 +98,25 @@ dependencies = [ "unicode-segmentation", ] +[[package]] +name = "crossbeam-deque" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "613f8cc01fe9cf1a3eb3d7f488fd2fa8388403e97039e2f73692932e291a770d" +dependencies = [ + "crossbeam-epoch", + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-epoch" +version = "0.9.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e" +dependencies = [ + "crossbeam-utils", +] + [[package]] name = "crossbeam-utils" version = "0.8.20" @@ -425,9 +444,9 @@ checksum = "caff54706df99d2a78a5a4e3455ff45448d81ef1bb63c22cd14052ca0e993a3f" [[package]] name = "oxc" -version = "0.21.0" +version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "48b37a2f96401186cd669de8b90c9e0f026f3b1f0ae8da598d0b59bcc18d635a" +checksum = "754c8fa90df7875f5b4b2a17dcceeb81009f4ec2257ff2baa429804e568ff4cf" dependencies = [ "oxc_allocator", "oxc_ast", @@ -435,6 +454,7 @@ dependencies = [ "oxc_diagnostics", "oxc_index", "oxc_parser", + "oxc_sourcemap", "oxc_span", "oxc_syntax", "oxc_transformer", @@ -473,9 +493,9 @@ dependencies = [ [[package]] name = "oxc_allocator" -version = "0.21.0" +version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2969df9624a9ce85a4dcc74b9306da0750245f3edbf5d188966ce9ba21f1df09" +checksum = "c7e7b1858755555fd3a600b453d142cd3fae33b8b6262729fc286a1ae36ade5e" dependencies = [ "allocator-api2", "bumpalo", @@ -483,9 +503,9 @@ dependencies = [ [[package]] name = "oxc_ast" -version = "0.21.0" +version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f5bd24669af44316b9e9132298779b16d811ca2b2c50e6977119f0c12b74a70b" +checksum = "3a155e8ac7d91e745a529def14456bb339a48afde3c1af37462a93201cef1899" dependencies = [ "bitflags", "num-bigint", @@ -497,15 +517,15 @@ dependencies = [ [[package]] name = "oxc_ast_macros" -version = "0.21.0" +version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5719d91d173521f09acdb3ae334311721e132e69d7ab165d124d5e54379a63ea" +checksum = "4751921819368c33939d442dac82de0b9a3e6dc77f47c3075d34dcd59f5eb661" [[package]] name = "oxc_cfg" -version = "0.21.0" +version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6e858b12c13798023021142f82202c8b91cf2f9a7ceadab5e8ce57b0cc611fe" +checksum = "89f6062ecc4cd96cd4997c91e958028f4b12bbc48ac3aec4a8e7fd3980d76818" dependencies = [ "bitflags", "itertools", @@ -516,9 +536,9 @@ dependencies = [ [[package]] name = "oxc_codegen" -version = "0.21.0" +version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "74ad3161fba799fff085ff3c4036ef53adcb50f0e911a50affec570e82418a98" +checksum = "2bf74e9795eea2109b7d280556e31322c32c1059d241074693471a0da2b57c1b" dependencies = [ "bitflags", "daachorse", @@ -534,9 +554,9 @@ dependencies = [ [[package]] name = "oxc_diagnostics" -version = "0.21.0" +version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04752949830fd48859db58f0a9be78e426f4645be60889a3b0162eb0852b5269" +checksum = "2e3afefc5ea75439dd740b4032a765f86f41c2f2d5765dabfd2a72f4a2c8fcc0" dependencies = [ "miette", "owo-colors", @@ -546,15 +566,15 @@ dependencies = [ [[package]] name = "oxc_index" -version = "0.21.0" +version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d38dcb7b8fe88315624afd7f0e365a7a8b368603eeb831ea6ec09bc6e1aba91" +checksum = "da26f52ef092ca200d009c838eab9c3cb0aa8784e0accc7c909ed232bab52356" [[package]] name = "oxc_mangler" -version = "0.21.0" +version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "decfde1e0fcde73a564378d3e06a6d6ae07eb59af682cbc859b1e3606af02dc7" +checksum = "0f54beb3312e169c7522433ffc8e471eead71287187f534a4fd1d5b99c339b4b" dependencies = [ "itertools", "oxc_ast", @@ -565,9 +585,9 @@ dependencies = [ [[package]] name = "oxc_parser" -version = "0.21.0" +version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa459e79ce12fb2acaa1fba84d2fd336b53f61e49842861d4ed0f89cd21b27ae" +checksum = "958e0fb7424855f6f1b5b88525a6909a9e7c97540db87707b5ac215caa022852" dependencies = [ "assert-unchecked", "bitflags", @@ -603,10 +623,11 @@ dependencies = [ [[package]] name = "oxc_semantic" -version = "0.21.0" +version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a0d10b6ae92eb04e3be0f5876887dc1006a68be973ddab65b10f9b794342bf45" +checksum = "a6cf6bd3b19d7fcfd76f45c4937c80a9dbd95a4b631cad812a0ad78a3ea7c764" dependencies = [ + "assert-unchecked", "indexmap", "itertools", "oxc_allocator", @@ -622,12 +643,13 @@ dependencies = [ [[package]] name = "oxc_sourcemap" -version = "0.21.0" +version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d1f92f7d34b34b8d2ac40b7b144ea2d55152f97c725b0d10a1d2b2d6f2e4027" +checksum = "e06039eac54743c5ff3005ea363099cc11d2839c820a22b1e78e056e9e7f488b" dependencies = [ "base64-simd", "cfg-if", + "rayon", "rustc-hash", "serde", "serde_json", @@ -635,9 +657,9 @@ dependencies = [ [[package]] name = "oxc_span" -version = "0.21.0" +version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b11fa157032cc8abb0e0cf4e2632e3e16f923c637b21a8486d4b007fb96ea14e" +checksum = "0ab4d5ac5a9950042c0f18ae3833d36a3ab60f1daa07b055d2a18666f228228c" dependencies = [ "compact_str", "miette", @@ -646,9 +668,9 @@ dependencies = [ [[package]] name = "oxc_syntax" -version = "0.21.0" +version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f4ec18e5df6f721f0cdc04eb616bd02fbbd0afe111e7310cfadd5c2b3905b72" +checksum = "f1a73438a3236ed3074001e24f69277392bc88440787f2c71df17d902d10f282" dependencies = [ "bitflags", "dashmap", @@ -662,9 +684,9 @@ dependencies = [ [[package]] name = "oxc_transformer" -version = "0.21.0" +version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "682b4c09de76fa2e3b524fa791f2c7200e7d78aaf034780307916e9aa6a80da7" +checksum = "63a097057cf392ced5c5586d38794da8c91cb461eea513eaf8b6f70a0b9d2f6f" dependencies = [ "dashmap", "indexmap", @@ -684,9 +706,9 @@ dependencies = [ [[package]] name = "oxc_traverse" -version = "0.21.0" +version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3060a458ea0078d58176ae6fc6ddcebcc4af62a2b2079f3d0a7a9508d1a6abe5" +checksum = "88f0972991f4c64a1eeed819e03c87b04cccc254c4ef6414bdc86a90d74e8fca" dependencies = [ "compact_str", "memoffset", @@ -807,6 +829,26 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" +[[package]] +name = "rayon" +version = "1.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b418a60154510ca1a002a752ca9714984e21e4241e804d32555251faf8b78ffa" +dependencies = [ + "either", + "rayon-core", +] + +[[package]] +name = "rayon-core" +version = "1.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1465873a3dfdaa8ae7cb14b4383657caab0b3e8a0aa9ae8e04b044854c8dfce2" +dependencies = [ + "crossbeam-deque", + "crossbeam-utils", +] + [[package]] name = "redox_syscall" version = "0.5.3" diff --git a/Cargo.toml b/Cargo.toml index e2888e6..96fad9c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ crate-type = ["cdylib"] [dependencies] napi = { version = "3.0.0-alpha.7", default-features = false, features = ["serde-json", "napi3"] } napi-derive = { version = "3.0.0-alpha.6", default-features = false, features = ["type-def"] } -oxc = { version = "0.21", features = ["codegen", "transformer"] } +oxc = { version = "0.22", features = ["codegen", "transformer", "sourcemap_concurrent"] } oxc_resolver = "1" phf = "0.11" serde = { version = "1.0", features = ["derive"] }