diff --git a/deps/swc/Cargo.lock b/deps/swc/Cargo.lock index b87cc48db..d48383e61 100644 --- a/deps/swc/Cargo.lock +++ b/deps/swc/Cargo.lock @@ -28,14 +28,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "512761e0bb2578dd7380c6baaa0f4ce03e84f95e960231d1dec8bf4d7d6e2627" [[package]] -name = "ahash" -version = "0.7.8" +name = "aes" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "891477e0c6a8957309ee5c45a6368af3ae14bb510732d2684ffa19af310920f9" +checksum = "b169f7a6d4742236a0a00c541b845991d0ac43e546831af1249753ab4c3aa3a0" dependencies = [ - "getrandom", - "once_cell", - "version_check", + "cfg-if", + "cipher", + "cpufeatures", ] [[package]] @@ -45,7 +45,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e89da841a80418a9b391ebaea17f5c112ffaaa96f621d2c285b5174da76b9011" dependencies = [ "cfg-if", - "const-random", "getrandom", "once_cell", "serde", @@ -64,9 +63,9 @@ dependencies = [ [[package]] name = "allocator-api2" -version = "0.2.18" +version = "0.2.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c6cb57a04249c6480766f7f7cef5467412af1490f8d1e243141daddada3264f" +checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923" [[package]] name = "android-tzdata" @@ -154,9 +153,9 @@ checksum = "70033777eb8b5124a81a1889416543dddef2de240019b674c81285a2635a7e1e" [[package]] name = "anyhow" -version = "1.0.86" +version = "1.0.93" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3d1d046238990b9cf5bcde22a3fb3584ee5cf65fb2765f454ed428c7a0063da" +checksum = "4c95c10ba0b00a02636238b814946408b1322d5ac4760326e6fb8ec956d85775" [[package]] name = "arbitrary" @@ -179,6 +178,12 @@ version = "0.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50" +[[package]] +name = "ascii" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d92bec98840b8f03a5ff5413de5293bfcd8bf96467cf5452609f939ec6f5de16" + [[package]] name = "assert_cmd" version = "2.0.14" @@ -211,12 +216,12 @@ dependencies = [ [[package]] name = "ast_node" -version = "2.0.0" +version = "3.0.0" dependencies = [ "proc-macro2", "quote", "swc_macros_common", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] @@ -227,7 +232,7 @@ checksum = "a27b8a3a6e1a44fa4c8baf1f653e4172e81486d4941f2237e20dc2d0cf4ddff1" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] @@ -258,7 +263,7 @@ checksum = "3c87f3f15e7794432337fc718554eaa4dc8f04c9677a950ffe366f20a162ae42" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] @@ -277,7 +282,7 @@ dependencies = [ "cfg-if", "libc", "miniz_oxide", - "object", + "object 0.36.4", "rustc-demangle", "windows-targets 0.52.6", ] @@ -319,9 +324,29 @@ dependencies = [ "serde", ] +[[package]] +name = "bindgen" +version = "0.70.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f49d8fed880d473ea71efb9bf597651e77201bdd4893efe54c9e5d65ae04ce6f" +dependencies = [ + "bitflags 2.6.0", + "cexpr", + "clang-sys", + "itertools 0.13.0", + "log", + "prettyplease", + "proc-macro2", + "quote", + "regex", + "rustc-hash 1.1.0", + "shlex", + "syn 2.0.87", +] + [[package]] name = "binding_macros" -version = "5.0.0" +version = "13.0.0" dependencies = [ "anyhow", "console_error_panic_hook", @@ -386,17 +411,16 @@ dependencies = [ [[package]] name = "browserslist-rs" -version = "0.16.0" +version = "0.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fdf0ca73de70c3da94e4194e4a01fe732378f55d47cf4c0588caab22a0dbfa14" +checksum = "74c973b79d9b6b89854493185ab760c6ef8e54bcfad10ad4e33991e46b374ac8" dependencies = [ - "ahash 0.8.11", + "ahash", "chrono", "either", - "indexmap 2.5.0", + "indexmap 2.7.1", "itertools 0.13.0", "nom", - "once_cell", "serde", "serde_json", "thiserror", @@ -428,8 +452,20 @@ version = "0.6.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "23cdc57ce23ac53c931e88a43d06d070a6fd142f2617be5855eb75efc9beb1c2" dependencies = [ - "bytecheck_derive", - "ptr_meta", + "bytecheck_derive 0.6.12", + "ptr_meta 0.1.4", + "simdutf8", +] + +[[package]] +name = "bytecheck" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50c8f430744b23b54ad15161fcbc22d82a29b73eacbe425fea23ec822600bc6f" +dependencies = [ + "bytecheck_derive 0.8.0", + "ptr_meta 0.3.0", + "rancor", "simdutf8", ] @@ -444,6 +480,17 @@ dependencies = [ "syn 1.0.109", ] +[[package]] +name = "bytecheck_derive" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "523363cbe1df49b68215efdf500b103ac3b0fb4836aed6d15689a076eadb8fff" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", +] + [[package]] name = "byteorder" version = "1.5.0" @@ -452,9 +499,9 @@ checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" [[package]] name = "bytes" -version = "1.7.1" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8318a53db07bb3f8dca91a600466bdb3f2eaadeedfdbcf02e1accbad9271ba50" +checksum = "9ac0150caa2ae65ca5bd83f25c7de183dea78d4d366469f148435e2acfbad0da" dependencies = [ "serde", ] @@ -468,6 +515,27 @@ dependencies = [ "serde", ] +[[package]] +name = "bzip2" +version = "0.4.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bdb116a6ef3f6c3698828873ad02c3014b3c85cadb88496095628e3ef1e347f8" +dependencies = [ + "bzip2-sys", + "libc", +] + +[[package]] +name = "bzip2-sys" +version = "0.1.11+1.0.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "736a955f3fa7875102d57c82b8cac37ec45224a07fd32d58f9f7a186b6cd4cdc" +dependencies = [ + "cc", + "libc", + "pkg-config", +] + [[package]] name = "camino" version = "1.1.9" @@ -506,15 +574,35 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "37b2a672a2cb129a2e41c10b1224bb368f9f37a2b16b612598138befd7b37eb5" +[[package]] +name = "castaway" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0abae9be0aaf9ea96a3b1b8b1b55c602ca751eba1b1500220cea4ecbafe7c0d5" +dependencies = [ + "rustversion", +] + [[package]] name = "cc" version = "1.1.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "57b6a275aa2903740dc87da01c62040406b8812552e97129a63ea8850a17c6e6" dependencies = [ + "jobserver", + "libc", "shlex", ] +[[package]] +name = "cexpr" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6fac387a98bb7c37292057cffc56d62ecb629900026402633ae9160df93a8766" +dependencies = [ + "nom", +] + [[package]] name = "cfg-if" version = "1.0.0" @@ -527,11 +615,17 @@ version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2cc9a2cd1dfcbaf58c5a8552616ee811323cc614ffa612857b0ff610b5335b0e" +[[package]] +name = "chili" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e72f874459a658df39dd1d99f7f62a9c421792efc26eaae8d497ae5d2e816a62" + [[package]] name = "chrono" -version = "0.4.38" +version = "0.4.39" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a21f936df1771bf62b77f047b726c4625ff2e8aa607c01ec06e5a05bd8463401" +checksum = "7e36cc9d416881d2e24f9a963be5fb1cd90966419ac844274161d10488b3e825" dependencies = [ "android-tzdata", "iana-time-zone", @@ -568,6 +662,27 @@ dependencies = [ "half", ] +[[package]] +name = "cipher" +version = "0.4.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad" +dependencies = [ + "crypto-common", + "inout", +] + +[[package]] +name = "clang-sys" +version = "1.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b023947811758c97c59bf9d1c188fd619ad4718dcaa767947df1cadb14f39f4" +dependencies = [ + "glob", + "libc", + "libloading", +] + [[package]] name = "clap" version = "3.2.25" @@ -630,7 +745,7 @@ dependencies = [ "heck 0.5.0", "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] @@ -648,6 +763,15 @@ version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4b82cf0babdbd58558212896d1a4272303a57bdb245c2bf1147185fb45640e70" +[[package]] +name = "cmake" +version = "0.1.51" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fb1e43aa7fd152b1f968787f7dbcdeb306d1867ff373c69955211876c053f91a" +dependencies = [ + "cc", +] + [[package]] name = "codspeed" version = "2.6.0" @@ -686,6 +810,19 @@ dependencies = [ "windows-sys 0.48.0", ] +[[package]] +name = "compact_str" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f86b9c4c00838774a6d902ef931eff7470720c51d90c2e32cfe15dc304737b3f" +dependencies = [ + "castaway", + "cfg-if", + "itoa", + "ryu", + "static_assertions", +] + [[package]] name = "console" version = "0.15.8" @@ -709,26 +846,6 @@ dependencies = [ "wasm-bindgen", ] -[[package]] -name = "const-random" -version = "0.1.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5aaf16c9c2c612020bcfd042e170f6e32de9b9d75adb5277cdbbd2e2c8c8299a" -dependencies = [ - "const-random-macro", -] - -[[package]] -name = "const-random-macro" -version = "0.1.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9d839f2a20b0aee515dc581a6172f2321f96cab76c1a38a4c584a194955390e" -dependencies = [ - "getrandom", - "once_cell", - "tiny-keccak", -] - [[package]] name = "constant_time_eq" version = "0.3.1" @@ -774,15 +891,15 @@ checksum = "06ea2b9bc92be3c2baa9334a323ebca2d6f074ff852cd1d7b11064035cd3868f" [[package]] name = "corosensei" -version = "0.1.4" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "80128832c58ea9cbd041d2a759ec449224487b2c1e400453d99d244eead87a8e" +checksum = "ad067b451c08956709f8762dba86e049c124ea52858e3ab8d076ba2892caa437" dependencies = [ "autocfg", "cfg-if", "libc", "scopeguard", - "windows-sys 0.33.0", + "windows-sys 0.59.0", ] [[package]] @@ -796,74 +913,80 @@ dependencies = [ [[package]] name = "cranelift-bforest" -version = "0.91.1" +version = "0.110.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2a2ab4512dfd3a6f4be184403a195f76e81a8a9f9e6c898e19d2dc3ce20e0115" +checksum = "305d51c180ebdc46ef61bc60c54ae6512db3bc9a05842a1f1e762e45977019ab" dependencies = [ "cranelift-entity", ] +[[package]] +name = "cranelift-bitset" +version = "0.110.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "690d8ae6c73748e5ce3d8fe59034dceadb8823e6c8994ba324141c5eae909b0e" + [[package]] name = "cranelift-codegen" -version = "0.91.1" +version = "0.110.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "98b022ed2a5913a38839dfbafe6cf135342661293b08049843362df4301261dc" +checksum = "bd7ca95e831c18d1356da783765c344207cbdffea91e13e47fa9327dbb2e0719" dependencies = [ - "arrayvec", "bumpalo", "cranelift-bforest", + "cranelift-bitset", "cranelift-codegen-meta", "cranelift-codegen-shared", - "cranelift-egraph", + "cranelift-control", "cranelift-entity", "cranelift-isle", - "gimli 0.26.2", + "gimli 0.28.1", + "hashbrown 0.14.5", "log", "regalloc2", + "rustc-hash 1.1.0", "smallvec", "target-lexicon", ] [[package]] name = "cranelift-codegen-meta" -version = "0.91.1" +version = "0.110.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "639307b45434ad112a98f8300c0f0ab085cbefcd767efcdef9ef19d4c0756e74" +checksum = "f0a2d2ab65e6cbf91f81781d8da65ec2005510f18300eff21a99526ed6785863" dependencies = [ "cranelift-codegen-shared", ] [[package]] name = "cranelift-codegen-shared" -version = "0.91.1" +version = "0.110.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "278e52e29c53fcf32431ef08406c295699a70306d05a0715c5b1bf50e33a9ab7" +checksum = "efcff860573cf3db9ae98fbd949240d78b319df686cc306872e7fab60e9c84d7" [[package]] -name = "cranelift-egraph" -version = "0.91.1" +name = "cranelift-control" +version = "0.110.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "624b54323b06e675293939311943ba82d323bb340468ce1889be5da7932c8d73" +checksum = "69d70e5b75c2d5541ef80a99966ccd97aaa54d2a6af19ea31759a28538e1685a" dependencies = [ - "cranelift-entity", - "fxhash", - "hashbrown 0.12.3", - "indexmap 1.9.3", - "log", - "smallvec", + "arbitrary", ] [[package]] name = "cranelift-entity" -version = "0.91.1" +version = "0.110.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a59bcbca89c3f1b70b93ab3cbba5e5e0cbf3e63dadb23c7525cb142e21a9d4c" +checksum = "a48cb0a194c9ba82fec35a1e492055388d89b2e3c03dee9dcf2488892be8004d" +dependencies = [ + "cranelift-bitset", +] [[package]] name = "cranelift-frontend" -version = "0.91.1" +version = "0.110.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d70abacb8cfef3dc8ff7e8836e9c1d70f7967dfdac824a4cd5e30223415aca6" +checksum = "8327afc6c1c05f4be62fefce5b439fa83521c65363a322e86ea32c85e7ceaf64" dependencies = [ "cranelift-codegen", "log", @@ -873,9 +996,9 @@ dependencies = [ [[package]] name = "cranelift-isle" -version = "0.91.1" +version = "0.110.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "393bc73c451830ff8dbb3a07f61843d6cb41a084f9996319917c0b291ed785bb" +checksum = "56b08621c00321efcfa3eee6a3179adc009e21ea8d24ca7adc3c326184bc3f48" [[package]] name = "crc" @@ -883,7 +1006,16 @@ version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "49fc9a695bca7f35f5f4c15cddc84415f66a74ea78eef08e90c5024f2b540e23" dependencies = [ - "crc-catalog", + "crc-catalog 1.1.1", +] + +[[package]] +name = "crc" +version = "3.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69e6e4d7b33a94f0991c26729976b10ebde1d34c3ee82408fb536164fa10d636" +dependencies = [ + "crc-catalog 2.4.0", ] [[package]] @@ -892,6 +1024,12 @@ version = "1.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ccaeedb56da03b09f598226e25e80088cb4cd25f316e6e4df7d695f0feeb1403" +[[package]] +name = "crc-catalog" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19d374276b40fb8bbdee95aef7c7fa6b5316ec764510eb64b8dd0e2ed0d7e7f5" + [[package]] name = "crc32fast" version = "1.4.2" @@ -973,9 +1111,9 @@ dependencies = [ [[package]] name = "crossbeam-queue" -version = "0.3.11" +version = "0.3.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df0346b5d5e76ac2fe4e327c5fd1118d6be7c51dfb18f9b7922923f287471e35" +checksum = "0f58bbc28f91df819d0aa2a2c00cd19754769c2fad90579b3592b1c9ba7a3115" dependencies = [ "crossbeam-utils", ] @@ -1009,7 +1147,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "30d2b3721e861707777e3195b0158f950ae6dc4a27e4d02ff9f67e3eb3de199e" dependencies = [ "quote", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] @@ -1057,7 +1195,7 @@ dependencies = [ "proc-macro2", "quote", "strsim 0.11.1", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] @@ -1079,7 +1217,7 @@ checksum = "d336a2a514f6ccccaa3e09b02d41d35330c07ddf03a62165fcec10bb561c7806" dependencies = [ "darling_core 0.20.10", "quote", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] @@ -1117,7 +1255,7 @@ checksum = "7e962a19be5cfc3f3bf6dd8f61eb50107f356ad6270fbb3ed41476571db78be5" [[package]] name = "dbg-swc" -version = "5.0.0" +version = "10.0.0" dependencies = [ "anyhow", "clap 3.2.25", @@ -1153,6 +1291,12 @@ dependencies = [ "uuid", ] +[[package]] +name = "deflate64" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da692b8d1080ea3045efaab14434d40468c3d8657e42abddfffca87b428f4c1b" + [[package]] name = "deranged" version = "0.3.11" @@ -1181,7 +1325,7 @@ checksum = "67e77553c4162a157adbf834ebae5b415acbecbeafc7a74b0e886657506a7611" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] @@ -1223,7 +1367,7 @@ dependencies = [ "darling 0.20.10", "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] @@ -1243,7 +1387,39 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "206868b8242f27cecce124c19fd88157fbd0dd334df2587f36417bafbc85097b" dependencies = [ "derive_builder_core 0.20.0", - "syn 2.0.77", + "syn 2.0.87", +] + +[[package]] +name = "derive_more" +version = "0.99.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f33878137e4dafd7fa914ad4e259e18a4e8e532b9617a2d0150262bf53abfce" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", +] + +[[package]] +name = "derive_more" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4a9b99b9cbbe49445b21764dc0625032a89b145a2642e67603e1c936f5458d05" +dependencies = [ + "derive_more-impl", +] + +[[package]] +name = "derive_more-impl" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb7330aeadfbe296029522e6c40f315320aba36fc43a5b3632f3795348f3bd22" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", + "unicode-xid", ] [[package]] @@ -1284,6 +1460,18 @@ checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" dependencies = [ "block-buffer", "crypto-common", + "subtle", +] + +[[package]] +name = "displaydoc" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", ] [[package]] @@ -1372,7 +1560,7 @@ dependencies = [ "darling 0.20.10", "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] @@ -1393,9 +1581,9 @@ dependencies = [ [[package]] name = "fallible-iterator" -version = "0.2.0" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4443176a9f2c162692bd3d352d745ef9413eec5782a80d8fd6f8a1ac692a07f7" +checksum = "2acce4a10f12dc2fb14a218589d4f1f62ef011b2d0cc4b3cb1bba8e94da14649" [[package]] name = "fastrand" @@ -1423,9 +1611,9 @@ checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80" [[package]] name = "flate2" -version = "1.0.33" +version = "1.0.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "324a1be68054ef05ad64b861cc9eaf1d623d2d8cb25b4bf2cb9cdd902b4bf253" +checksum = "a1b589b4dc103969ad3cf85c950899926ec64300a1a46d76c03a6072957036f0" dependencies = [ "crc32fast", "miniz_oxide", @@ -1467,7 +1655,7 @@ version = "2.0.0" dependencies = [ "proc-macro2", "swc_macros_common", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] @@ -1538,7 +1726,7 @@ checksum = "162ee34ebcb7c64a8abebc059ce0fee27c2262618d7b60ed8faf72fef13c3650" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] @@ -1571,15 +1759,6 @@ dependencies = [ "slab", ] -[[package]] -name = "fxhash" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c31b6d751ae2c7f11320402d34e41349dd1016f8d5d45e48c4312bc8625af50c" -dependencies = [ - "byteorder", -] - [[package]] name = "generate-code" version = "0.1.0" @@ -1589,7 +1768,7 @@ dependencies = [ "clap 4.5.9", "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.87", "walkdir", ] @@ -1630,12 +1809,12 @@ dependencies = [ [[package]] name = "gimli" -version = "0.26.2" +version = "0.28.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22030e2c5a68ec659fde1e949a745124b48e6fa8b045b7ed5bd1fe4ccc5c4e5d" +checksum = "4271d37baee1b8c7e4b708028c57d816cf9d2434acb33a549475f78c181f6253" dependencies = [ "fallible-iterator", - "indexmap 1.9.3", + "indexmap 2.7.1", "stable_deref_trait", ] @@ -1647,9 +1826,9 @@ checksum = "32085ea23f3234fc7846555e85283ba4de91e21016dc0455a16286d87a292d64" [[package]] name = "glob" -version = "0.3.1" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" +checksum = "a8d1add55171497b4705a648c6b583acafb01d58050a51727785f0b2c8e0a2b2" [[package]] name = "globset" @@ -1687,7 +1866,7 @@ dependencies = [ "futures-sink", "futures-util", "http 0.2.12", - "indexmap 2.5.0", + "indexmap 2.7.1", "slab", "tokio", "tokio-util", @@ -1718,9 +1897,6 @@ name = "hashbrown" version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" -dependencies = [ - "ahash 0.7.8", -] [[package]] name = "hashbrown" @@ -1728,7 +1904,7 @@ version = "0.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "43a3c133739dddd0d2990f9a4bdf8eb4b21ef50e4851ca85ab661199821d510e" dependencies = [ - "ahash 0.8.11", + "ahash", ] [[package]] @@ -1737,10 +1913,16 @@ version = "0.14.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" dependencies = [ - "ahash 0.8.11", + "ahash", "allocator-api2", ] +[[package]] +name = "hashbrown" +version = "0.15.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf151400ff0baff5465007dd2f3e717f3fe502074ca563069ce3a6629d07b289" + [[package]] name = "heapless" version = "0.7.17" @@ -1797,16 +1979,35 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" [[package]] -name = "hstr" -version = "0.2.12" +name = "hmac" +version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dae404c0c5d4e95d4858876ab02eecd6a196bb8caa42050dfa809938833fc412" +checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e" +dependencies = [ + "digest", +] + +[[package]] +name = "hstr" +version = "0.2.17" dependencies = [ + "compact_str", + "criterion", "hashbrown 0.14.5", + "kstring", "new_debug_unreachable", + "num_cpus", "once_cell", "phf", - "rustc-hash", + "rand", + "rayon", + "rkyv", + "rustc-hash 2.1.0", + "serde", + "smartstring", + "smol_str", + "string_cache", + "swc_malloc", "triomphe", ] @@ -1872,7 +2073,7 @@ dependencies = [ "httpdate", "itoa", "pin-project-lite", - "socket2 0.5.7", + "socket2", "tokio", "tower-service", "tracing", @@ -1916,52 +2117,181 @@ dependencies = [ ] [[package]] -name = "id-arena" -version = "2.2.1" +name = "icu_collections" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25a2bc672d1148e28034f176e01fffebb08b35768468cc954630da77a1449005" +checksum = "db2fa452206ebee18c4b5c2274dbf1de17008e874b4dc4f0aea9d01ca79e4526" +dependencies = [ + "displaydoc", + "yoke", + "zerofrom", + "zerovec", +] [[package]] -name = "ident_case" -version = "1.0.1" +name = "icu_locid" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" +checksum = "13acbb8371917fc971be86fc8057c41a64b521c184808a698c02acc242dbf637" +dependencies = [ + "displaydoc", + "litemap", + "tinystr", + "writeable", + "zerovec", +] [[package]] -name = "idna" -version = "0.5.0" +name = "icu_locid_transform" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "634d9b1461af396cad843f47fdba5597a4f9e6ddd4bfb6ff5d85028c25cb12f6" +checksum = "01d11ac35de8e40fdeda00d9e1e9d92525f3f9d887cdd7aa81d727596788b54e" dependencies = [ - "unicode-bidi", - "unicode-normalization", + "displaydoc", + "icu_locid", + "icu_locid_transform_data", + "icu_provider", + "tinystr", + "zerovec", ] [[package]] -name = "if_chain" -version = "1.0.2" +name = "icu_locid_transform_data" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb56e1aa765b4b4f3aadfab769793b7087bb03a4ea4920644a6d238e2df5b9ed" +checksum = "fdc8ff3388f852bede6b579ad4e978ab004f139284d7b28715f773507b946f6e" [[package]] -name = "ignore" -version = "0.4.23" +name = "icu_normalizer" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d89fd380afde86567dfba715db065673989d6253f42b88179abd3eae47bda4b" +checksum = "19ce3e0da2ec68599d193c93d088142efd7f9c5d6fc9b803774855747dc6a84f" dependencies = [ - "crossbeam-deque", - "globset", - "log", - "memchr", - "regex-automata 0.4.7", - "same-file", - "walkdir", - "winapi-util", + "displaydoc", + "icu_collections", + "icu_normalizer_data", + "icu_properties", + "icu_provider", + "smallvec", + "utf16_iter", + "utf8_iter", + "write16", + "zerovec", ] [[package]] -name = "indexmap" -version = "1.9.3" +name = "icu_normalizer_data" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8cafbf7aa791e9b22bec55a167906f9e1215fd475cd22adfcf660e03e989516" + +[[package]] +name = "icu_properties" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93d6020766cfc6302c15dbbc9c8778c37e62c14427cb7f6e601d849e092aeef5" +dependencies = [ + "displaydoc", + "icu_collections", + "icu_locid_transform", + "icu_properties_data", + "icu_provider", + "tinystr", + "zerovec", +] + +[[package]] +name = "icu_properties_data" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67a8effbc3dd3e4ba1afa8ad918d5684b8868b3b26500753effea8d2eed19569" + +[[package]] +name = "icu_provider" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ed421c8a8ef78d3e2dbc98a973be2f3770cb42b606e3ab18d6237c4dfde68d9" +dependencies = [ + "displaydoc", + "icu_locid", + "icu_provider_macros", + "stable_deref_trait", + "tinystr", + "writeable", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_provider_macros" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ec89e9337638ecdc08744df490b221a7399bf8d164eb52a665454e60e075ad6" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", +] + +[[package]] +name = "id-arena" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "25a2bc672d1148e28034f176e01fffebb08b35768468cc954630da77a1449005" + +[[package]] +name = "ident_case" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" + +[[package]] +name = "idna" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "686f825264d630750a544639377bae737628043f20d38bbc029e8f29ea968a7e" +dependencies = [ + "idna_adapter", + "smallvec", + "utf8_iter", +] + +[[package]] +name = "idna_adapter" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "daca1df1c957320b2cf139ac61e7bd64fed304c5040df000a745aa1de3b4ef71" +dependencies = [ + "icu_normalizer", + "icu_properties", +] + +[[package]] +name = "if_chain" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb56e1aa765b4b4f3aadfab769793b7087bb03a4ea4920644a6d238e2df5b9ed" + +[[package]] +name = "ignore" +version = "0.4.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d89fd380afde86567dfba715db065673989d6253f42b88179abd3eae47bda4b" +dependencies = [ + "crossbeam-deque", + "globset", + "log", + "memchr", + "regex-automata 0.4.7", + "same-file", + "walkdir", + "winapi-util", +] + +[[package]] +name = "indexmap" +version = "1.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" dependencies = [ @@ -1972,16 +2302,39 @@ dependencies = [ [[package]] name = "indexmap" -version = "2.5.0" +version = "2.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68b900aa2f7301e21c36462b170ee99994de34dff39a4a6a528e80e7376d07e5" +checksum = "8c9c992b02b5b4c94ea26e32fe5bccb7aa7d9f390ab5c1221ff895bc7ea8b652" dependencies = [ "equivalent", - "hashbrown 0.14.5", + "hashbrown 0.15.2", "rayon", "serde", ] +[[package]] +name = "inout" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a0c10553d664a4d0bcff9f4215d0aac67a639cc68ef660840afe309b807bc9f5" +dependencies = [ + "generic-array", +] + +[[package]] +name = "insta" +version = "1.41.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e9ffc4d4892617c50a928c52b2961cb5174b6fc6ebf252b2fac9d21955c48b8" +dependencies = [ + "console", + "lazy_static", + "linked-hash-map", + "regex", + "serde", + "similar", +] + [[package]] name = "io-lifetimes" version = "1.0.11" @@ -1995,9 +2348,18 @@ dependencies = [ [[package]] name = "ipnet" -version = "2.9.0" +version = "2.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ddc24109865250148c2e0f3d25d4f0f479571723792d3802153c60922a4fb708" + +[[package]] +name = "iprange" +version = "0.6.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f518f335dce6725a761382244631d86cf0ccb2863413590b31338feb467f9c3" +checksum = "37209be0ad225457e63814401415e748e2453a5297f9b637338f5fb8afa4ec00" +dependencies = [ + "ipnet", +] [[package]] name = "is-macro" @@ -2008,7 +2370,7 @@ dependencies = [ "heck 0.5.0", "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] @@ -2031,6 +2393,15 @@ dependencies = [ "either", ] +[[package]] +name = "itertools" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569" +dependencies = [ + "either", +] + [[package]] name = "itertools" version = "0.13.0" @@ -2046,18 +2417,28 @@ version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b" +[[package]] +name = "jobserver" +version = "0.1.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "48d1dbcbbeb6a7fec7e059840aa538bd62aaccf972c7346c4d9d2059312853d0" +dependencies = [ + "libc", +] + [[package]] name = "js-sys" -version = "0.3.72" +version = "0.3.76" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a88f1bda2bd75b0452a14784937d796722fdebfe50df998aeb3f0b7603019a9" +checksum = "6717b6b5b077764fb5966237269cb3c64edddde4b14ce42647430a78ced9e7b7" dependencies = [ + "once_cell", "wasm-bindgen", ] [[package]] name = "jsdoc" -version = "4.0.0" +version = "6.0.0" dependencies = [ "anyhow", "dashmap 5.5.3", @@ -2085,6 +2466,15 @@ dependencies = [ "serde_json", ] +[[package]] +name = "kstring" +version = "2.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "558bf9508a558512042d3095138b1f7b8fe90c5467d94f9f1da28b3731c5dbd1" +dependencies = [ + "static_assertions", +] + [[package]] name = "lazy_static" version = "1.5.0" @@ -2181,9 +2571,9 @@ dependencies = [ [[package]] name = "libc" -version = "0.2.158" +version = "0.2.162" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d8adc4bb1803a324070e64a98ae98f38934d91957a99cfb3a43dcbc01bc56439" +checksum = "18d287de67fe55fd7e1581fe933d965a5a9477b38e949cfa9f8574ef01506398" [[package]] name = "libloading" @@ -2216,6 +2606,16 @@ dependencies = [ "redox_syscall", ] +[[package]] +name = "libyml" +version = "0.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3302702afa434ffa30847a83305f0a69d6abd74293b6554c18ec85c7ef30c980" +dependencies = [ + "anyhow", + "version_check", +] + [[package]] name = "linked-hash-map" version = "0.5.6" @@ -2243,6 +2643,12 @@ version = "0.4.14" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89" +[[package]] +name = "litemap" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ee93343901ab17bd981295f2cf0026d4ad018c7c31ba84549a4ddbb47a45104" + [[package]] name = "litrs" version = "0.4.1" @@ -2259,6 +2665,12 @@ dependencies = [ "scopeguard", ] +[[package]] +name = "lockfree-object-pool" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9374ef4228402d4b7e403e5838cb880d9ee663314b0a900d5a6aabf0c213552e" + [[package]] name = "log" version = "0.4.22" @@ -2283,6 +2695,27 @@ dependencies = [ "twox-hash", ] +[[package]] +name = "lzma-rs" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "297e814c836ae64db86b36cf2a557ba54368d03f6afcd7d947c266692f71115e" +dependencies = [ + "byteorder", + "crc 3.2.1", +] + +[[package]] +name = "lzma-sys" +version = "0.1.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5fda04ab3764e6cde78b9974eec4f779acaba7c4e84b36eca3cf77c581b85d27" +dependencies = [ + "cc", + "libc", + "pkg-config", +] + [[package]] name = "mach2" version = "0.4.2" @@ -2313,15 +2746,6 @@ version = "2.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" -[[package]] -name = "memmap2" -version = "0.5.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "83faa42c0a078c393f6b29d5db232d8be22776a891f8f56e5284faee4a20b327" -dependencies = [ - "libc", -] - [[package]] name = "memmap2" version = "0.6.2" @@ -2362,7 +2786,7 @@ checksum = "dcf09caffaac8068c346b6df2a7fc27a177fd20b39421a39ce0a211bde679a6c" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] @@ -2395,18 +2819,6 @@ dependencies = [ "adler2", ] -[[package]] -name = "mio" -version = "0.8.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4a650543ca06a924e8b371db273b2756685faae30f8487da1b56505a8f78b0c" -dependencies = [ - "libc", - "log", - "wasi", - "windows-sys 0.48.0", -] - [[package]] name = "mio" version = "1.0.2" @@ -2415,6 +2827,7 @@ checksum = "80e04d1dcff3aae0704555fe5fee3bcfaf3d1fdf8a7e521d5b9d2b42acb52cec" dependencies = [ "hermit-abi 0.3.9", "libc", + "log", "wasi", "windows-sys 0.52.0", ] @@ -2425,6 +2838,26 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7843ec2de400bcbc6a6328c958dc38e5359da6e93e72e37bc5246bf1ae776389" +[[package]] +name = "munge" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "64142d38c84badf60abf06ff9bd80ad2174306a5b11bd4706535090a30a419df" +dependencies = [ + "munge_macro", +] + +[[package]] +name = "munge_macro" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bb5c1d8184f13f7d0ccbeeca0def2f9a181bce2624302793005f5ca8aa62e5e" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", +] + [[package]] name = "napi" version = "2.16.13" @@ -2438,27 +2871,28 @@ dependencies = [ "once_cell", "serde", "serde_json", + "tokio", ] [[package]] name = "napi-derive" -version = "2.16.12" +version = "2.16.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17435f7a00bfdab20b0c27d9c56f58f6499e418252253081bfff448099da31d1" +checksum = "7cbe2585d8ac223f7d34f13701434b9d5f4eb9c332cccce8dee57ea18ab8ab0c" dependencies = [ "cfg-if", "convert_case", "napi-derive-backend", "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] name = "napi-derive-backend" -version = "1.0.74" +version = "1.0.75" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "967c485e00f0bf3b1bdbe510a38a4606919cf1d34d9a37ad41f25a81aa077abe" +checksum = "1639aaa9eeb76e91c6ae66da8ce3e89e921cd3885e99ec85f4abacae72fc91bf" dependencies = [ "convert_case", "once_cell", @@ -2466,7 +2900,7 @@ dependencies = [ "quote", "regex", "semver 1.0.23", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] @@ -2647,6 +3081,20 @@ dependencies = [ "libc", ] +[[package]] +name = "object" +version = "0.32.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6a622008b6e321afc04970976f62ee297fdbaa6f95318ca343e3eebb9648441" +dependencies = [ + "crc32fast", + "flate2", + "hashbrown 0.14.5", + "indexmap 2.7.1", + "memchr", + "ruzstd", +] + [[package]] name = "object" version = "0.36.4" @@ -2670,9 +3118,9 @@ checksum = "0ab1bc2a289d34bd04a330323ac98a1b4bc82c9d9fcb1e66b63caa84da26b575" [[package]] name = "openssl" -version = "0.10.66" +version = "0.10.70" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9529f4786b70a3e8c61e11179af17ab6188ad8d0ded78c5529441ed39d4bd9c1" +checksum = "61cfb4e166a8bb8c9b55c500bc2308550148ece889be90f609377e58140f42c6" dependencies = [ "bitflags 2.6.0", "cfg-if", @@ -2691,7 +3139,7 @@ checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] @@ -2702,9 +3150,9 @@ checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" [[package]] name = "openssl-sys" -version = "0.9.103" +version = "0.9.105" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f9e8deee91df40a943c71b917e5874b951d32a802526c85721ce3b776c929d6" +checksum = "8b22d5b84be05a8d6947c7cb71f7c849aa0f112acd4bf51c2a7c1c988ac0a9dc" dependencies = [ "cc", "libc", @@ -2791,9 +3239,19 @@ dependencies = [ [[package]] name = "pathdiff" -version = "0.2.2" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df94ce210e5bc13cb6651479fa48d14f601d9858cfe0467f43ae157023b938d3" + +[[package]] +name = "pbkdf2" +version = "0.12.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d61c5ce1153ab5b689d0c074c4e7fc613e942dfb7dd9eea5ab202d2ad91fe361" +checksum = "f8ed6a7761f76e3b9f92dfb0a60a6a6477c61024b775147ff0973a02653abaf2" +dependencies = [ + "digest", + "hmac", +] [[package]] name = "percent-encoding" @@ -2808,17 +3266,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b4c5cc86750666a3ed20bdaf5ca2a0344f9c67674cae0515bec2da16fbaa47db" dependencies = [ "fixedbitset", - "indexmap 2.5.0", + "indexmap 2.7.1", ] [[package]] name = "phf" -version = "0.11.2" +version = "0.11.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ade2d8b8f33c7333b51bcf0428d37e217e9f32192ae4772156f65063b8ce03dc" +checksum = "1fd6780a80ae0c52cc120a26a1a42c1ae51b247a253e4e06113d23d2c2edd078" dependencies = [ "phf_macros", - "phf_shared", + "phf_shared 0.11.3", ] [[package]] @@ -2827,30 +3285,39 @@ version = "0.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "48e4cc64c2ad9ebe670cb8fd69dd50ae301650392e81c05f9bfcb2d5bdbc24b0" dependencies = [ - "phf_shared", + "phf_shared 0.11.3", "rand", ] [[package]] name = "phf_macros" -version = "0.11.2" +version = "0.11.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3444646e286606587e49f3bcf1679b8cef1dc2c5ecc29ddacaffc305180d464b" +checksum = "f84ac04429c13a7ff43785d75ad27569f2951ce0ffd30a3321230db2fc727216" dependencies = [ "phf_generator", - "phf_shared", + "phf_shared 0.11.3", "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] name = "phf_shared" -version = "0.11.2" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6796ad771acdc0123d2a88dc428b5e38ef24456743ddb1744ed628f9815c096" +dependencies = [ + "siphasher 0.3.11", +] + +[[package]] +name = "phf_shared" +version = "0.11.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90fcb95eef784c2ac79119d1dd819e162b5da872ce6f3c3abe1e8ca1c082f72b" +checksum = "67eabc2ef2a60eb7faa00097bd1ffdb5bd28e62bf39990626a582201b7a754e5" dependencies = [ - "siphasher", + "siphasher 1.0.1", ] [[package]] @@ -2870,7 +3337,7 @@ checksum = "4359fd9c9171ec6e8c62926d6faaf553a8dc3f64e1507e76da7911b4f6a04405" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] @@ -2934,6 +3401,12 @@ dependencies = [ "zerocopy", ] +[[package]] +name = "precomputed-hash" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c" + [[package]] name = "predicates" version = "3.1.0" @@ -2963,14 +3436,14 @@ dependencies = [ [[package]] name = "preset_env_base" -version = "1.0.0" +version = "2.0.1" dependencies = [ - "ahash 0.8.11", "anyhow", "browserslist-rs", "dashmap 5.5.3", "from_variant", "once_cell", + "rustc-hash 2.1.0", "semver 1.0.23", "serde", "st-map", @@ -2987,6 +3460,16 @@ dependencies = [ "yansi", ] +[[package]] +name = "prettyplease" +version = "0.2.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "64d1ec885c64d0457d564db4ec299b2dae3f9c02808b8ad9c3a089c591b18033" +dependencies = [ + "proc-macro2", + "syn 2.0.87", +] + [[package]] name = "proc-macro-crate" version = "1.3.1" @@ -3021,6 +3504,28 @@ dependencies = [ "version_check", ] +[[package]] +name = "proc-macro-error-attr2" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96de42df36bb9bba5542fe9f1a054b8cc87e172759a1868aa05c1f3acc89dfc5" +dependencies = [ + "proc-macro2", + "quote", +] + +[[package]] +name = "proc-macro-error2" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "11ec05c52be0a07b08061f7dd003e7d7092e0472bc731b4af7bb1ef876109802" +dependencies = [ + "proc-macro-error-attr2", + "proc-macro2", + "quote", + "syn 2.0.87", +] + [[package]] name = "proc-macro2" version = "1.0.86" @@ -3045,20 +3550,40 @@ version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0738ccf7ea06b608c10564b31debd4f5bc5e197fc8bfe088f68ae5ce81e7a4f1" dependencies = [ - "ptr_meta_derive", + "ptr_meta_derive 0.1.4", ] [[package]] -name = "ptr_meta_derive" -version = "0.1.4" +name = "ptr_meta" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16b845dbfca988fa33db069c0e230574d15a3088f147a87b64c7589eb662c9ac" +checksum = "fe9e76f66d3f9606f44e45598d155cb13ecf09f4a28199e48daf8c8fc937ea90" +dependencies = [ + "ptr_meta_derive 0.3.0", +] + +[[package]] +name = "ptr_meta_derive" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16b845dbfca988fa33db069c0e230574d15a3088f147a87b64c7589eb662c9ac" dependencies = [ "proc-macro2", "quote", "syn 1.0.109", ] +[[package]] +name = "ptr_meta_derive" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca414edb151b4c8d125c12566ab0d74dc9cdba36fb80eb7b848c15f495fd32d1" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", +] + [[package]] name = "pulldown-cmark" version = "0.8.0" @@ -3091,6 +3616,15 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ce082a9940a7ace2ad4a8b7d0b1eac6aa378895f18be598230c5f2284ac05426" +[[package]] +name = "rancor" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "caf5f7161924b9d1cea0e4cabc97c372cea92b5f927fc13c6bca67157a0ad947" +dependencies = [ + "ptr_meta 0.3.0", +] + [[package]] name = "rand" version = "0.8.5" @@ -3152,12 +3686,13 @@ dependencies = [ [[package]] name = "regalloc2" -version = "0.5.1" +version = "0.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "300d4fbfb40c1c66a78ba3ddd41c1110247cf52f97b87d0f2fc9209bd49b030c" +checksum = "ad156d539c879b7a24a363a2016d77961786e71f48f2e2fc8302a92abd2429a6" dependencies = [ - "fxhash", + "hashbrown 0.13.2", "log", + "rustc-hash 1.1.0", "slice-group-by", "smallvec", ] @@ -3226,11 +3761,11 @@ checksum = "e898588f33fdd5b9420719948f9f2a32c922a246964576f71ba7f24f80610fbc" [[package]] name = "rend" -version = "0.4.2" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "71fe3824f5629716b1589be05dacd749f6aa084c87e00e016714a8cdfccc997c" +checksum = "a35e8a6bf28cd121053a66aa2e6a2e3eaffad4a60012179f0e864aa5ffeff215" dependencies = [ - "bytecheck", + "bytecheck 0.8.0", ] [[package]] @@ -3279,34 +3814,49 @@ dependencies = [ "winreg", ] +[[package]] +name = "ring" +version = "0.17.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c17fa4cb658e3583423e915b9f3acc01cceaee1860e33d59ebae66adc3a2dc0d" +dependencies = [ + "cc", + "cfg-if", + "getrandom", + "libc", + "spin", + "untrusted", + "windows-sys 0.52.0", +] + [[package]] name = "rkyv" -version = "0.7.45" +version = "0.8.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9008cd6385b9e161d8229e1f6549dd23c3d022f132a2ea37ac3a10ac4935779b" +checksum = "b11a153aec4a6ab60795f8ebe2923c597b16b05bb1504377451e705ef1a45323" dependencies = [ - "bitvec", - "bytecheck", + "bytecheck 0.8.0", "bytes", - "hashbrown 0.12.3", - "indexmap 1.9.3", - "ptr_meta", + "hashbrown 0.15.2", + "indexmap 2.7.1", + "munge", + "ptr_meta 0.3.0", + "rancor", "rend", "rkyv_derive", - "seahash", "tinyvec", "uuid", ] [[package]] name = "rkyv_derive" -version = "0.7.45" +version = "0.8.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "503d1d27590a2b0a3a4ca4c94755aa2875657196ecbf401a42eff41d7de532c0" +checksum = "beb382a4d9f53bd5c0be86b10d8179c3f8a14c30bf774ff77096ed6581e35981" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.87", ] [[package]] @@ -3321,6 +3871,12 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" +[[package]] +name = "rustc-hash" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7fb8039b3032c191086b10f11f319a6e99e1e82889c5cc6046f515c9db1d497" + [[package]] name = "rustc_version" version = "0.2.3" @@ -3366,6 +3922,21 @@ dependencies = [ "windows-sys 0.52.0", ] +[[package]] +name = "rustls" +version = "0.23.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "934b404430bb06b3fae2cba809eb45a1ab1aecd64491213d7c3301b88393f8d1" +dependencies = [ + "log", + "once_cell", + "ring", + "rustls-pki-types", + "rustls-webpki", + "subtle", + "zeroize", +] + [[package]] name = "rustls-pemfile" version = "1.0.4" @@ -3375,6 +3946,23 @@ dependencies = [ "base64 0.21.7", ] +[[package]] +name = "rustls-pki-types" +version = "1.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16f1201b3c9a7ee8039bcadc17b7e605e2945b27eee7631788c1bd2b0643674b" + +[[package]] +name = "rustls-webpki" +version = "0.102.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "64ca1bc8749bd4cf37b5ce386cc146580777b4e8572c7b97baf22c83f444bee9" +dependencies = [ + "ring", + "rustls-pki-types", + "untrusted", +] + [[package]] name = "rustversion" version = "1.0.17" @@ -3394,6 +3982,17 @@ dependencies = [ "num_cpus", ] +[[package]] +name = "ruzstd" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "58c4eb8a81997cf040a091d1f7e1938aeab6749d3a0dfa73af43cdc32393483d" +dependencies = [ + "byteorder", + "derive_more 0.99.18", + "twox-hash", +] + [[package]] name = "ryu" version = "1.0.18" @@ -3446,7 +4045,7 @@ dependencies = [ "proc-macro2", "quote", "serde_derive_internals", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] @@ -3461,12 +4060,6 @@ version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" -[[package]] -name = "seahash" -version = "4.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c107b6f4780854c8b126e228ea8869f4d7b71260f962fefb57b996b8959ba6b" - [[package]] name = "security-framework" version = "2.9.2" @@ -3522,9 +4115,9 @@ checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" [[package]] name = "serde" -version = "1.0.209" +version = "1.0.214" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "99fce0ffe7310761ca6bf9faf5115afbc19688edd00171d81b1bb1b116c63e09" +checksum = "f55c3193aca71c12ad7890f1785d2b73e1b9f63a0bbc353c08ef26fe03fc56b5" dependencies = [ "serde_derive", ] @@ -3542,13 +4135,13 @@ dependencies = [ [[package]] name = "serde_derive" -version = "1.0.209" +version = "1.0.214" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a5831b979fd7b5439637af1752d535ff49f4860c0f341d1baeb6faf0f4242170" +checksum = "de523f781f095e28fa605cdce0f8307e451cc0fd14e2eb4cd2e98a355b147766" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] @@ -3559,14 +4152,14 @@ checksum = "18d26a20a969b9e3fdf2fc2d9f21eda6c40e2de84c9408bb5d3b05d499aae711" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] name = "serde_json" -version = "1.0.127" +version = "1.0.132" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8043c06d9f82bd7271361ed64f415fe5e12a77fdb52e573e7f06a516dea329ad" +checksum = "d726bfaff4b320266d395898905d0eba0345aae23b54aee3a737e260fd46db03" dependencies = [ "itoa", "memchr", @@ -3596,16 +4189,18 @@ dependencies = [ ] [[package]] -name = "serde_yaml" -version = "0.9.34+deprecated" +name = "serde_yml" +version = "0.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a8b1a1a2ebf674015cc02edccce75287f1a0130d394307b36743c2f5d504b47" +checksum = "59e2dd588bf1597a252c3b920e0143eb99b0f76e4e082f4c92ce34fbc9e71ddd" dependencies = [ - "indexmap 2.5.0", + "indexmap 2.7.1", "itoa", + "libyml", + "memchr", "ryu", "serde", - "unsafe-libyaml", + "version_check", ] [[package]] @@ -3646,7 +4241,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f6c99835bad52957e7aa241d3975ed17c1e5f8c92026377d117a606f36b84b16" dependencies = [ "bytes", - "memmap2 0.6.2", + "memmap2", ] [[package]] @@ -3661,6 +4256,26 @@ version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" +[[package]] +name = "shrink-to-fit" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "040f84743f19cf4a481c2580f4d9d12beab78f401773314ff18835ef78c930ea" +dependencies = [ + "shrink-to-fit-macro", +] + +[[package]] +name = "shrink-to-fit-macro" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a5e9bca0d4a99ce6c7296fea5972a9327a5e70c062b73f38e11c7894cf7ec72c" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", +] + [[package]] name = "simd-abstraction" version = "0.7.1" @@ -3670,18 +4285,36 @@ dependencies = [ "outref", ] +[[package]] +name = "simd-adler32" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d66dc143e6b11c1eddc06d5c423cfc97062865baf299914ab64caa38182078fe" + [[package]] name = "simdutf8" version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f27f6278552951f1f2b8cf9da965d10969b2efdea95a6ec47987ab46edfe263a" +[[package]] +name = "similar" +version = "2.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1de1d4f81173b03af4c0cbed3c898f6bff5b870e4a7f5d6f4057d62a7a4b686e" + [[package]] name = "siphasher" version = "0.3.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "38b58827f4464d87d377d175e90bf58eb00fd8716ff0a62f80356b5e61555d0d" +[[package]] +name = "siphasher" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56199f7ddabf13fe5074ce809e7d3f42b42ae711800501b5b16ea82ad029c39d" + [[package]] name = "slab" version = "0.4.9" @@ -3720,6 +4353,15 @@ version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b7c388c1b5e93756d0c740965c41e8822f866621d41acbdf6336a6a168f8840c" +[[package]] +name = "smol_str" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd538fb6910ac1099850255cf94a94df6551fbdd602454387d0adb2d1ca6dead" +dependencies = [ + "serde", +] + [[package]] name = "smoltcp" version = "0.8.2" @@ -3731,16 +4373,6 @@ dependencies = [ "managed", ] -[[package]] -name = "socket2" -version = "0.4.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f7916fc008ca5542385b89a3d3ce689953c143e9304a9bf8beec1de48994c0d" -dependencies = [ - "libc", - "winapi", -] - [[package]] name = "socket2" version = "0.5.7" @@ -3762,7 +4394,7 @@ dependencies = [ "data-encoding", "debugid", "if_chain", - "rustc-hash", + "rustc-hash 1.1.0", "rustc_version 0.2.3", "serde", "serde_json", @@ -3805,7 +4437,7 @@ dependencies = [ "cfg-if", "libc", "psm", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -3816,7 +4448,7 @@ checksum = "9cf483ea7e0e3a03d1b91687895814425149ad77facd3e2b6839dde26da98454" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] @@ -3825,6 +4457,20 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" +[[package]] +name = "string_cache" +version = "0.8.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f91138e76242f575eb1d3b38b4f1362f10d3a43f47d182a5b359af488a02293b" +dependencies = [ + "new_debug_unreachable", + "once_cell", + "parking_lot", + "phf_shared 0.10.0", + "precomputed-hash", + "serde", +] + [[package]] name = "string_enum" version = "1.0.0" @@ -3833,7 +4479,7 @@ dependencies = [ "quote", "serde", "swc_macros_common", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] @@ -3848,9 +4494,15 @@ version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" +[[package]] +name = "subtle" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" + [[package]] name = "swc" -version = "5.0.2" +version = "13.0.1" dependencies = [ "ansi_term", "anyhow", @@ -3859,7 +4511,7 @@ dependencies = [ "criterion", "dashmap 5.5.3", "either", - "indexmap 2.5.0", + "indexmap 2.7.1", "jsonc-parser", "lru", "napi", @@ -3869,7 +4521,7 @@ dependencies = [ "pathdiff", "rayon", "regex", - "rustc-hash", + "rustc-hash 2.1.0", "serde", "serde_json", "sourcemap", @@ -3917,21 +4569,22 @@ dependencies = [ "cargo_metadata", "changesets", "clap 4.5.9", - "indexmap 2.5.0", + "indexmap 2.7.1", "petgraph", ] [[package]] name = "swc_allocator" -version = "1.0.0" +version = "3.0.0" dependencies = [ "bumpalo", "codspeed-criterion-compat", "criterion", "hashbrown 0.14.5", - "ptr_meta", + "ptr_meta 0.3.0", + "rancor", "rkyv", - "rustc-hash", + "rustc-hash 2.1.0", "serde", "swc_malloc", "triomphe", @@ -3939,26 +4592,28 @@ dependencies = [ [[package]] name = "swc_atoms" -version = "2.0.0" +version = "3.1.0" dependencies = [ "arbitrary", - "bytecheck", + "bytecheck 0.8.0", "hstr", "once_cell", + "rancor", "rkyv", - "rustc-hash", + "rustc-hash 2.1.0", "serde", + "shrink-to-fit", ] [[package]] name = "swc_bundler" -version = "5.0.0" +version = "9.0.0" dependencies = [ "anyhow", - "crc", + "crc 2.1.0", "dashmap 5.5.3", "hex", - "indexmap 2.5.0", + "indexmap 2.7.1", "is-macro", "ntest", "once_cell", @@ -3969,6 +4624,7 @@ dependencies = [ "rayon", "relative-path", "reqwest", + "rustc-hash 2.1.0", "sha1", "swc_atoms", "swc_common", @@ -3995,19 +4651,19 @@ dependencies = [ [[package]] name = "swc_cached" -version = "1.0.0" +version = "2.0.0" dependencies = [ - "ahash 0.8.11", "anyhow", "dashmap 5.5.3", "once_cell", "regex", + "rustc-hash 2.1.0", "serde", ] [[package]] name = "swc_cli_impl" -version = "5.0.0" +version = "13.0.0" dependencies = [ "anyhow", "assert_cmd", @@ -4030,14 +4686,13 @@ dependencies = [ [[package]] name = "swc_common" -version = "4.0.0" +version = "6.1.0" dependencies = [ - "ahash 0.8.11", "anyhow", "arbitrary", "ast_node", "better_scoped_tls", - "bytecheck", + "bytecheck 0.8.0", "cfg-if", "codspeed-criterion-compat", "criterion", @@ -4047,12 +4702,14 @@ dependencies = [ "num-bigint", "once_cell", "parking_lot", + "rancor", "rayon", "rkyv", - "rustc-hash", + "rustc-hash 2.1.0", "serde", "serde_json", - "siphasher", + "shrink-to-fit", + "siphasher 0.3.11", "sourcemap", "swc_allocator", "swc_atoms", @@ -4066,7 +4723,7 @@ dependencies = [ [[package]] name = "swc_compiler_base" -version = "5.0.0" +version = "11.0.0" dependencies = [ "anyhow", "base64 0.21.7", @@ -4074,7 +4731,7 @@ dependencies = [ "napi-derive", "once_cell", "pathdiff", - "rustc-hash", + "rustc-hash 2.1.0", "serde", "serde_json", "sourcemap", @@ -4092,10 +4749,10 @@ dependencies = [ [[package]] name = "swc_config" -version = "1.0.0" +version = "2.0.0" dependencies = [ "anyhow", - "indexmap 2.5.0", + "indexmap 2.7.1", "serde", "serde_json", "sourcemap", @@ -4110,12 +4767,12 @@ dependencies = [ "proc-macro2", "quote", "swc_macros_common", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] name = "swc_core" -version = "5.0.3" +version = "13.2.0" dependencies = [ "anyhow", "binding_macros", @@ -4170,7 +4827,7 @@ dependencies = [ [[package]] name = "swc_css" -version = "4.0.0" +version = "7.0.0" dependencies = [ "swc_css_ast", "swc_css_codegen", @@ -4185,9 +4842,11 @@ dependencies = [ [[package]] name = "swc_css_ast" -version = "4.0.1" +version = "6.0.0" dependencies = [ + "bytecheck 0.8.0", "is-macro", + "rancor", "rkyv", "serde", "string_enum", @@ -4197,11 +4856,11 @@ dependencies = [ [[package]] name = "swc_css_codegen" -version = "4.0.0" +version = "6.0.0" dependencies = [ "auto_impl", "bitflags 2.6.0", - "rustc-hash", + "rustc-hash 2.1.0", "serde", "swc_atoms", "swc_common", @@ -4220,12 +4879,12 @@ dependencies = [ "proc-macro2", "quote", "swc_macros_common", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] name = "swc_css_compat" -version = "4.0.0" +version = "6.0.0" dependencies = [ "bitflags 2.6.0", "once_cell", @@ -4243,11 +4902,12 @@ dependencies = [ [[package]] name = "swc_css_lints" -version = "4.0.0" +version = "6.0.0" dependencies = [ "auto_impl", "parking_lot", "rayon", + "rustc-hash 2.1.0", "serde", "serde_json", "swc_atoms", @@ -4262,10 +4922,11 @@ dependencies = [ [[package]] name = "swc_css_minifier" -version = "4.0.0" +version = "6.0.0" dependencies = [ "codspeed-criterion-compat", "criterion", + "rustc-hash 2.1.0", "serde", "swc_atoms", "swc_common", @@ -4280,10 +4941,10 @@ dependencies = [ [[package]] name = "swc_css_modules" -version = "4.0.0" +version = "6.0.0" dependencies = [ - "indexmap 2.5.0", - "rustc-hash", + "indexmap 2.7.1", + "rustc-hash 2.1.0", "serde", "serde_json", "swc_atoms", @@ -4298,7 +4959,7 @@ dependencies = [ [[package]] name = "swc_css_parser" -version = "4.0.0" +version = "6.0.0" dependencies = [ "codspeed-criterion-compat", "criterion", @@ -4315,10 +4976,11 @@ dependencies = [ [[package]] name = "swc_css_prefixer" -version = "4.0.0" +version = "7.0.0" dependencies = [ "once_cell", "preset_env_base", + "rustc-hash 2.1.0", "serde", "serde_json", "swc_atoms", @@ -4333,9 +4995,10 @@ dependencies = [ [[package]] name = "swc_css_utils" -version = "4.0.0" +version = "6.0.0" dependencies = [ "once_cell", + "rustc-hash 2.1.0", "serde", "serde_json", "swc_atoms", @@ -4346,7 +5009,7 @@ dependencies = [ [[package]] name = "swc_css_visit" -version = "4.0.0" +version = "6.0.0" dependencies = [ "serde", "swc_atoms", @@ -4357,18 +5020,20 @@ dependencies = [ [[package]] name = "swc_ecma_ast" -version = "4.0.1" +version = "6.1.0" dependencies = [ "arbitrary", "bitflags 2.6.0", - "bytecheck", + "bytecheck 0.8.0", "is-macro", "num-bigint", "phf", + "rancor", "rkyv", "scoped-tls", "serde", "serde_json", + "shrink-to-fit", "string_enum", "swc_atoms", "swc_common", @@ -4378,8 +5043,9 @@ dependencies = [ [[package]] name = "swc_ecma_codegen" -version = "4.0.2" +version = "6.0.2" dependencies = [ + "ascii", "base64 0.21.7", "codspeed-criterion-compat", "criterion", @@ -4387,6 +5053,7 @@ dependencies = [ "num-bigint", "once_cell", "regex", + "rustc-hash 2.1.0", "serde", "serde_json", "sourcemap", @@ -4409,13 +5076,14 @@ dependencies = [ "proc-macro2", "quote", "swc_macros_common", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] name = "swc_ecma_compat_bugfixes" -version = "5.0.0" +version = "9.0.0" dependencies = [ + "rustc-hash 2.1.0", "swc_atoms", "swc_common", "swc_ecma_ast", @@ -4431,7 +5099,7 @@ dependencies = [ [[package]] name = "swc_ecma_compat_common" -version = "5.0.0" +version = "9.0.0" dependencies = [ "swc_common", "swc_ecma_ast", @@ -4442,12 +5110,12 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2015" -version = "5.0.0" +version = "9.0.0" dependencies = [ "arrayvec", - "indexmap 2.5.0", + "indexmap 2.7.1", "is-macro", - "rustc-hash", + "rustc-hash 2.1.0", "serde", "serde_derive", "smallvec", @@ -4469,7 +5137,7 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2016" -version = "5.0.0" +version = "9.0.0" dependencies = [ "swc_atoms", "swc_common", @@ -4486,7 +5154,7 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2017" -version = "5.0.0" +version = "9.0.0" dependencies = [ "serde", "swc_atoms", @@ -4504,7 +5172,7 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2018" -version = "5.0.0" +version = "9.0.0" dependencies = [ "serde", "swc_atoms", @@ -4523,7 +5191,7 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2019" -version = "5.0.0" +version = "9.0.0" dependencies = [ "swc_atoms", "swc_common", @@ -4539,7 +5207,7 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2020" -version = "5.0.0" +version = "10.0.0" dependencies = [ "serde", "swc_atoms", @@ -4557,7 +5225,7 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2021" -version = "5.0.0" +version = "9.0.0" dependencies = [ "swc_atoms", "swc_common", @@ -4571,8 +5239,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2022" -version = "5.0.0" +version = "10.0.0" dependencies = [ + "rustc-hash 2.1.0", "swc_atoms", "swc_common", "swc_ecma_ast", @@ -4588,7 +5257,7 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es3" -version = "5.0.0" +version = "9.0.0" dependencies = [ "swc_common", "swc_ecma_ast", @@ -4603,7 +5272,7 @@ dependencies = [ [[package]] name = "swc_ecma_ext_transforms" -version = "5.0.0" +version = "9.0.0" dependencies = [ "phf", "swc_atoms", @@ -4615,13 +5284,17 @@ dependencies = [ [[package]] name = "swc_ecma_lints" -version = "5.0.0" +version = "9.0.0" dependencies = [ + "anyhow", "auto_impl", + "codspeed-criterion-compat", + "criterion", "dashmap 5.5.3", "parking_lot", - "rayon", + "pretty_assertions", "regex", + "rustc-hash 2.1.0", "serde", "swc_atoms", "swc_common", @@ -4629,15 +5302,19 @@ dependencies = [ "swc_ecma_ast", "swc_ecma_codegen", "swc_ecma_parser", + "swc_ecma_testing", "swc_ecma_transforms_base", "swc_ecma_utils", "swc_ecma_visit", + "swc_malloc", + "swc_parallel", "testing", + "walkdir", ] [[package]] name = "swc_ecma_loader" -version = "4.0.0" +version = "6.0.0" dependencies = [ "anyhow", "dashmap 5.5.3", @@ -4648,6 +5325,7 @@ dependencies = [ "parking_lot", "path-clean 0.1.0", "pathdiff", + "rustc-hash 2.1.0", "serde", "serde_json", "swc_atoms", @@ -4658,7 +5336,7 @@ dependencies = [ [[package]] name = "swc_ecma_minifier" -version = "5.0.0" +version = "10.2.0" dependencies = [ "ansi_term", "anyhow", @@ -4666,7 +5344,7 @@ dependencies = [ "backtrace", "codspeed-criterion-compat", "criterion", - "indexmap 2.5.0", + "indexmap 2.7.1", "num-bigint", "num_cpus", "once_cell", @@ -4676,7 +5354,7 @@ dependencies = [ "radix_fmt", "rayon", "regex", - "rustc-hash", + "rustc-hash 2.1.0", "ryu-js", "serde", "serde_json", @@ -4694,6 +5372,7 @@ dependencies = [ "swc_ecma_utils", "swc_ecma_visit", "swc_malloc", + "swc_parallel", "swc_timer", "testing", "tracing", @@ -4702,7 +5381,7 @@ dependencies = [ [[package]] name = "swc_ecma_parser" -version = "5.0.0" +version = "8.0.1" dependencies = [ "codspeed-criterion-compat", "criterion", @@ -4712,6 +5391,7 @@ dependencies = [ "num-traits", "phf", "pretty_assertions", + "rustc-hash 2.1.0", "serde", "serde_json", "smallvec", @@ -4730,17 +5410,17 @@ dependencies = [ [[package]] name = "swc_ecma_preset_env" -version = "5.0.0" +version = "11.0.0" dependencies = [ "anyhow", "codspeed-criterion-compat", "criterion", "dashmap 5.5.3", - "indexmap 2.5.0", + "indexmap 2.7.1", "once_cell", "preset_env_base", "pretty_assertions", - "rustc-hash", + "rustc-hash 2.1.0", "semver 1.0.23", "serde", "serde_json", @@ -4759,7 +5439,7 @@ dependencies = [ [[package]] name = "swc_ecma_quote" -version = "5.0.0" +version = "8.0.0" dependencies = [ "swc_atoms", "swc_common", @@ -4770,22 +5450,23 @@ dependencies = [ [[package]] name = "swc_ecma_quote_macros" -version = "5.0.0" +version = "8.0.0" dependencies = [ "anyhow", "proc-macro2", "quote", + "rustc-hash 2.1.0", "swc_atoms", "swc_common", "swc_ecma_ast", "swc_ecma_parser", "swc_macros_common", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] name = "swc_ecma_testing" -version = "4.0.0" +version = "6.0.0" dependencies = [ "anyhow", "hex", @@ -4796,7 +5477,7 @@ dependencies = [ [[package]] name = "swc_ecma_transforms" -version = "5.0.0" +version = "11.0.0" dependencies = [ "pretty_assertions", "sourcemap", @@ -4821,17 +5502,17 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_base" -version = "5.0.0" +version = "9.0.1" dependencies = [ "better_scoped_tls", "bitflags 2.6.0", "codspeed-criterion-compat", "criterion", - "indexmap 2.5.0", + "indexmap 2.7.1", "once_cell", "phf", "rayon", - "rustc-hash", + "rustc-hash 2.1.0", "serde", "smallvec", "swc_atoms", @@ -4843,13 +5524,14 @@ dependencies = [ "swc_ecma_utils", "swc_ecma_visit", "swc_malloc", + "swc_parallel", "testing", "tracing", ] [[package]] name = "swc_ecma_transforms_classes" -version = "5.0.0" +version = "9.0.0" dependencies = [ "swc_atoms", "swc_common", @@ -4861,10 +5543,10 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_compat" -version = "5.0.0" +version = "10.0.0" dependencies = [ "arrayvec", - "indexmap 2.5.0", + "indexmap 2.7.1", "is-macro", "num-bigint", "rayon", @@ -4905,21 +5587,22 @@ dependencies = [ "proc-macro2", "quote", "swc_macros_common", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] name = "swc_ecma_transforms_module" -version = "5.0.0" +version = "10.0.0" dependencies = [ "Inflector", "anyhow", "bitflags 2.6.0", - "indexmap 2.5.0", + "indexmap 2.7.1", "is-macro", "path-clean 1.0.1", "pathdiff", "regex", + "rustc-hash 2.1.0", "serde", "serde_json", "swc_atoms", @@ -4940,14 +5623,14 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_optimization" -version = "5.0.0" +version = "9.0.0" dependencies = [ "dashmap 5.5.3", - "indexmap 2.5.0", + "indexmap 2.7.1", "once_cell", "petgraph", "rayon", - "rustc-hash", + "rustc-hash 2.1.0", "serde_json", "swc_atoms", "swc_common", @@ -4970,10 +5653,10 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_proposal" -version = "5.0.0" +version = "9.0.0" dependencies = [ "either", - "rustc-hash", + "rustc-hash 2.1.0", "serde", "serde_json", "smallvec", @@ -4995,13 +5678,14 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_react" -version = "5.0.0" +version = "9.0.1" dependencies = [ "base64 0.21.7", "dashmap 5.5.3", - "indexmap 2.5.0", + "indexmap 2.7.1", "once_cell", "rayon", + "rustc-hash 2.1.0", "serde", "sha1", "string_enum", @@ -5023,7 +5707,7 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_testing" -version = "5.0.0" +version = "9.0.0" dependencies = [ "ansi_term", "anyhow", @@ -5033,6 +5717,7 @@ dependencies = [ "serde_json", "sha2", "sourcemap", + "swc_allocator", "swc_common", "swc_ecma_ast", "swc_ecma_codegen", @@ -5047,10 +5732,12 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_typescript" -version = "5.0.0" +version = "9.0.0" dependencies = [ "codspeed-criterion-compat", "criterion", + "once_cell", + "rustc-hash 2.1.0", "ryu-js", "serde", "swc_atoms", @@ -5070,10 +5757,10 @@ dependencies = [ [[package]] name = "swc_ecma_usage_analyzer" -version = "5.0.0" +version = "10.1.0" dependencies = [ - "indexmap 2.5.0", - "rustc-hash", + "indexmap 2.7.1", + "rustc-hash 2.1.0", "swc_atoms", "swc_common", "swc_ecma_ast", @@ -5085,13 +5772,13 @@ dependencies = [ [[package]] name = "swc_ecma_utils" -version = "5.0.0" +version = "9.0.0" dependencies = [ - "indexmap 2.5.0", + "indexmap 2.7.1", "num_cpus", "once_cell", "rayon", - "rustc-hash", + "rustc-hash 2.1.0", "ryu-js", "stacker", "swc_atoms", @@ -5099,6 +5786,7 @@ dependencies = [ "swc_ecma_ast", "swc_ecma_parser", "swc_ecma_visit", + "swc_parallel", "testing", "tracing", "unicode-id", @@ -5106,7 +5794,7 @@ dependencies = [ [[package]] name = "swc_ecma_visit" -version = "4.0.0" +version = "6.0.0" dependencies = [ "new_debug_unreachable", "num-bigint", @@ -5120,7 +5808,7 @@ dependencies = [ [[package]] name = "swc_ecmascript" -version = "5.0.0" +version = "12.0.0" dependencies = [ "swc_ecma_ast", "swc_ecma_codegen", @@ -5139,12 +5827,12 @@ version = "1.0.0" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] name = "swc_error_reporters" -version = "5.0.0" +version = "7.0.0" dependencies = [ "anyhow", "miette", @@ -5155,7 +5843,7 @@ dependencies = [ [[package]] name = "swc_estree_ast" -version = "4.0.0" +version = "6.0.0" dependencies = [ "better_scoped_tls", "serde", @@ -5166,14 +5854,14 @@ dependencies = [ [[package]] name = "swc_estree_compat" -version = "5.0.0" +version = "9.0.0" dependencies = [ - "ahash 0.8.11", "anyhow", "codspeed-criterion-compat", "copyless", "criterion", "pretty_assertions", + "rustc-hash 2.1.0", "serde", "serde_json", "swc", @@ -5192,17 +5880,17 @@ dependencies = [ [[package]] name = "swc_fast_graph" -version = "5.0.0" +version = "7.0.0" dependencies = [ - "indexmap 2.5.0", + "indexmap 2.7.1", "petgraph", - "rustc-hash", + "rustc-hash 2.1.0", "swc_common", ] [[package]] name = "swc_fast_ts_strip" -version = "5.0.0" +version = "9.0.0" dependencies = [ "anyhow", "codspeed-criterion-compat", @@ -5222,10 +5910,11 @@ dependencies = [ [[package]] name = "swc_graph_analyzer" -version = "4.0.0" +version = "6.0.0" dependencies = [ "auto_impl", "petgraph", + "rustc-hash 2.1.0", "swc_common", "swc_fast_graph", "testing", @@ -5234,7 +5923,7 @@ dependencies = [ [[package]] name = "swc_html" -version = "5.0.0" +version = "10.0.0" dependencies = [ "swc_html_ast", "swc_html_codegen", @@ -5245,8 +5934,9 @@ dependencies = [ [[package]] name = "swc_html_ast" -version = "4.0.1" +version = "6.0.0" dependencies = [ + "bytecheck 0.8.0", "is-macro", "rkyv", "serde", @@ -5257,11 +5947,11 @@ dependencies = [ [[package]] name = "swc_html_codegen" -version = "4.0.0" +version = "6.0.0" dependencies = [ "auto_impl", "bitflags 2.6.0", - "rustc-hash", + "rustc-hash 2.1.0", "swc_atoms", "swc_common", "swc_html_ast", @@ -5279,16 +5969,17 @@ dependencies = [ "proc-macro2", "quote", "swc_macros_common", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] name = "swc_html_minifier" -version = "5.0.0" +version = "10.0.0" dependencies = [ "codspeed-criterion-compat", "criterion", "once_cell", + "rustc-hash 2.1.0", "serde", "serde_json", "swc_atoms", @@ -5315,10 +6006,11 @@ dependencies = [ [[package]] name = "swc_html_parser" -version = "4.0.0" +version = "6.0.0" dependencies = [ "codspeed-criterion-compat", "criterion", + "rustc-hash 2.1.0", "serde", "serde_json", "swc_atoms", @@ -5332,9 +6024,10 @@ dependencies = [ [[package]] name = "swc_html_utils" -version = "4.0.0" +version = "6.0.0" dependencies = [ "once_cell", + "rustc-hash 2.1.0", "serde", "serde_json", "swc_atoms", @@ -5343,7 +6036,7 @@ dependencies = [ [[package]] name = "swc_html_visit" -version = "4.0.0" +version = "6.0.0" dependencies = [ "serde", "swc_atoms", @@ -5353,12 +6046,34 @@ dependencies = [ ] [[package]] -name = "swc_macros_common" -version = "1.0.0" +name = "swc_interop_babel" +version = "0.1.0" dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.77", + "napi", + "napi-derive", + "serde", + "serde_json", + "swc_interop_nodejs", +] + +[[package]] +name = "swc_interop_nodejs" +version = "0.1.0" +dependencies = [ + "napi", + "serde", + "serde_json", + "tokio", + "tracing", +] + +[[package]] +name = "swc_macros_common" +version = "1.0.0" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", ] [[package]] @@ -5371,7 +6086,7 @@ dependencies = [ [[package]] name = "swc_node_bundler" -version = "5.0.0" +version = "13.0.0" dependencies = [ "anyhow", "dashmap 5.5.3", @@ -5379,6 +6094,7 @@ dependencies = [ "once_cell", "pretty_assertions", "regex", + "rustc-hash 2.1.0", "serde", "serde_json", "string_enum", @@ -5400,9 +6116,10 @@ dependencies = [ [[package]] name = "swc_node_comments" -version = "4.0.0" +version = "6.0.0" dependencies = [ "dashmap 5.5.3", + "rustc-hash 2.1.0", "swc_atoms", "swc_common", ] @@ -5419,6 +6136,17 @@ dependencies = [ "tracing-subscriber", ] +[[package]] +name = "swc_parallel" +version = "1.2.0" +dependencies = [ + "chili", + "hstr", + "indexmap 2.7.1", + "once_cell", + "scoped-tls", +] + [[package]] name = "swc_plugin" version = "1.0.0" @@ -5432,15 +6160,18 @@ version = "1.0.0" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] name = "swc_plugin_proxy" -version = "4.0.0" +version = "6.0.0" dependencies = [ "better_scoped_tls", + "bytecheck 0.8.0", + "rancor", "rkyv", + "rustc-hash 2.1.0", "swc_common", "swc_ecma_ast", "swc_trace_macro", @@ -5449,7 +6180,7 @@ dependencies = [ [[package]] name = "swc_plugin_runner" -version = "4.0.0" +version = "6.0.0" dependencies = [ "anyhow", "codspeed-criterion-compat", @@ -5458,6 +6189,7 @@ dependencies = [ "futures", "once_cell", "parking_lot", + "rustc-hash 2.1.0", "serde", "serde_json", "swc_atoms", @@ -5474,7 +6206,7 @@ dependencies = [ "tokio", "tracing", "vergen", - "virtual-fs", + "virtual-fs 0.19.0", "wasmer", "wasmer-cache", "wasmer-compiler-cranelift", @@ -5499,29 +6231,34 @@ version = "2.0.0" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] name = "swc_transform_common" -version = "1.0.0" +version = "1.0.1" dependencies = [ "better_scoped_tls", "once_cell", - "rustc-hash", + "rustc-hash 2.1.0", "serde", "serde_json", ] [[package]] name = "swc_typescript" -version = "4.0.0" +version = "8.0.0" dependencies = [ + "petgraph", + "rustc-hash 2.1.0", "swc_atoms", "swc_common", "swc_ecma_ast", "swc_ecma_codegen", "swc_ecma_parser", + "swc_ecma_transforms_base", + "swc_ecma_utils", + "swc_ecma_visit", "testing", "thiserror", ] @@ -5540,7 +6277,7 @@ version = "0.1.0" [[package]] name = "swc_xml" -version = "4.0.0" +version = "6.0.0" dependencies = [ "swc_xml_ast", "swc_xml_codegen", @@ -5550,7 +6287,7 @@ dependencies = [ [[package]] name = "swc_xml_ast" -version = "4.0.1" +version = "6.0.0" dependencies = [ "is-macro", "serde", @@ -5561,11 +6298,11 @@ dependencies = [ [[package]] name = "swc_xml_codegen" -version = "4.0.0" +version = "6.0.0" dependencies = [ "auto_impl", "bitflags 2.6.0", - "rustc-hash", + "rustc-hash 2.1.0", "swc_atoms", "swc_common", "swc_xml_ast", @@ -5582,13 +6319,14 @@ dependencies = [ "proc-macro2", "quote", "swc_macros_common", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] name = "swc_xml_parser" -version = "4.0.0" +version = "6.0.0" dependencies = [ + "rustc-hash 2.1.0", "serde", "serde_json", "swc_atoms", @@ -5600,7 +6338,7 @@ dependencies = [ [[package]] name = "swc_xml_visit" -version = "4.0.0" +version = "6.0.0" dependencies = [ "serde", "swc_atoms", @@ -5622,9 +6360,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.77" +version = "2.0.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f35bcdf61fd8e7be6caf75f429fdca8beb3ed76584befb503b1569faee373ed" +checksum = "25aa4ce346d03a6dcd68dd8b4010bcb74e54e62c90c573f394c46eae99aba32d" dependencies = [ "proc-macro2", "quote", @@ -5637,6 +6375,17 @@ version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2047c6ded9c721764247e62cd3b03c09ffc529b2ba5b10ec482ae507a4a70160" +[[package]] +name = "synstructure" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8af7666ab7b6390ab78131fb5b0fce11d6b7a6951602017c35fa82800708971" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", +] + [[package]] name = "system-configuration" version = "0.5.1" @@ -5666,9 +6415,9 @@ checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" [[package]] name = "tar" -version = "0.4.41" +version = "0.4.43" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb797dad5fb5b76fcf519e702f4a589483b5ef06567f160c392832c1f5e44909" +checksum = "c65998313f8e17d0d553d28f91a0df93e4dbbbf770279c7bc21ca0f09ea1a1f6" dependencies = [ "filetime", "libc", @@ -5740,7 +6489,7 @@ checksum = "3369f5ac52d5eb6ab48c6b4ffdc8efbcad6b89c765749064ba298f2c68a16a76" [[package]] name = "testing" -version = "4.0.0" +version = "6.0.0" dependencies = [ "ansi_term", "cargo_metadata", @@ -5748,6 +6497,7 @@ dependencies = [ "once_cell", "pretty_assertions", "regex", + "rustc-hash 2.1.0", "serde", "serde_json", "swc_common", @@ -5768,7 +6518,7 @@ dependencies = [ "quote", "regex", "relative-path", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] @@ -5785,22 +6535,22 @@ dependencies = [ [[package]] name = "thiserror" -version = "1.0.63" +version = "1.0.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c0342370b38b6a11b6cc11d6a805569958d54cfa061a29969c3b5ce2ea405724" +checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.63" +version = "1.0.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4558b58466b9ad7ca0f102865eccc95938dca1a74a856f2b57b6629050da261" +checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] @@ -5867,12 +6617,13 @@ dependencies = [ ] [[package]] -name = "tiny-keccak" -version = "2.0.2" +name = "tinystr" +version = "0.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c9d3793400a45f954c52e73d068316d76b6f4e36977e3fcebb13a2721e80237" +checksum = "9117f5d4db391c1cf6927e7bea3db74b9a1c1add8f7eda9ffd5364f40f57b82f" dependencies = [ - "crunchy", + "displaydoc", + "zerovec", ] [[package]] @@ -5909,9 +6660,9 @@ dependencies = [ "backtrace", "bytes", "libc", - "mio 1.0.2", + "mio", "pin-project-lite", - "socket2 0.5.7", + "socket2", "tokio-macros", "windows-sys 0.52.0", ] @@ -5924,7 +6675,7 @@ checksum = "693d596312e88961bc67d7f1f97af8a70227d9f90c31bba5806eec004978d752" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] @@ -5990,7 +6741,7 @@ version = "0.19.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421" dependencies = [ - "indexmap 2.5.0", + "indexmap 2.7.1", "toml_datetime", "winnow 0.5.34", ] @@ -6001,7 +6752,7 @@ version = "0.22.20" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "583c44c02ad26b0c3f3066fe629275e50627026c51ac2e595cca4c230ce1ce1d" dependencies = [ - "indexmap 2.5.0", + "indexmap 2.7.1", "serde", "serde_spanned", "toml_datetime", @@ -6016,9 +6767,9 @@ checksum = "b6bc1c9ce2b5135ac7f93c72918fc37feb872bdc6a5533a8b85eb4b86bfdae52" [[package]] name = "tracing" -version = "0.1.40" +version = "0.1.41" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef" +checksum = "784e0ac535deb450455cbfa28a6f0df145ea1bb7ae51b821cf5e7927fdcfbdd0" dependencies = [ "log", "pin-project-lite", @@ -6028,13 +6779,13 @@ dependencies = [ [[package]] name = "tracing-attributes" -version = "0.1.27" +version = "0.1.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" +checksum = "395ae124c09f9e6918a2310af6038fba074bcf474ac352496d5910dd59a2226d" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.87", ] [[package]] @@ -6050,9 +6801,9 @@ dependencies = [ [[package]] name = "tracing-core" -version = "0.1.32" +version = "0.1.33" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c06d3da6113f116aaee68e4d601191614c9053067f9ab7f6edbcb161237daa54" +checksum = "e672c95779cf947c5311f83787af4fa8fffd12fb27e4993211a84bdfd9610f9c" dependencies = [ "once_cell", "valuable", @@ -6081,9 +6832,9 @@ dependencies = [ [[package]] name = "tracing-subscriber" -version = "0.3.18" +version = "0.3.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad0f048c97dbd9faa9b7df56362b8ebcaa52adb06b498c050d2f4e32f90a7a8b" +checksum = "e8189decb5ac0fa7bc8b96b7cb9b2701d60d48805aca84a238004d665fcc4008" dependencies = [ "matchers", "nu-ansi-term", @@ -6144,12 +6895,6 @@ dependencies = [ "version_check", ] -[[package]] -name = "unicode-bidi" -version = "0.3.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08f95100a766bf4f8f28f90d77e0a5461bbdb219042e7679bebe79004fed8d75" - [[package]] name = "unicode-id" version = "0.3.5" @@ -6202,16 +6947,32 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f962df74c8c05a667b5ee8bcf162993134c104e96440b663c8daa176dc772d8c" [[package]] -name = "unsafe-libyaml" -version = "0.2.11" +name = "untrusted" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" + +[[package]] +name = "ureq" +version = "2.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "673aac59facbab8a9007c7f6108d11f63b603f7cabff99fabf650fea5c32b861" +checksum = "b74fc6b57825be3373f7054754755f03ac3a8f5d70015ccad699ba2029956f4a" +dependencies = [ + "base64 0.22.1", + "flate2", + "log", + "once_cell", + "rustls", + "rustls-pki-types", + "url", + "webpki-roots", +] [[package]] name = "url" -version = "2.5.2" +version = "2.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22784dbdf76fdde8af1aeda5622b546b422b6fc585325248a2bf9f5e41e94d6c" +checksum = "32f8b686cadd1473f4bd0117a5d28d36b1ade384ea9b5069a1c40aefed7fda60" dependencies = [ "form_urlencoded", "idna", @@ -6225,6 +6986,18 @@ version = "2.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "daf8dba3b7eb870caf1ddeed7bc9d2a049f3cfdfae7cb521b087cc33ae4c49da" +[[package]] +name = "utf16_iter" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8232dd3cdaed5356e0f716d285e4b40b932ac434100fe9b7e0e8e935b9e6246" + +[[package]] +name = "utf8_iter" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" + [[package]] name = "utf8parse" version = "0.2.1" @@ -6285,16 +7058,41 @@ checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" [[package]] name = "virtual-fs" -version = "0.16.0" +version = "0.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e60ef133d8336b201a1618252518d81f9e9d30fbe27449dab706699a549216bc" +checksum = "14d2456ec960b74e5b0423159c70dd9796da1445de462013fe03eefd2545b631" dependencies = [ - "anyhow", "async-trait", "bytes", "dashmap 6.1.0", "derivative", "dunce", + "futures", + "getrandom", + "indexmap 1.9.3", + "lazy_static", + "pin-project-lite", + "replace_with", + "shared-buffer", + "slab", + "thiserror", + "tokio", + "tracing", + "wasmer-package 0.2.0", +] + +[[package]] +name = "virtual-fs" +version = "0.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "875dbf2945deb48f93d09ed16896f57c4fa96b9a4344590a3a93f55147a8b8d1" +dependencies = [ + "anyhow", + "async-trait", + "bytes", + "dashmap 6.1.0", + "derive_more 1.0.0", + "dunce", "filetime", "fs_extra", "futures", @@ -6309,40 +7107,42 @@ dependencies = [ "thiserror", "tokio", "tracing", + "wasmer-package 0.4.0", "webc", ] [[package]] name = "virtual-mio" -version = "0.3.1" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff8026c9d7575dc9afd8a0907357acb7aa55ec262097fbccae5da42f67773b3c" +checksum = "1a5d846d89208ef272394e6b6706fcea6fe9ce81388b685bdae44dfd590bba16" dependencies = [ "async-trait", "bytes", - "derivative", "futures", - "mio 0.8.11", + "mio", "serde", - "socket2 0.4.10", + "socket2", "thiserror", "tracing", ] [[package]] name = "virtual-net" -version = "0.8.0" +version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05d9551aa47efdb28093f79845d40858baf5075e4b4a09c7d9c8a0edd42f942b" +checksum = "33d71eb6f3cb7c0c48f9b989cbdcc21bb4face7c96cb8cce8f9234009e742c66" dependencies = [ "anyhow", "async-trait", - "base64 0.21.7", + "base64 0.22.1", "bincode", - "bytecheck", + "bytecheck 0.6.12", "bytes", - "derivative", + "derive_more 1.0.0", "futures-util", + "ipnet", + "iprange", "pin-project-lite", "rkyv", "serde", @@ -6461,9 +7261,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.95" +version = "0.2.99" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "128d1e363af62632b8eb57219c8fd7877144af57558fb2ef0368d0087bddeb2e" +checksum = "a474f6281d1d70c17ae7aa6a613c87fce69a127e2624002df63dcb39d6cf6396" dependencies = [ "cfg-if", "once_cell", @@ -6472,36 +7272,36 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.95" +version = "0.2.99" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb6dd4d3ca0ddffd1dd1c9c04f94b868c37ff5fac97c30b97cff2d74fce3a358" +checksum = "5f89bb38646b4f81674e8f5c3fb81b562be1fd936d84320f3264486418519c79" dependencies = [ "bumpalo", "log", - "once_cell", "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.87", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-futures" -version = "0.4.45" +version = "0.4.49" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc7ec4f8827a71586374db3e87abdb5a2bb3a15afed140221307c3ec06b1f63b" +checksum = "38176d9b44ea84e9184eff0bc34cc167ed044f816accfe5922e54d84cf48eca2" dependencies = [ "cfg-if", "js-sys", + "once_cell", "wasm-bindgen", "web-sys", ] [[package]] name = "wasm-bindgen-macro" -version = "0.2.95" +version = "0.2.99" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e79384be7f8f5a9dd5d7167216f022090cf1f9ec128e6e6a482a2cb5c5422c56" +checksum = "2cc6181fd9a7492eef6fef1f33961e3695e4579b9872a6f7c83aee556666d4fe" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -6509,41 +7309,42 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.95" +version = "0.2.99" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26c6ab57572f7a24a4985830b120de1594465e5d500f24afe89e16b4e833ef68" +checksum = "30d7a95b763d3c45903ed6c81f156801839e5ee968bb07e534c44df0fcd330c2" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.87", "wasm-bindgen-backend", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-shared" -version = "0.2.95" +version = "0.2.99" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "65fc09f10666a9f147042251e0dda9c18f166ff7de300607007e96bdebc1068d" +checksum = "943aab3fdaaa029a6e0271b35ea10b72b943135afe9bffca82384098ad0e06a6" [[package]] name = "wasm-encoder" -version = "0.32.0" +version = "0.216.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ba64e81215916eaeb48fee292f29401d69235d62d8b8fd92a7b2844ec5ae5f7" +checksum = "04c23aebea22c8a75833ae08ed31ccc020835b12a41999e58c31464271b94a88" dependencies = [ "leb128", ] [[package]] name = "wasmer" -version = "4.3.7" +version = "5.0.5-rc1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b28d4251f96ece14460328c56ee0525edcf4bbb08748cfd87fef3580ae4d403" +checksum = "14e31f8a2e0568af0f661825a70f1762098d1c5b0552c4d7205a3e57badf3ae6" dependencies = [ + "bindgen", "bytes", "cfg-if", - "derivative", + "cmake", "indexmap 1.9.3", "js-sys", "more-asserts", @@ -6551,9 +7352,11 @@ dependencies = [ "serde", "serde-wasm-bindgen", "shared-buffer", + "tar", "target-lexicon", "thiserror", "tracing", + "ureq", "wasm-bindgen", "wasmer-compiler", "wasmer-compiler-cranelift", @@ -6563,13 +7366,15 @@ dependencies = [ "wasmparser", "wat", "windows-sys 0.59.0", + "xz", + "zip", ] [[package]] name = "wasmer-cache" -version = "4.3.7" +version = "5.0.5-rc1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3b1f3ef1d5a81b101513a125b3aede723a6f0991cb1c85d1fcc252aa4ced011" +checksum = "9dcb6700805ede59def89eea7c1dab505fc316807ddf5feab06447b610ebe7e2" dependencies = [ "blake3", "hex", @@ -6579,9 +7384,9 @@ dependencies = [ [[package]] name = "wasmer-compiler" -version = "4.3.7" +version = "5.0.5-rc1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "009b8417d51dbca8ac9a640ea999cc924fc59040a81245ecd0e092cb7c45dc10" +checksum = "7a032262211c8323c9ddb8226e2ecfa410e1e1ba8149c905510111b981ffb5aa" dependencies = [ "backtrace", "bytes", @@ -6591,13 +7396,15 @@ dependencies = [ "lazy_static", "leb128", "libc", - "memmap2 0.5.10", + "memmap2", "more-asserts", + "object 0.32.2", "region", "rkyv", "self_cell", "shared-buffer", "smallvec", + "target-lexicon", "thiserror", "wasmer-types", "wasmer-vm", @@ -6608,14 +7415,15 @@ dependencies = [ [[package]] name = "wasmer-compiler-cranelift" -version = "4.3.7" +version = "5.0.5-rc1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2445c6fb03824979448293e91d8a6daf0cdf66e8d996f31ef270e0d2cc3ea1f3" +checksum = "7c919ade1140a342a778eeeb811231ce65c1735e309c0876154f8a4735da6452" dependencies = [ "cranelift-codegen", "cranelift-entity", "cranelift-frontend", - "gimli 0.26.2", + "gimli 0.28.1", + "itertools 0.12.1", "more-asserts", "rayon", "smallvec", @@ -6627,21 +7435,43 @@ dependencies = [ [[package]] name = "wasmer-config" -version = "0.8.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "644b7e3547bd7e796d92220f60bf57734914254c6cee56607e80177a3e8a28da" +checksum = "666d97272c1042e20957be5f7e4a42f28ae5367c32a79ae953339335a55512e3" dependencies = [ "anyhow", "bytesize", "ciborium", "derive_builder 0.12.0", "hex", - "indexmap 2.5.0", + "indexmap 2.7.1", "schemars", "semver 1.0.23", "serde", "serde_json", - "serde_yaml", + "serde_yml", + "thiserror", + "toml", + "url", +] + +[[package]] +name = "wasmer-config" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07fef53fbab864492d9dced0084c2f08631583cf63c68d7b30c88bf36318c074" +dependencies = [ + "anyhow", + "bytesize", + "ciborium", + "derive_builder 0.12.0", + "hex", + "indexmap 2.7.1", + "schemars", + "semver 1.0.23", + "serde", + "serde_json", + "serde_yml", "thiserror", "toml", "url", @@ -6649,11 +7479,11 @@ dependencies = [ [[package]] name = "wasmer-derive" -version = "4.3.7" +version = "5.0.5-rc1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02592d86ac19fb09c972e72edeb3e57ac5c569eac7e77b919b165da014e8c139" +checksum = "fd49fd1afd7c5dd0aa36d91f7e75f5b55331725a1038ca359c6c420d33844313" dependencies = [ - "proc-macro-error", + "proc-macro-error2", "proc-macro2", "quote", "syn 1.0.109", @@ -6661,17 +7491,17 @@ dependencies = [ [[package]] name = "wasmer-journal" -version = "0.9.0" +version = "0.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3045807a8a70da47eb06cb55aad673d5774f87f26ee11b7758d63c54b67bc5f4" +checksum = "73163004796997a188704dbaf7a5d23c83acdc73c341cf817e28fce5e2eaa048" dependencies = [ "anyhow", "async-trait", - "base64 0.21.7", + "base64 0.22.1", "bincode", - "bytecheck", + "bytecheck 0.6.12", "bytes", - "derivative", + "derive_more 1.0.0", "lz4_flex", "num_enum", "rkyv", @@ -6679,24 +7509,76 @@ dependencies = [ "serde_json", "thiserror", "tracing", - "virtual-fs", + "virtual-fs 0.21.0", "virtual-net", "wasmer", "wasmer-wasix-types", ] +[[package]] +name = "wasmer-package" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "98d05a5cd47f324ed784481d79351e12a02ad3289148dfa72432aa5d394634b8" +dependencies = [ + "anyhow", + "bytes", + "cfg-if", + "ciborium", + "flate2", + "insta", + "semver 1.0.23", + "serde", + "serde_json", + "sha2", + "shared-buffer", + "tar", + "tempfile", + "thiserror", + "toml", + "url", + "wasmer-config 0.10.0", + "webc", +] + +[[package]] +name = "wasmer-package" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c16843df09cce487d0aa8dc8f19c77281cb7d1b929e6a9fd4c3047ddbece0da" +dependencies = [ + "anyhow", + "bytes", + "cfg-if", + "ciborium", + "flate2", + "insta", + "semver 1.0.23", + "serde", + "serde_json", + "sha2", + "shared-buffer", + "tar", + "tempfile", + "thiserror", + "toml", + "url", + "wasmer-config 0.12.0", + "webc", +] + [[package]] name = "wasmer-types" -version = "4.3.7" +version = "5.0.5-rc1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d22a00f1a90e9e66d5427853f41e76d8ab89e03eb3034debd11933607fef56a" +checksum = "2d1acd6dc9529b216159b66b082c574e5dbaf1c188e75b007f947d6d06c64a82" dependencies = [ - "bytecheck", + "bytecheck 0.6.12", "enum-iterator", "enumset", "getrandom", "hex", - "indexmap 1.9.3", + "indexmap 2.7.1", "more-asserts", "rkyv", "serde", @@ -6708,9 +7590,9 @@ dependencies = [ [[package]] name = "wasmer-vm" -version = "4.3.7" +version = "5.0.5-rc1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87d88e8355157cd730fb81e33c3b4d6849fd44c26d32bf78820638e1d935967b" +checksum = "dabeac4f84113353e7e1711dd095d4b47020fd705905c4b084b07f4be1413eb7" dependencies = [ "backtrace", "cc", @@ -6718,10 +7600,9 @@ dependencies = [ "corosensei", "crossbeam-queue", "dashmap 6.1.0", - "derivative", "enum-iterator", "fnv", - "indexmap 1.9.3", + "indexmap 2.7.1", "lazy_static", "libc", "mach2", @@ -6736,23 +7617,22 @@ dependencies = [ [[package]] name = "wasmer-wasix" -version = "0.27.0" +version = "0.35.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dbfe427dbe359e037e1e33ff13b3a5473706e5679df2dbb0e71b5b46c9bb6ce3" +checksum = "1191dad138aff02e330b75918a4ec34332b2974f9012e0959463400a8a84102d" dependencies = [ - "ahash 0.8.11", "anyhow", "async-trait", - "base64 0.21.7", + "base64 0.22.1", "bincode", "blake3", - "bytecheck", + "bytecheck 0.6.12", "bytes", "cfg-if", "chrono", "cooked-waker", "dashmap 6.1.0", - "derivative", + "derive_more 1.0.0", "futures", "getrandom", "heapless", @@ -6775,7 +7655,7 @@ dependencies = [ "serde", "serde_derive", "serde_json", - "serde_yaml", + "serde_yml", "sha2", "shared-buffer", "tempfile", @@ -6788,15 +7668,16 @@ dependencies = [ "tracing", "url", "urlencoding", - "virtual-fs", + "virtual-fs 0.21.0", "virtual-mio", "virtual-net", "waker-fn", "wasm-bindgen", "wasm-bindgen-futures", "wasmer", - "wasmer-config", + "wasmer-config 0.12.0", "wasmer-journal", + "wasmer-package 0.4.0", "wasmer-types", "wasmer-wasix-types", "web-sys", @@ -6808,9 +7689,9 @@ dependencies = [ [[package]] name = "wasmer-wasix-types" -version = "0.27.0" +version = "0.35.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b9304c02de27468ea4154a31f8758343717d03a29d2a620bc652e8217baab75" +checksum = "b109a2a04343e4d421fd764f7a02980273d1e537be3a8e16d59c39e025cfcc5f" dependencies = [ "anyhow", "bitflags 1.3.2", @@ -6832,21 +7713,24 @@ dependencies = [ [[package]] name = "wasmparser" -version = "0.121.2" +version = "0.216.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9dbe55c8f9d0dbd25d9447a5a889ff90c0cc3feaa7395310d3d826b2c703eaab" +checksum = "bcdee6bea3619d311fb4b299721e89a986c3470f804b6d534340e412589028e3" dependencies = [ + "ahash", "bitflags 2.6.0", - "indexmap 2.5.0", + "hashbrown 0.14.5", + "indexmap 2.7.1", "semver 1.0.23", ] [[package]] name = "wast" -version = "64.0.0" +version = "216.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a259b226fd6910225aa7baeba82f9d9933b6d00f2ce1b49b80fa4214328237cc" +checksum = "f7eb1f2eecd913fdde0dc6c3439d0f24530a98ac6db6cb3d14d92a5328554a08" dependencies = [ + "bumpalo", "leb128", "memchr", "unicode-width", @@ -6855,18 +7739,18 @@ dependencies = [ [[package]] name = "wat" -version = "1.0.71" +version = "1.216.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53253d920ab413fca1c7dc2161d601c79b4fdf631d0ba51dd4343bf9b556c3f6" +checksum = "ac0409090fb5154f95fb5ba3235675fd9e579e731524d63b6a2f653e1280c82a" dependencies = [ "wast", ] [[package]] name = "web-sys" -version = "0.3.68" +version = "0.3.76" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "96565907687f7aceb35bc5fc03770a8a0471d82e479f25832f54a0e3f4b28446" +checksum = "04dd7223427d52553d3702c004d3b2fe07c148165faa56313cb00211e31c12bc" dependencies = [ "js-sys", "wasm-bindgen", @@ -6874,9 +7758,9 @@ dependencies = [ [[package]] name = "webc" -version = "6.0.0" +version = "7.0.0-rc.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6cf1915e27168c1ed82f7f0d03f60317648f257fecaf4256a1904428d8e4ccd" +checksum = "e6893cbe58d5b97a0daa2dd77055d621db1c8b94fe0f2bbd719c8de747226ea6" dependencies = [ "anyhow", "base64 0.22.1", @@ -6884,7 +7768,6 @@ dependencies = [ "cfg-if", "ciborium", "document-features", - "flate2", "ignore", "indexmap 1.9.3", "leb128", @@ -6893,17 +7776,21 @@ dependencies = [ "once_cell", "path-clean 1.0.1", "rand", - "semver 1.0.23", "serde", "serde_json", "sha2", "shared-buffer", - "tar", - "tempfile", "thiserror", - "toml", "url", - "wasmer-config", +] + +[[package]] +name = "webpki-roots" +version = "0.26.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "841c67bff177718f1d4dfefde8d8f0e78f9b6589319ba88312f567fc5841a958" +dependencies = [ + "rustls-pki-types", ] [[package]] @@ -6952,19 +7839,6 @@ dependencies = [ "windows-targets 0.52.6", ] -[[package]] -name = "windows-sys" -version = "0.33.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "43dbb096663629518eb1dfa72d80243ca5a6aca764cae62a2df70af760a9be75" -dependencies = [ - "windows_aarch64_msvc 0.33.0", - "windows_i686_gnu 0.33.0", - "windows_i686_msvc 0.33.0", - "windows_x86_64_gnu 0.33.0", - "windows_x86_64_msvc 0.33.0", -] - [[package]] name = "windows-sys" version = "0.48.0" @@ -7035,12 +7909,6 @@ version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" -[[package]] -name = "windows_aarch64_msvc" -version = "0.33.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd761fd3eb9ab8cc1ed81e56e567f02dd82c4c837e48ac3b2181b9ffc5060807" - [[package]] name = "windows_aarch64_msvc" version = "0.48.5" @@ -7053,12 +7921,6 @@ version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" -[[package]] -name = "windows_i686_gnu" -version = "0.33.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cab0cf703a96bab2dc0c02c0fa748491294bf9b7feb27e1f4f96340f208ada0e" - [[package]] name = "windows_i686_gnu" version = "0.48.5" @@ -7077,12 +7939,6 @@ version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" -[[package]] -name = "windows_i686_msvc" -version = "0.33.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8cfdbe89cc9ad7ce618ba34abc34bbb6c36d99e96cae2245b7943cd75ee773d0" - [[package]] name = "windows_i686_msvc" version = "0.48.5" @@ -7095,12 +7951,6 @@ version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" -[[package]] -name = "windows_x86_64_gnu" -version = "0.33.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4dd9b0c0e9ece7bb22e84d70d01b71c6d6248b81a3c60d11869451b4cb24784" - [[package]] name = "windows_x86_64_gnu" version = "0.48.5" @@ -7125,12 +7975,6 @@ version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" -[[package]] -name = "windows_x86_64_msvc" -version = "0.33.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff1e4aa646495048ec7f3ffddc411e1d829c026a2ec62b39da15c1055e406eaa" - [[package]] name = "windows_x86_64_msvc" version = "0.48.5" @@ -7171,6 +8015,18 @@ dependencies = [ "windows-sys 0.48.0", ] +[[package]] +name = "write16" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1890f4022759daae28ed4fe62859b1236caebfc61ede2f63ed4e695f3f6d936" + +[[package]] +name = "writeable" +version = "0.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e9df38ee2d2c3c5948ea468a8406ff0db0b29ae1ffde1bcf20ef305bcc95c51" + [[package]] name = "wyz" version = "0.5.1" @@ -7213,12 +8069,54 @@ version = "0.8.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6a5cbf750400958819fb6178eaa83bee5cd9c29a26a40cc241df8c70fdd46984" +[[package]] +name = "xz" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c887690ff2a2e233e8e49633461521f98ec57fbff9d59a884c9a4f04ec1da34" +dependencies = [ + "xz2", +] + +[[package]] +name = "xz2" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "388c44dc09d76f1536602ead6d325eb532f5c122f17782bd57fb47baeeb767e2" +dependencies = [ + "lzma-sys", +] + [[package]] name = "yansi" version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "09041cd90cf85f7f8b2df60c646f853b7f535ce68f85244eb6731cf89fa498ec" +[[package]] +name = "yoke" +version = "0.7.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "120e6aef9aa629e3d4f52dc8cc43a015c7724194c97dfaf45180d2daf2b77f40" +dependencies = [ + "serde", + "stable_deref_trait", + "yoke-derive", + "zerofrom", +] + +[[package]] +name = "yoke-derive" +version = "0.7.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2380878cad4ac9aac1e2435f3eb4020e8374b5f13c296cb75b4620ff8e229154" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", + "synstructure", +] + [[package]] name = "zerocopy" version = "0.7.35" @@ -7237,11 +8135,139 @@ checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.77", + "syn 2.0.87", +] + +[[package]] +name = "zerofrom" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cff3ee08c995dee1859d998dea82f7374f2826091dd9cd47def953cae446cd2e" +dependencies = [ + "zerofrom-derive", +] + +[[package]] +name = "zerofrom-derive" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "595eed982f7d355beb85837f651fa22e90b3c044842dc7f2c2842c086f295808" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", + "synstructure", ] [[package]] name = "zeroize" -version = "1.7.0" +version = "1.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "525b4ec142c6b68a2d10f01f7bbf6755599ca3f81ea53b8431b7dd348f5fdb2d" +checksum = "ced3678a2879b30306d323f4542626697a464a97c0a07c9aebf7ebca65cd4dde" +dependencies = [ + "zeroize_derive", +] + +[[package]] +name = "zeroize_derive" +version = "1.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", +] + +[[package]] +name = "zerovec" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa2b893d79df23bfb12d5461018d408ea19dfafe76c2c7ef6d4eba614f8ff079" +dependencies = [ + "yoke", + "zerofrom", + "zerovec-derive", +] + +[[package]] +name = "zerovec-derive" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6eafa6dfb17584ea3e2bd6e76e0cc15ad7af12b09abdd1ca55961bed9b1063c6" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.87", +] + +[[package]] +name = "zip" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc5e4288ea4057ae23afc69a4472434a87a2495cafce6632fd1c4ec9f5cf3494" +dependencies = [ + "aes", + "arbitrary", + "bzip2", + "constant_time_eq", + "crc32fast", + "crossbeam-utils", + "deflate64", + "displaydoc", + "flate2", + "hmac", + "indexmap 2.7.1", + "lzma-rs", + "memchr", + "pbkdf2", + "rand", + "sha1", + "thiserror", + "time", + "zeroize", + "zopfli", + "zstd", +] + +[[package]] +name = "zopfli" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5019f391bac5cf252e93bbcc53d039ffd62c7bfb7c150414d61369afe57e946" +dependencies = [ + "bumpalo", + "crc32fast", + "lockfree-object-pool", + "log", + "once_cell", + "simd-adler32", +] + +[[package]] +name = "zstd" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fcf2b778a664581e31e389454a7072dab1647606d44f7feea22cd5abb9c9f3f9" +dependencies = [ + "zstd-safe", +] + +[[package]] +name = "zstd-safe" +version = "7.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "54a3ab4db68cea366acc5c897c7b4d4d1b8994a9cd6e6f841f8964566a419059" +dependencies = [ + "zstd-sys", +] + +[[package]] +name = "zstd-sys" +version = "2.0.13+zstd.1.5.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38ff0f21cfee8f97d94cef41359e0c89aa6113028ab0291aa8ca0038995a95aa" +dependencies = [ + "cc", + "pkg-config", +] diff --git a/deps/swc/Cargo.toml b/deps/swc/Cargo.toml index 55e61801e..5ddb3710a 100644 --- a/deps/swc/Cargo.toml +++ b/deps/swc/Cargo.toml @@ -1,67 +1,42 @@ [workspace] -members = [ - "xtask", - "crates/swc_allocator", - "crates/swc_core", - "crates/swc_cli_impl", - "crates/dbg-swc", - "crates/jsdoc", - "crates/binding_macros", - "crates/swc_css", - "crates/swc_css_lints", - "crates/swc_css_prefixer", - "crates/swc_ecmascript", - "crates/swc_ecma_lints", - "crates/swc_ecma_quote", - "crates/swc_estree_compat", - "crates/swc_html", - "crates/swc_plugin", - "crates/swc_plugin_macro", - "crates/swc_plugin_runner", - "crates/swc_plugin_testing", - "crates/swc_plugin_proxy", - "crates/swc_timer", - "crates/swc_xml", - "crates/swc_x_optimizer", - "crates/swc_transform_common", - "crates/swc_typescript", - "crates/swc_fast_ts_strip", - "tools/generate-code", - "tools/swc-releaser", -] +members = ["xtask", "crates/*", "tools/generate-code", "tools/swc-releaser"] resolver = "2" [workspace.package] + edition = "2021" license = "Apache-2.0" repository = "https://github.com/swc-project/swc.git" [workspace.dependencies] # bytecheck version should be in sync with rkyv version. Do not bump individually. - bytecheck = "0.6.10" - rkyv = "=0.7.45" + bytecheck = "0.8.0" + rancor = "0.1.0" + rkyv = "0.8.8" Inflector = "0.11.4" - ahash = "0.8.8" allocator-api2 = "0.2.18" ansi_term = "0.12.1" anyhow = "1.0.81" arbitrary = "1" arrayvec = "0.7.4" + ascii = "1.1.0" assert_cmd = "2.0.12" assert_fs = "1.0.13" auto_impl = "1.2.0" backtrace = "0.3.61" base64 = "0.21.0" bitflags = "2.5.0" - browserslist-rs = "0.16.0" + browserslist-rs = "0.17.0" bumpalo = "3.16.0" cargo_metadata = "0.18.1" cfg-if = "1.0.0" changesets = "0.2.2" + chili = "=0.2.0" chrono = "0.4.38" codspeed-criterion-compat = "2.6.0" + compact_str = "0.7.1" console_error_panic_hook = "0.1.7" copyless = "0.1.5" crc = "2.1.0" @@ -77,11 +52,11 @@ resolver = "2" glob = "0.3.0" hashbrown = "0.14.5" hex = "0.4.3" - hstr = "0.2.12" indexmap = "2.0.0" is-macro = "0.3.5" js-sys = "0.3.59" jsonc-parser = "0.21.0" + kstring = "2.0.0" lazy_static = "1.4.0" lexical = "6.1.0" lru = "0.10.0" @@ -103,14 +78,15 @@ resolver = "2" phf = "0.11.2" pretty_assertions = "1.3" proc-macro2 = "1.0.24" - ptr_meta = "0.1.4" + ptr_meta = "0.3.0" quote = "1.0.7" radix_fmt = "1.0.0" + rand = "0.8.5" rayon = "1.7.0" regex = "1.5.4" relative-path = "1.6.1" reqwest = "0.11.14" - rustc-hash = "1.1.0" + rustc-hash = "2" ryu-js = "1.0.0" scoped-tls = "1.0.1" semver = "1.0.20" @@ -120,11 +96,14 @@ resolver = "2" serde_json = "1.0.115" sha1 = "0.10.6" sha2 = "0.10.8" + shrink-to-fit = "0.2.1" siphasher = "0.3.9" smallvec = "1.8.0" - smartstring = "1" + smartstring = "1.0.1" + smol_str = "0.2.0" sourcemap = "9.0.0" st-map = "0.2.0" + string_cache = "0.8.7" syn = "2" tempfile = "3.6.0" termcolor = "1.0" @@ -140,14 +119,14 @@ resolver = "2" unicode-id = "0.3" unicode-id-start = "1.2.0" unicode-width = "0.1.4" - url = "2.4.0" + url = "2.5.4" vergen = { version = "9.0.0", default-features = false } - virtual-fs = { version = "0.16.0", default-features = false } + virtual-fs = { version = "0.19.0", default-features = false } walkdir = "2.4.0" wasm-bindgen = "0.2.91" wasm-bindgen-futures = "0.4.41" - wasmer = { version = "4.3.7", default-features = false } - wasmer-wasix = { version = "0.27.0", default-features = false } + wasmer = { version = "=5.0.5-rc1", default-features = false } + wasmer-wasix = { version = "0.35.0", default-features = false } [profile.release] lto = true diff --git a/deps/swc/bindings/Cargo.lock b/deps/swc/bindings/Cargo.lock index 04a0c8519..56ed13e38 100644 --- a/deps/swc/bindings/Cargo.lock +++ b/deps/swc/bindings/Cargo.lock @@ -21,18 +21,23 @@ dependencies = [ "gimli 0.31.0", ] -[[package]] -name = "adler" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" - [[package]] name = "adler2" version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "512761e0bb2578dd7380c6baaa0f4ce03e84f95e960231d1dec8bf4d7d6e2627" +[[package]] +name = "aes" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b169f7a6d4742236a0a00c541b845991d0ac43e546831af1249753ab4c3aa3a0" +dependencies = [ + "cfg-if", + "cipher", + "cpufeatures", +] + [[package]] name = "ahash" version = "0.7.8" @@ -96,9 +101,18 @@ checksum = "70033777eb8b5124a81a1889416543dddef2de240019b674c81285a2635a7e1e" [[package]] name = "anyhow" -version = "1.0.86" +version = "1.0.93" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c95c10ba0b00a02636238b814946408b1322d5ac4760326e6fb8ec956d85775" + +[[package]] +name = "arbitrary" +version = "1.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3d1d046238990b9cf5bcde22a3fb3584ee5cf65fb2765f454ed428c7a0063da" +checksum = "dde20b3d026af13f561bdd0f15edf01fc734f0dafcedbaf42bba506a9517f223" +dependencies = [ + "derive_arbitrary", +] [[package]] name = "arrayref" @@ -112,16 +126,22 @@ version = "0.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50" +[[package]] +name = "ascii" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d92bec98840b8f03a5ff5413de5293bfcd8bf96467cf5452609f939ec6f5de16" + [[package]] name = "ast_node" -version = "2.0.0" +version = "3.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94741d66bdda032fcbf33e621b4e3a888d7d11bd3ac4446d82c5593a136936ff" +checksum = "91fb5864e2f5bf9fd9797b94b2dfd1554d4c3092b535008b27d7e15c86675a2f" dependencies = [ "proc-macro2", "quote", "swc_macros_common", - "syn 2.0.75", + "syn 2.0.90", ] [[package]] @@ -132,7 +152,7 @@ checksum = "6e0c28dcc82d7c8ead5cb13beb15405b57b8546e93215673ff8ca0349a028107" dependencies = [ "proc-macro2", "quote", - "syn 2.0.75", + "syn 2.0.90", ] [[package]] @@ -163,7 +183,7 @@ checksum = "3c87f3f15e7794432337fc718554eaa4dc8f04c9677a950ffe366f20a162ae42" dependencies = [ "proc-macro2", "quote", - "syn 2.0.75", + "syn 2.0.90", ] [[package]] @@ -181,8 +201,8 @@ dependencies = [ "addr2line", "cfg-if", "libc", - "miniz_oxide 0.8.0", - "object", + "miniz_oxide", + "object 0.36.1", "rustc-demangle", "windows-targets 0.52.6", ] @@ -226,6 +246,26 @@ dependencies = [ "serde", ] +[[package]] +name = "bindgen" +version = "0.70.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f49d8fed880d473ea71efb9bf597651e77201bdd4893efe54c9e5d65ae04ce6f" +dependencies = [ + "bitflags 2.6.0", + "cexpr", + "clang-sys", + "itertools 0.13.0", + "log", + "prettyplease", + "proc-macro2", + "quote", + "regex", + "rustc-hash 1.1.0", + "shlex", + "syn 2.0.90", +] + [[package]] name = "binding_core_node" version = "0.1.0" @@ -237,6 +277,7 @@ dependencies = [ "napi-derive", "node_macro_deps", "path-clean 1.0.1", + "rustc-hash 2.1.0", "serde", "serde_json", "swc_core", @@ -249,7 +290,7 @@ dependencies = [ [[package]] name = "binding_core_wasm" -version = "1.9.2" +version = "1.10.15" dependencies = [ "anyhow", "getrandom", @@ -287,11 +328,34 @@ dependencies = [ "tracing-subscriber", ] +[[package]] +name = "binding_js_interop_node" +version = "0.1.0" +dependencies = [ + "anyhow", + "backtrace", + "napi", + "napi-build", + "napi-derive", + "node_macro_deps", + "path-clean 1.0.1", + "serde", + "serde_json", + "swc_core", + "swc_interop_babel", + "swc_interop_nodejs", + "swc_malloc", + "tracing", + "tracing-chrome 0.7.2", + "tracing-futures", + "tracing-subscriber", +] + [[package]] name = "binding_macros" -version = "5.0.0" +version = "13.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d29a63405c9afe9297a10549caa8c489d882dd8b31eebc9e8de8500aed52cee3" +checksum = "60e3f8b2d9940c3ab80844dbe8e227dee8ce9e3adce0f8f19d166f37413709cb" dependencies = [ "anyhow", "console_error_panic_hook", @@ -319,6 +383,7 @@ dependencies = [ "napi-derive", "node_macro_deps", "path-clean 1.0.1", + "rustc-hash 2.1.0", "serde", "serde_json", "sourcemap 8.0.1", @@ -336,7 +401,7 @@ dependencies = [ [[package]] name = "binding_minifier_wasm" -version = "1.9.2" +version = "1.10.15" dependencies = [ "anyhow", "getrandom", @@ -349,10 +414,11 @@ dependencies = [ [[package]] name = "binding_typescript_wasm" -version = "1.9.2" +version = "1.10.15" dependencies = [ "anyhow", "getrandom", + "js-sys", "serde", "serde-wasm-bindgen 0.6.5", "serde_json", @@ -412,20 +478,19 @@ dependencies = [ [[package]] name = "browserslist-rs" -version = "0.16.0" +version = "0.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fdf0ca73de70c3da94e4194e4a01fe732378f55d47cf4c0588caab22a0dbfa14" +checksum = "74c973b79d9b6b89854493185ab760c6ef8e54bcfad10ad4e33991e46b374ac8" dependencies = [ "ahash 0.8.11", "chrono", "either", - "indexmap 2.4.0", + "indexmap 2.7.1", "itertools 0.13.0", "nom", - "once_cell", "serde", "serde_json", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -453,8 +518,20 @@ version = "0.6.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "23cdc57ce23ac53c931e88a43d06d070a6fd142f2617be5855eb75efc9beb1c2" dependencies = [ - "bytecheck_derive", - "ptr_meta", + "bytecheck_derive 0.6.12", + "ptr_meta 0.1.4", + "simdutf8", +] + +[[package]] +name = "bytecheck" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50c8f430744b23b54ad15161fcbc22d82a29b73eacbe425fea23ec822600bc6f" +dependencies = [ + "bytecheck_derive 0.8.0", + "ptr_meta 0.3.0", + "rancor", "simdutf8", ] @@ -469,6 +546,17 @@ dependencies = [ "syn 1.0.109", ] +[[package]] +name = "bytecheck_derive" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "523363cbe1df49b68215efdf500b103ac3b0fb4836aed6d15689a076eadb8fff" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.90", +] + [[package]] name = "byteorder" version = "1.5.0" @@ -477,9 +565,9 @@ checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" [[package]] name = "bytes" -version = "1.7.1" +version = "1.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8318a53db07bb3f8dca91a600466bdb3f2eaadeedfdbcf02e1accbad9271ba50" +checksum = "325918d6fe32f23b19878fe4b34794ae41fc19ddbe53b10571a4874d44ffd39b" dependencies = [ "serde", ] @@ -493,6 +581,27 @@ dependencies = [ "serde", ] +[[package]] +name = "bzip2" +version = "0.4.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bdb116a6ef3f6c3698828873ad02c3014b3c85cadb88496095628e3ef1e347f8" +dependencies = [ + "bzip2-sys", + "libc", +] + +[[package]] +name = "bzip2-sys" +version = "0.1.11+1.0.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "736a955f3fa7875102d57c82b8cac37ec45224a07fd32d58f9f7a186b6cd4cdc" +dependencies = [ + "cc", + "libc", + "pkg-config", +] + [[package]] name = "camino" version = "1.1.7" @@ -522,7 +631,7 @@ dependencies = [ "semver 1.0.23", "serde", "serde_json", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -530,6 +639,19 @@ name = "cc" version = "1.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e9e8aabfac534be767c909e0690571677d49f41bd8465ae876fe043d52ba5292" +dependencies = [ + "jobserver", + "libc", +] + +[[package]] +name = "cexpr" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6fac387a98bb7c37292057cffc56d62ecb629900026402633ae9160df93a8766" +dependencies = [ + "nom", +] [[package]] name = "cfg-if" @@ -537,6 +659,12 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" +[[package]] +name = "chili" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e72f874459a658df39dd1d99f7f62a9c421792efc26eaae8d497ae5d2e816a62" + [[package]] name = "chrono" version = "0.4.38" @@ -576,6 +704,27 @@ dependencies = [ "half", ] +[[package]] +name = "cipher" +version = "0.4.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad" +dependencies = [ + "crypto-common", + "inout", +] + +[[package]] +name = "clang-sys" +version = "1.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b023947811758c97c59bf9d1c188fd619ad4718dcaa767947df1cadb14f39f4" +dependencies = [ + "glob", + "libc", + "libloading", +] + [[package]] name = "clap" version = "3.2.25" @@ -616,6 +765,27 @@ dependencies = [ "os_str_bytes", ] +[[package]] +name = "cmake" +version = "0.1.52" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c682c223677e0e5b6b7f63a64b9351844c3f1b1678a68b7ee617e30fb082620e" +dependencies = [ + "cc", +] + +[[package]] +name = "console" +version = "0.15.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e1f83fc076bd6dd27517eacdf25fef6c4dfe5f1d7448bafaaf3a26f13b5e4eb" +dependencies = [ + "encode_unicode", + "lazy_static", + "libc", + "windows-sys 0.52.0", +] + [[package]] name = "console_error_panic_hook" version = "0.1.7" @@ -648,9 +818,9 @@ dependencies = [ [[package]] name = "constant_time_eq" -version = "0.3.0" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7144d30dcf0fafbce74250a3963025d8d52177934239851c917d29f1df280c2" +checksum = "7c74b8349d32d297c9134b8c88677813a227df8f779daa29bfc29c183fe3dca6" [[package]] name = "convert_case" @@ -675,15 +845,15 @@ checksum = "06ea2b9bc92be3c2baa9334a323ebca2d6f074ff852cd1d7b11064035cd3868f" [[package]] name = "corosensei" -version = "0.1.4" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "80128832c58ea9cbd041d2a759ec449224487b2c1e400453d99d244eead87a8e" +checksum = "ad067b451c08956709f8762dba86e049c124ea52858e3ab8d076ba2892caa437" dependencies = [ "autocfg", "cfg-if", "libc", "scopeguard", - "windows-sys 0.33.0", + "windows-sys 0.59.0", ] [[package]] @@ -697,74 +867,80 @@ dependencies = [ [[package]] name = "cranelift-bforest" -version = "0.91.1" +version = "0.110.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2a2ab4512dfd3a6f4be184403a195f76e81a8a9f9e6c898e19d2dc3ce20e0115" +checksum = "305d51c180ebdc46ef61bc60c54ae6512db3bc9a05842a1f1e762e45977019ab" dependencies = [ "cranelift-entity", ] +[[package]] +name = "cranelift-bitset" +version = "0.110.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "690d8ae6c73748e5ce3d8fe59034dceadb8823e6c8994ba324141c5eae909b0e" + [[package]] name = "cranelift-codegen" -version = "0.91.1" +version = "0.110.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "98b022ed2a5913a38839dfbafe6cf135342661293b08049843362df4301261dc" +checksum = "bd7ca95e831c18d1356da783765c344207cbdffea91e13e47fa9327dbb2e0719" dependencies = [ - "arrayvec", "bumpalo", "cranelift-bforest", + "cranelift-bitset", "cranelift-codegen-meta", "cranelift-codegen-shared", - "cranelift-egraph", + "cranelift-control", "cranelift-entity", "cranelift-isle", - "gimli 0.26.2", + "gimli 0.28.1", + "hashbrown 0.14.5", "log", "regalloc2", + "rustc-hash 1.1.0", "smallvec", "target-lexicon", ] [[package]] name = "cranelift-codegen-meta" -version = "0.91.1" +version = "0.110.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "639307b45434ad112a98f8300c0f0ab085cbefcd767efcdef9ef19d4c0756e74" +checksum = "f0a2d2ab65e6cbf91f81781d8da65ec2005510f18300eff21a99526ed6785863" dependencies = [ "cranelift-codegen-shared", ] [[package]] name = "cranelift-codegen-shared" -version = "0.91.1" +version = "0.110.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "278e52e29c53fcf32431ef08406c295699a70306d05a0715c5b1bf50e33a9ab7" +checksum = "efcff860573cf3db9ae98fbd949240d78b319df686cc306872e7fab60e9c84d7" [[package]] -name = "cranelift-egraph" -version = "0.91.1" +name = "cranelift-control" +version = "0.110.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "624b54323b06e675293939311943ba82d323bb340468ce1889be5da7932c8d73" +checksum = "69d70e5b75c2d5541ef80a99966ccd97aaa54d2a6af19ea31759a28538e1685a" dependencies = [ - "cranelift-entity", - "fxhash", - "hashbrown 0.12.3", - "indexmap 1.9.3", - "log", - "smallvec", + "arbitrary", ] [[package]] name = "cranelift-entity" -version = "0.91.1" +version = "0.110.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a59bcbca89c3f1b70b93ab3cbba5e5e0cbf3e63dadb23c7525cb142e21a9d4c" +checksum = "a48cb0a194c9ba82fec35a1e492055388d89b2e3c03dee9dcf2488892be8004d" +dependencies = [ + "cranelift-bitset", +] [[package]] name = "cranelift-frontend" -version = "0.91.1" +version = "0.110.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d70abacb8cfef3dc8ff7e8836e9c1d70f7967dfdac824a4cd5e30223415aca6" +checksum = "8327afc6c1c05f4be62fefce5b439fa83521c65363a322e86ea32c85e7ceaf64" dependencies = [ "cranelift-codegen", "log", @@ -774,9 +950,9 @@ dependencies = [ [[package]] name = "cranelift-isle" -version = "0.91.1" +version = "0.110.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "393bc73c451830ff8dbb3a07f61843d6cb41a084f9996319917c0b291ed785bb" +checksum = "56b08621c00321efcfa3eee6a3179adc009e21ea8d24ca7adc3c326184bc3f48" [[package]] name = "crc" @@ -784,7 +960,16 @@ version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "49fc9a695bca7f35f5f4c15cddc84415f66a74ea78eef08e90c5024f2b540e23" dependencies = [ - "crc-catalog", + "crc-catalog 1.1.1", +] + +[[package]] +name = "crc" +version = "3.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69e6e4d7b33a94f0991c26729976b10ebde1d34c3ee82408fb536164fa10d636" +dependencies = [ + "crc-catalog 2.4.0", ] [[package]] @@ -793,6 +978,12 @@ version = "1.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ccaeedb56da03b09f598226e25e80088cb4cd25f316e6e4df7d695f0feeb1403" +[[package]] +name = "crc-catalog" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19d374276b40fb8bbdee95aef7c7fa6b5316ec764510eb64b8dd0e2ed0d7e7f5" + [[package]] name = "crc32fast" version = "1.4.2" @@ -896,7 +1087,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "13b588ba4ac1a99f7f2964d24b3d896ddc6bf847ee3855dbd4366f058cfcd331" dependencies = [ "quote", - "syn 2.0.75", + "syn 2.0.90", ] [[package]] @@ -906,7 +1097,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "edb49164822f3ee45b17acd4a208cfc1251410cf0cad9a833234c9890774dd9f" dependencies = [ "quote", - "syn 2.0.75", + "syn 2.0.90", ] [[package]] @@ -954,7 +1145,7 @@ dependencies = [ "proc-macro2", "quote", "strsim 0.11.1", - "syn 2.0.75", + "syn 2.0.90", ] [[package]] @@ -976,7 +1167,7 @@ checksum = "d336a2a514f6ccccaa3e09b02d41d35330c07ddf03a62165fcec10bb561c7806" dependencies = [ "darling_core 0.20.10", "quote", - "syn 2.0.75", + "syn 2.0.90", ] [[package]] @@ -1031,6 +1222,12 @@ dependencies = [ "uuid", ] +[[package]] +name = "deflate64" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da692b8d1080ea3045efaab14434d40468c3d8657e42abddfffca87b428f4c1b" + [[package]] name = "deranged" version = "0.3.11" @@ -1051,6 +1248,17 @@ dependencies = [ "syn 1.0.109", ] +[[package]] +name = "derive_arbitrary" +version = "1.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "30542c1ad912e0e3d22a1935c290e12e8a29d704a420177a31faad4a601a0800" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.90", +] + [[package]] name = "derive_builder" version = "0.12.0" @@ -1090,7 +1298,7 @@ dependencies = [ "darling 0.20.10", "proc-macro2", "quote", - "syn 2.0.75", + "syn 2.0.90", ] [[package]] @@ -1110,7 +1318,39 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "206868b8242f27cecce124c19fd88157fbd0dd334df2587f36417bafbc85097b" dependencies = [ "derive_builder_core 0.20.0", - "syn 2.0.75", + "syn 2.0.90", +] + +[[package]] +name = "derive_more" +version = "0.99.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f33878137e4dafd7fa914ad4e259e18a4e8e532b9617a2d0150262bf53abfce" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.90", +] + +[[package]] +name = "derive_more" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4a9b99b9cbbe49445b21764dc0625032a89b145a2642e67603e1c936f5458d05" +dependencies = [ + "derive_more-impl", +] + +[[package]] +name = "derive_more-impl" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb7330aeadfbe296029522e6c40f315320aba36fc43a5b3632f3795348f3bd22" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.90", + "unicode-xid", ] [[package]] @@ -1121,6 +1361,18 @@ checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" dependencies = [ "block-buffer", "crypto-common", + "subtle", +] + +[[package]] +name = "displaydoc" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.90", ] [[package]] @@ -1165,6 +1417,12 @@ version = "1.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0" +[[package]] +name = "encode_unicode" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a357d28ed41a50f9c765dbfe56cbc04a64e53e5fc58ba79fbc34c10ef3df831f" + [[package]] name = "enum-iterator" version = "0.7.0" @@ -1203,7 +1461,7 @@ dependencies = [ "darling 0.20.10", "proc-macro2", "quote", - "syn 2.0.75", + "syn 2.0.90", ] [[package]] @@ -1224,15 +1482,15 @@ dependencies = [ [[package]] name = "fallible-iterator" -version = "0.2.0" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4443176a9f2c162692bd3d352d745ef9413eec5782a80d8fd6f8a1ac692a07f7" +checksum = "2acce4a10f12dc2fb14a218589d4f1f62ef011b2d0cc4b3cb1bba8e94da14649" [[package]] name = "fastrand" -version = "2.1.0" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9fc0510504f03c51ada170672ac806f1f105a88aa97a5281117e1ddc3368e51a" +checksum = "486f806e73c5707928240ddc295403b1b93c96a02038563881c4a2fd84b81ac4" [[package]] name = "filetime" @@ -1254,12 +1512,12 @@ checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80" [[package]] name = "flate2" -version = "1.0.30" +version = "1.0.35" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f54427cfd1c7829e2a139fcefea601bf088ebca651d2bf53ebc600eac295dae" +checksum = "c936bfdafb507ebbf50b8074c54fa31c5be9a1e7e5f467dd659697041407d07c" dependencies = [ "crc32fast", - "miniz_oxide 0.7.4", + "miniz_oxide", ] [[package]] @@ -1285,7 +1543,7 @@ checksum = "8d7ccf961415e7aa17ef93dcb6c2441faaa8e768abe09e659b908089546f74c5" dependencies = [ "proc-macro2", "swc_macros_common", - "syn 2.0.75", + "syn 2.0.90", ] [[package]] @@ -1317,9 +1575,9 @@ dependencies = [ [[package]] name = "futures-channel" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eac8f7d7865dcb88bd4373ab671c8cf4508703796caa2b1985a9ca867b3fcb78" +checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10" dependencies = [ "futures-core", "futures-sink", @@ -1327,9 +1585,9 @@ dependencies = [ [[package]] name = "futures-core" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dfc6580bb841c5a68e9ef15c77ccc837b40a7504914d52e47b8b0e9bbda25a1d" +checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e" [[package]] name = "futures-executor" @@ -1344,38 +1602,38 @@ dependencies = [ [[package]] name = "futures-io" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a44623e20b9681a318efdd71c299b6b222ed6f231972bfe2f224ebad6311f0c1" +checksum = "9e5c1b78ca4aae1ac06c48a526a655760685149f0d465d21f37abfe57ce075c6" [[package]] name = "futures-macro" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87750cf4b7a4c0625b1529e4c543c2182106e4dedc60a2a6455e00d212c489ac" +checksum = "162ee34ebcb7c64a8abebc059ce0fee27c2262618d7b60ed8faf72fef13c3650" dependencies = [ "proc-macro2", "quote", - "syn 2.0.75", + "syn 2.0.90", ] [[package]] name = "futures-sink" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9fb8e00e87438d937621c1c6269e53f536c14d3fbd6a042bb24879e57d474fb5" +checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7" [[package]] name = "futures-task" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38d84fa142264698cdce1a9f9172cf383a0c82de1bddcf3092901442c4097004" +checksum = "f90f7dce0722e95104fcb095585910c0977252f286e354b5e3bd38902cd99988" [[package]] name = "futures-util" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d6401deb83407ab3da39eba7e33987a73c3df0c82b4bb5813ee871c19c41d48" +checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81" dependencies = [ "futures-channel", "futures-core", @@ -1435,12 +1693,12 @@ dependencies = [ [[package]] name = "gimli" -version = "0.26.2" +version = "0.28.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22030e2c5a68ec659fde1e949a745124b48e6fa8b045b7ed5bd1fe4ccc5c4e5d" +checksum = "4271d37baee1b8c7e4b708028c57d816cf9d2434acb33a549475f78c181f6253" dependencies = [ "fallible-iterator", - "indexmap 1.9.3", + "indexmap 2.7.1", "stable_deref_trait", ] @@ -1516,6 +1774,12 @@ dependencies = [ "allocator-api2", ] +[[package]] +name = "hashbrown" +version = "0.15.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf151400ff0baff5465007dd2f3e717f3fe502074ca563069ce3a6629d07b289" + [[package]] name = "heapless" version = "0.7.17" @@ -1565,17 +1829,26 @@ version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" +[[package]] +name = "hmac" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e" +dependencies = [ + "digest", +] + [[package]] name = "hstr" -version = "0.2.12" +version = "0.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dae404c0c5d4e95d4858876ab02eecd6a196bb8caa42050dfa809938833fc412" +checksum = "a1a26def229ea95a8709dad32868d975d0dd40235bd2ce82920e4a8fe692b5e0" dependencies = [ "hashbrown 0.14.5", "new_debug_unreachable", "once_cell", "phf 0.11.2", - "rustc-hash", + "rustc-hash 1.1.0", "triomphe", ] @@ -1614,45 +1887,174 @@ dependencies = [ ] [[package]] -name = "id-arena" -version = "2.2.1" +name = "icu_collections" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25a2bc672d1148e28034f176e01fffebb08b35768468cc954630da77a1449005" +checksum = "db2fa452206ebee18c4b5c2274dbf1de17008e874b4dc4f0aea9d01ca79e4526" +dependencies = [ + "displaydoc", + "yoke", + "zerofrom", + "zerovec", +] [[package]] -name = "ident_case" -version = "1.0.1" +name = "icu_locid" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" +checksum = "13acbb8371917fc971be86fc8057c41a64b521c184808a698c02acc242dbf637" +dependencies = [ + "displaydoc", + "litemap", + "tinystr", + "writeable", + "zerovec", +] [[package]] -name = "idna" -version = "0.5.0" +name = "icu_locid_transform" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "634d9b1461af396cad843f47fdba5597a4f9e6ddd4bfb6ff5d85028c25cb12f6" +checksum = "01d11ac35de8e40fdeda00d9e1e9d92525f3f9d887cdd7aa81d727596788b54e" dependencies = [ - "unicode-bidi", - "unicode-normalization", + "displaydoc", + "icu_locid", + "icu_locid_transform_data", + "icu_provider", + "tinystr", + "zerovec", ] [[package]] -name = "if_chain" -version = "1.0.2" +name = "icu_locid_transform_data" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb56e1aa765b4b4f3aadfab769793b7087bb03a4ea4920644a6d238e2df5b9ed" +checksum = "fdc8ff3388f852bede6b579ad4e978ab004f139284d7b28715f773507b946f6e" [[package]] -name = "ignore" -version = "0.4.22" +name = "icu_normalizer" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b46810df39e66e925525d6e38ce1e7f6e1d208f72dc39757880fcb66e2c58af1" +checksum = "19ce3e0da2ec68599d193c93d088142efd7f9c5d6fc9b803774855747dc6a84f" dependencies = [ - "crossbeam-deque", - "globset", - "log", - "memchr", - "regex-automata 0.4.7", - "same-file", + "displaydoc", + "icu_collections", + "icu_normalizer_data", + "icu_properties", + "icu_provider", + "smallvec", + "utf16_iter", + "utf8_iter", + "write16", + "zerovec", +] + +[[package]] +name = "icu_normalizer_data" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8cafbf7aa791e9b22bec55a167906f9e1215fd475cd22adfcf660e03e989516" + +[[package]] +name = "icu_properties" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93d6020766cfc6302c15dbbc9c8778c37e62c14427cb7f6e601d849e092aeef5" +dependencies = [ + "displaydoc", + "icu_collections", + "icu_locid_transform", + "icu_properties_data", + "icu_provider", + "tinystr", + "zerovec", +] + +[[package]] +name = "icu_properties_data" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67a8effbc3dd3e4ba1afa8ad918d5684b8868b3b26500753effea8d2eed19569" + +[[package]] +name = "icu_provider" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ed421c8a8ef78d3e2dbc98a973be2f3770cb42b606e3ab18d6237c4dfde68d9" +dependencies = [ + "displaydoc", + "icu_locid", + "icu_provider_macros", + "stable_deref_trait", + "tinystr", + "writeable", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_provider_macros" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ec89e9337638ecdc08744df490b221a7399bf8d164eb52a665454e60e075ad6" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.90", +] + +[[package]] +name = "id-arena" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "25a2bc672d1148e28034f176e01fffebb08b35768468cc954630da77a1449005" + +[[package]] +name = "ident_case" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" + +[[package]] +name = "idna" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "686f825264d630750a544639377bae737628043f20d38bbc029e8f29ea968a7e" +dependencies = [ + "idna_adapter", + "smallvec", + "utf8_iter", +] + +[[package]] +name = "idna_adapter" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "daca1df1c957320b2cf139ac61e7bd64fed304c5040df000a745aa1de3b4ef71" +dependencies = [ + "icu_normalizer", + "icu_properties", +] + +[[package]] +name = "if_chain" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb56e1aa765b4b4f3aadfab769793b7087bb03a4ea4920644a6d238e2df5b9ed" + +[[package]] +name = "ignore" +version = "0.4.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b46810df39e66e925525d6e38ce1e7f6e1d208f72dc39757880fcb66e2c58af1" +dependencies = [ + "crossbeam-deque", + "globset", + "log", + "memchr", + "regex-automata 0.4.7", + "same-file", "walkdir", "winapi-util", ] @@ -1670,16 +2072,39 @@ dependencies = [ [[package]] name = "indexmap" -version = "2.4.0" +version = "2.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "93ead53efc7ea8ed3cfb0c79fc8023fbb782a5432b52830b6518941cebe6505c" +checksum = "8c9c992b02b5b4c94ea26e32fe5bccb7aa7d9f390ab5c1221ff895bc7ea8b652" dependencies = [ "equivalent", - "hashbrown 0.14.5", + "hashbrown 0.15.2", "rayon", "serde", ] +[[package]] +name = "inout" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a0c10553d664a4d0bcff9f4215d0aac67a639cc68ef660840afe309b807bc9f5" +dependencies = [ + "generic-array", +] + +[[package]] +name = "insta" +version = "1.41.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e9ffc4d4892617c50a928c52b2961cb5174b6fc6ebf252b2fac9d21955c48b8" +dependencies = [ + "console", + "lazy_static", + "linked-hash-map", + "regex", + "serde", + "similar", +] + [[package]] name = "io-lifetimes" version = "1.0.11" @@ -1691,6 +2116,21 @@ dependencies = [ "windows-sys 0.48.0", ] +[[package]] +name = "ipnet" +version = "2.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ddc24109865250148c2e0f3d25d4f0f479571723792d3802153c60922a4fb708" + +[[package]] +name = "iprange" +version = "0.6.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "37209be0ad225457e63814401415e748e2453a5297f9b637338f5fb8afa4ec00" +dependencies = [ + "ipnet", +] + [[package]] name = "is-macro" version = "0.3.6" @@ -1700,7 +2140,7 @@ dependencies = [ "Inflector", "proc-macro2", "quote", - "syn 2.0.75", + "syn 2.0.90", ] [[package]] @@ -1712,6 +2152,15 @@ dependencies = [ "either", ] +[[package]] +name = "itertools" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569" +dependencies = [ + "either", +] + [[package]] name = "itertools" version = "0.13.0" @@ -1727,12 +2176,22 @@ version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b" +[[package]] +name = "jobserver" +version = "0.1.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "48d1dbcbbeb6a7fec7e059840aa538bd62aaccf972c7346c4d9d2059312853d0" +dependencies = [ + "libc", +] + [[package]] name = "js-sys" -version = "0.3.72" +version = "0.3.77" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a88f1bda2bd75b0452a14784937d796722fdebfe50df998aeb3f0b7603019a9" +checksum = "1cfaf33c695fc6e08064efbc1f72ec937429614f25eef83af942d0e227c3a28f" dependencies = [ + "once_cell", "wasm-bindgen", ] @@ -1847,9 +2306,9 @@ dependencies = [ [[package]] name = "libc" -version = "0.2.157" +version = "0.2.167" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "374af5f94e54fa97cf75e945cce8a6b201e88a1a07e688b47dfd2a59c66dbd86" +checksum = "09d6582e104315a817dff97f75133544b2e094ee22447d2acf4a74e189ba06fc" [[package]] name = "libloading" @@ -1871,6 +2330,16 @@ dependencies = [ "libc", ] +[[package]] +name = "libyml" +version = "0.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3302702afa434ffa30847a83305f0a69d6abd74293b6554c18ec85c7ef30c980" +dependencies = [ + "anyhow", + "version_check", +] + [[package]] name = "lightningcss" version = "1.0.0-alpha.58" @@ -1936,6 +2405,12 @@ version = "0.4.14" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89" +[[package]] +name = "litemap" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "643cb0b8d4fcc284004d5fd0d67ccf61dfffadb7f75e1e71bc420f4688a3a704" + [[package]] name = "litrs" version = "0.4.1" @@ -1952,6 +2427,12 @@ dependencies = [ "scopeguard", ] +[[package]] +name = "lockfree-object-pool" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9374ef4228402d4b7e403e5838cb880d9ee663314b0a900d5a6aabf0c213552e" + [[package]] name = "log" version = "0.4.22" @@ -1976,6 +2457,27 @@ dependencies = [ "twox-hash", ] +[[package]] +name = "lzma-rs" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "297e814c836ae64db86b36cf2a557ba54368d03f6afcd7d947c266692f71115e" +dependencies = [ + "byteorder", + "crc 3.2.1", +] + +[[package]] +name = "lzma-sys" +version = "0.1.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5fda04ab3764e6cde78b9974eec4f779acaba7c4e84b36eca3cf77c581b85d27" +dependencies = [ + "cc", + "libc", + "pkg-config", +] + [[package]] name = "mach2" version = "0.4.2" @@ -2012,15 +2514,6 @@ version = "2.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" -[[package]] -name = "memmap2" -version = "0.5.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "83faa42c0a078c393f6b29d5db232d8be22776a891f8f56e5284faee4a20b327" -dependencies = [ - "libc", -] - [[package]] name = "memmap2" version = "0.6.2" @@ -2049,7 +2542,7 @@ dependencies = [ "miette-derive", "owo-colors", "textwrap", - "thiserror", + "thiserror 1.0.69", "unicode-width", ] @@ -2061,7 +2554,7 @@ checksum = "dcf09caffaac8068c346b6df2a7fc27a177fd20b39421a39ce0a211bde679a6c" dependencies = [ "proc-macro2", "quote", - "syn 2.0.75", + "syn 2.0.90", ] [[package]] @@ -2079,15 +2572,6 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" -[[package]] -name = "miniz_oxide" -version = "0.7.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b8a240ddb74feaf34a79a7add65a741f3167852fba007066dcac1ca548d89c08" -dependencies = [ - "adler", -] - [[package]] name = "miniz_oxide" version = "0.8.0" @@ -2099,14 +2583,14 @@ dependencies = [ [[package]] name = "mio" -version = "0.8.11" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4a650543ca06a924e8b371db273b2756685faae30f8487da1b56505a8f78b0c" +checksum = "2886843bf800fba2e3377cff24abf6379b4c4d5c6681eaf9ea5b0d15090450bd" dependencies = [ "libc", "log", "wasi", - "windows-sys 0.48.0", + "windows-sys 0.52.0", ] [[package]] @@ -2115,6 +2599,26 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7843ec2de400bcbc6a6328c958dc38e5359da6e93e72e37bc5246bf1ae776389" +[[package]] +name = "munge" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "64142d38c84badf60abf06ff9bd80ad2174306a5b11bd4706535090a30a419df" +dependencies = [ + "munge_macro", +] + +[[package]] +name = "munge_macro" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bb5c1d8184f13f7d0ccbeeca0def2f9a181bce2624302793005f5ca8aa62e5e" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.90", +] + [[package]] name = "napi" version = "2.16.13" @@ -2128,6 +2632,7 @@ dependencies = [ "once_cell", "serde", "serde_json", + "tokio", ] [[package]] @@ -2147,7 +2652,7 @@ dependencies = [ "napi-derive-backend", "proc-macro2", "quote", - "syn 2.0.75", + "syn 2.0.90", ] [[package]] @@ -2162,7 +2667,7 @@ dependencies = [ "quote", "regex", "semver 1.0.23", - "syn 2.0.75", + "syn 2.0.90", ] [[package]] @@ -2291,6 +2796,20 @@ dependencies = [ "libc", ] +[[package]] +name = "object" +version = "0.32.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6a622008b6e321afc04970976f62ee297fdbaa6f95318ca343e3eebb9648441" +dependencies = [ + "crc32fast", + "flate2", + "hashbrown 0.14.5", + "indexmap 2.7.1", + "memchr", + "ruzstd", +] + [[package]] name = "object" version = "0.36.1" @@ -2354,7 +2873,7 @@ checksum = "485b74d7218068b2b7c0e3ff12fbc61ae11d57cb5d8224f525bd304c6be05bbb" dependencies = [ "base64-simd", "data-url", - "rkyv", + "rkyv 0.7.45", "serde", "serde_json", "vlq", @@ -2425,6 +2944,16 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8835116a5c179084a830efb3adc117ab007512b535bc1a21c991d3b32a6b44dd" +[[package]] +name = "pbkdf2" +version = "0.12.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8ed6a7761f76e3b9f92dfb0a60a6a6477c61024b775147ff0973a02653abaf2" +dependencies = [ + "digest", + "hmac", +] + [[package]] name = "percent-encoding" version = "2.3.1" @@ -2438,7 +2967,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b4c5cc86750666a3ed20bdaf5ca2a0344f9c67674cae0515bec2da16fbaa47db" dependencies = [ "fixedbitset", - "indexmap 2.4.0", + "indexmap 2.7.1", ] [[package]] @@ -2516,7 +3045,7 @@ dependencies = [ "phf_shared 0.11.2", "proc-macro2", "quote", - "syn 2.0.75", + "syn 2.0.90", ] [[package]] @@ -2554,7 +3083,7 @@ checksum = "2f38a4412a78282e09a2cf38d195ea5420d15ba0602cb375210efbc877243965" dependencies = [ "proc-macro2", "quote", - "syn 2.0.75", + "syn 2.0.90", ] [[package]] @@ -2569,6 +3098,12 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" +[[package]] +name = "pkg-config" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "953ec861398dccce10c670dfeaf3ec4911ca479e9c02154b3a215178c5f566f2" + [[package]] name = "powerfmt" version = "0.2.0" @@ -2592,22 +3127,32 @@ checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c" [[package]] name = "preset_env_base" -version = "1.0.0" +version = "2.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c8a797e42c09d55157424ac6e9b6e9e5843fc68b887691b280b055e8c3ca5e4" +checksum = "07852df2dda2f0ab8c3407a6fd19e9389563af11c20f6c299bd07ff9fc96d6ae" dependencies = [ - "ahash 0.8.11", "anyhow", "browserslist-rs", "dashmap 5.5.3", "from_variant", "once_cell", + "rustc-hash 2.1.0", "semver 1.0.23", "serde", "st-map", "tracing", ] +[[package]] +name = "prettyplease" +version = "0.2.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "64d1ec885c64d0457d564db4ec299b2dae3f9c02808b8ad9c3a089c591b18033" +dependencies = [ + "proc-macro2", + "syn 2.0.90", +] + [[package]] name = "proc-macro-crate" version = "1.3.1" @@ -2642,6 +3187,28 @@ dependencies = [ "version_check", ] +[[package]] +name = "proc-macro-error-attr2" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96de42df36bb9bba5542fe9f1a054b8cc87e172759a1868aa05c1f3acc89dfc5" +dependencies = [ + "proc-macro2", + "quote", +] + +[[package]] +name = "proc-macro-error2" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "11ec05c52be0a07b08061f7dd003e7d7092e0472bc731b4af7bb1ef876109802" +dependencies = [ + "proc-macro-error-attr2", + "proc-macro2", + "quote", + "syn 2.0.90", +] + [[package]] name = "proc-macro-hack" version = "0.5.20+deprecated" @@ -2650,9 +3217,9 @@ checksum = "dc375e1527247fe1a97d8b7156678dfe7c1af2fc075c9a4db3690ecd2a148068" [[package]] name = "proc-macro2" -version = "1.0.86" +version = "1.0.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77" +checksum = "37d3544b3f2748c54e147655edb5025752e2303145b5aefb3c3ea2c78b973bb0" dependencies = [ "unicode-ident", ] @@ -2672,7 +3239,16 @@ version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0738ccf7ea06b608c10564b31debd4f5bc5e197fc8bfe088f68ae5ce81e7a4f1" dependencies = [ - "ptr_meta_derive", + "ptr_meta_derive 0.1.4", +] + +[[package]] +name = "ptr_meta" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe9e76f66d3f9606f44e45598d155cb13ecf09f4a28199e48daf8c8fc937ea90" +dependencies = [ + "ptr_meta_derive 0.3.0", ] [[package]] @@ -2686,6 +3262,17 @@ dependencies = [ "syn 1.0.109", ] +[[package]] +name = "ptr_meta_derive" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca414edb151b4c8d125c12566ab0d74dc9cdba36fb80eb7b848c15f495fd32d1" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.90", +] + [[package]] name = "pulldown-cmark" version = "0.8.0" @@ -2718,6 +3305,15 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ce082a9940a7ace2ad4a8b7d0b1eac6aa378895f18be598230c5f2284ac05426" +[[package]] +name = "rancor" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "caf5f7161924b9d1cea0e4cabc97c372cea92b5f927fc13c6bca67157a0ad947" +dependencies = [ + "ptr_meta 0.3.0", +] + [[package]] name = "rand" version = "0.8.5" @@ -2788,12 +3384,13 @@ dependencies = [ [[package]] name = "regalloc2" -version = "0.5.1" +version = "0.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "300d4fbfb40c1c66a78ba3ddd41c1110247cf52f97b87d0f2fc9209bd49b030c" +checksum = "ad156d539c879b7a24a363a2016d77961786e71f48f2e2fc8302a92abd2429a6" dependencies = [ - "fxhash", + "hashbrown 0.13.2", "log", + "rustc-hash 1.1.0", "slice-group-by", "smallvec", ] @@ -2866,7 +3463,16 @@ version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "71fe3824f5629716b1589be05dacd749f6aa084c87e00e016714a8cdfccc997c" dependencies = [ - "bytecheck", + "bytecheck 0.6.12", +] + +[[package]] +name = "rend" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a35e8a6bf28cd121053a66aa2e6a2e3eaffad4a60012179f0e864aa5ffeff215" +dependencies = [ + "bytecheck 0.8.0", ] [[package]] @@ -2876,24 +3482,57 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e3a8614ee435691de62bcffcf4a66d91b3594bf1428a5722e79103249a095690" [[package]] -name = "rkyv" -version = "0.7.45" +name = "ring" +version = "0.17.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9008cd6385b9e161d8229e1f6549dd23c3d022f132a2ea37ac3a10ac4935779b" +checksum = "c17fa4cb658e3583423e915b9f3acc01cceaee1860e33d59ebae66adc3a2dc0d" dependencies = [ - "bitvec", - "bytecheck", - "bytes", - "hashbrown 0.12.3", - "indexmap 1.9.3", - "ptr_meta", - "rend", - "rkyv_derive", + "cc", + "cfg-if", + "getrandom", + "libc", + "spin", + "untrusted", + "windows-sys 0.52.0", +] + +[[package]] +name = "rkyv" +version = "0.7.45" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9008cd6385b9e161d8229e1f6549dd23c3d022f132a2ea37ac3a10ac4935779b" +dependencies = [ + "bitvec", + "bytecheck 0.6.12", + "bytes", + "hashbrown 0.12.3", + "ptr_meta 0.1.4", + "rend 0.4.2", + "rkyv_derive 0.7.45", "seahash", "tinyvec", "uuid", ] +[[package]] +name = "rkyv" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b11a153aec4a6ab60795f8ebe2923c597b16b05bb1504377451e705ef1a45323" +dependencies = [ + "bytecheck 0.8.0", + "bytes", + "hashbrown 0.15.2", + "indexmap 2.7.1", + "munge", + "ptr_meta 0.3.0", + "rancor", + "rend 0.5.2", + "rkyv_derive 0.8.9", + "tinyvec", + "uuid", +] + [[package]] name = "rkyv_derive" version = "0.7.45" @@ -2905,6 +3544,17 @@ dependencies = [ "syn 1.0.109", ] +[[package]] +name = "rkyv_derive" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "beb382a4d9f53bd5c0be86b10d8179c3f8a14c30bf774ff77096ed6581e35981" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.90", +] + [[package]] name = "rustc-demangle" version = "0.1.24" @@ -2917,6 +3567,12 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" +[[package]] +name = "rustc-hash" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7fb8039b3032c191086b10f11f319a6e99e1e82889c5cc6046f515c9db1d497" + [[package]] name = "rustc_version" version = "0.2.3" @@ -2951,9 +3607,9 @@ dependencies = [ [[package]] name = "rustix" -version = "0.38.34" +version = "0.38.41" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70dc5ec042f7a43c4a73241207cecc9873a06d45debb38b329f8541d85c2730f" +checksum = "d7f649912bc1495e167a6edee79151c84b1bad49748cb4f1f1167f459f6224f6" dependencies = [ "bitflags 2.6.0", "errno", @@ -2962,6 +3618,38 @@ dependencies = [ "windows-sys 0.52.0", ] +[[package]] +name = "rustls" +version = "0.23.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "934b404430bb06b3fae2cba809eb45a1ab1aecd64491213d7c3301b88393f8d1" +dependencies = [ + "log", + "once_cell", + "ring", + "rustls-pki-types", + "rustls-webpki", + "subtle", + "zeroize", +] + +[[package]] +name = "rustls-pki-types" +version = "1.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16f1201b3c9a7ee8039bcadc17b7e605e2945b27eee7631788c1bd2b0643674b" + +[[package]] +name = "rustls-webpki" +version = "0.102.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "64ca1bc8749bd4cf37b5ce386cc146580777b4e8572c7b97baf22c83f444bee9" +dependencies = [ + "ring", + "rustls-pki-types", + "untrusted", +] + [[package]] name = "rustversion" version = "1.0.17" @@ -2981,6 +3669,17 @@ dependencies = [ "num_cpus", ] +[[package]] +name = "ruzstd" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "58c4eb8a81997cf040a091d1f7e1938aeab6749d3a0dfa73af43cdc32393483d" +dependencies = [ + "byteorder", + "derive_more 0.99.18", + "twox-hash", +] + [[package]] name = "ryu" version = "1.0.18" @@ -3024,7 +3723,7 @@ dependencies = [ "proc-macro2", "quote", "serde_derive_internals", - "syn 2.0.75", + "syn 2.0.90", ] [[package]] @@ -3077,9 +3776,9 @@ checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" [[package]] name = "serde" -version = "1.0.208" +version = "1.0.215" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cff085d2cb684faa248efb494c39b68e522822ac0de72ccf08109abde717cfb2" +checksum = "6513c1ad0b11a9376da888e3e0baa0077f1aed55c17f50e7b2397136129fb88f" dependencies = [ "serde_derive", ] @@ -3108,13 +3807,13 @@ dependencies = [ [[package]] name = "serde_derive" -version = "1.0.208" +version = "1.0.215" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24008e81ff7613ed8e5ba0cfaf24e2c2f1e5b8a0495711e44fcd4882fca62bcf" +checksum = "ad1e866f866923f252f05c889987993144fb74e722403468a4ebd70c3cd756c0" dependencies = [ "proc-macro2", "quote", - "syn 2.0.75", + "syn 2.0.90", ] [[package]] @@ -3125,14 +3824,14 @@ checksum = "18d26a20a969b9e3fdf2fc2d9f21eda6c40e2de84c9408bb5d3b05d499aae711" dependencies = [ "proc-macro2", "quote", - "syn 2.0.75", + "syn 2.0.90", ] [[package]] name = "serde_json" -version = "1.0.125" +version = "1.0.133" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "83c8e735a073ccf5be70aa8066aa984eaf2fa000db6c8d0100ae605b366d31ed" +checksum = "c7fceb2473b9166b2294ef05efcb65a3db80803f0b03ef86a5fc88a2b85ee377" dependencies = [ "itoa", "memchr", @@ -3150,16 +3849,18 @@ dependencies = [ ] [[package]] -name = "serde_yaml" -version = "0.9.34+deprecated" +name = "serde_yml" +version = "0.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a8b1a1a2ebf674015cc02edccce75287f1a0130d394307b36743c2f5d504b47" +checksum = "59e2dd588bf1597a252c3b920e0143eb99b0f76e4e082f4c92ce34fbc9e71ddd" dependencies = [ - "indexmap 2.4.0", + "indexmap 2.7.1", "itoa", + "libyml", + "memchr", "ryu", "serde", - "unsafe-libyaml", + "version_check", ] [[package]] @@ -3200,9 +3901,15 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f6c99835bad52957e7aa241d3975ed17c1e5f8c92026377d117a606f36b84b16" dependencies = [ "bytes", - "memmap2 0.6.2", + "memmap2", ] +[[package]] +name = "shlex" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" + [[package]] name = "simd-abstraction" version = "0.7.1" @@ -3212,12 +3919,24 @@ dependencies = [ "outref", ] +[[package]] +name = "simd-adler32" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d66dc143e6b11c1eddc06d5c423cfc97062865baf299914ab64caa38182078fe" + [[package]] name = "simdutf8" version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f27f6278552951f1f2b8cf9da965d10969b2efdea95a6ec47987ab46edfe263a" +[[package]] +name = "similar" +version = "2.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1de1d4f81173b03af4c0cbed3c898f6bff5b870e4a7f5d6f4057d62a7a4b686e" + [[package]] name = "siphasher" version = "0.3.11" @@ -3275,12 +3994,12 @@ dependencies = [ [[package]] name = "socket2" -version = "0.4.10" +version = "0.5.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f7916fc008ca5542385b89a3d3ce689953c143e9304a9bf8beec1de48994c0d" +checksum = "c970269d99b64e60ec3bd6ad27270092a5394c4e309314b18ae3fe575695fbe8" dependencies = [ "libc", - "winapi", + "windows-sys 0.52.0", ] [[package]] @@ -3294,7 +4013,7 @@ dependencies = [ "data-encoding", "debugid", "if_chain", - "rustc-hash", + "rustc-hash 1.1.0", "rustc_version 0.2.3", "serde", "serde_json", @@ -3313,7 +4032,7 @@ dependencies = [ "data-encoding", "debugid", "if_chain", - "rustc-hash", + "rustc-hash 1.1.0", "rustc_version 0.2.3", "serde", "serde_json", @@ -3367,7 +4086,7 @@ checksum = "9cf483ea7e0e3a03d1b91687895814425149ad77facd3e2b6839dde26da98454" dependencies = [ "proc-macro2", "quote", - "syn 2.0.75", + "syn 2.0.90", ] [[package]] @@ -3385,7 +4104,7 @@ dependencies = [ "proc-macro2", "quote", "swc_macros_common", - "syn 2.0.75", + "syn 2.0.90", ] [[package]] @@ -3400,17 +4119,23 @@ version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" +[[package]] +name = "subtle" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" + [[package]] name = "swc" -version = "5.0.2" +version = "13.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "39ce6c59d68f3ce3cbb01ea2329060180025933a0a937fcc4217bf7ef887572d" +checksum = "4107d56ba60c3b965d50cbd26762530553f6ab3fb98aeea917c75ee08c81c346" dependencies = [ "anyhow", "base64 0.21.7", "dashmap 5.5.3", "either", - "indexmap 2.4.0", + "indexmap 2.7.1", "jsonc-parser", "lru", "napi", @@ -3419,7 +4144,7 @@ dependencies = [ "parking_lot", "pathdiff", "regex", - "rustc-hash", + "rustc-hash 2.1.0", "serde", "serde_json", "sourcemap 9.0.0", @@ -3457,41 +4182,42 @@ dependencies = [ [[package]] name = "swc_allocator" -version = "1.0.0" +version = "3.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "52cacc28f0ada8e4e31a720dd849ff06864b10e6ab0a1aaa99c06456cfe046af" +checksum = "1a1f988452cab8c4e25776e5a855ba088cdb38fbe9714f9b9d2a6ff345824858" dependencies = [ "bumpalo", "hashbrown 0.14.5", - "ptr_meta", - "rustc-hash", + "ptr_meta 0.3.0", + "rustc-hash 2.1.0", "triomphe", ] [[package]] name = "swc_atoms" -version = "2.0.0" +version = "3.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d7211e5c57ea972f32b8a104d7006c4a68d094ec30c6a73bcd20d4d6c473c7c" +checksum = "c24077f986f0bc1c07823f850f688dd9be91b186efdb03fe1d52f7c2f2a4a346" dependencies = [ - "bytecheck", + "bytecheck 0.8.0", "hstr", "once_cell", - "rkyv", - "rustc-hash", + "rancor", + "rkyv 0.8.9", + "rustc-hash 2.1.0", "serde", ] [[package]] name = "swc_bundler" -version = "5.0.0" +version = "9.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "105cda3d6ce147baeb496270a7ba2c90470b5c3dd50081d8be6c3a2eccb5559a" +checksum = "96a379147d705b2180a56b93f0cc34c6f5db41d97180204aa5b1bf1b79d456c8" dependencies = [ "anyhow", - "crc", + "crc 2.1.0", "dashmap 5.5.3", - "indexmap 2.4.0", + "indexmap 2.7.1", "is-macro", "once_cell", "parking_lot", @@ -3499,6 +4225,7 @@ dependencies = [ "radix_fmt", "rayon", "relative-path", + "rustc-hash 2.1.0", "swc_atoms", "swc_common", "swc_ecma_ast", @@ -3516,21 +4243,21 @@ dependencies = [ [[package]] name = "swc_cached" -version = "1.0.0" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "96b6a5ef4cfec51d3fa30b73600f206453a37fc30cf1141e4644a57b1ed88616" +checksum = "d7133338c3bef796430deced151b0eaa5430710a90e38da19e8e3045e8e36eeb" dependencies = [ - "ahash 0.8.11", "anyhow", "dashmap 5.5.3", "once_cell", "regex", + "rustc-hash 2.1.0", "serde", ] [[package]] name = "swc_cli" -version = "0.91.445" +version = "0.91.480" dependencies = [ "anyhow", "swc_cli_impl", @@ -3538,9 +4265,9 @@ dependencies = [ [[package]] name = "swc_cli_impl" -version = "5.0.0" +version = "13.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f532bc0248e6d9b19550da4d5b4f37ee01671a54061edf4e14e004eda81d5e07" +checksum = "28b9dd177eb0804b361a06eb0741b2216e04dfb4783607340b43efe04cd582b2" dependencies = [ "anyhow", "clap", @@ -3561,15 +4288,14 @@ dependencies = [ [[package]] name = "swc_common" -version = "4.0.0" +version = "6.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "053e784870430ba47043278626e75686e745ac16876a8f5f4d6c9f39354ee7e7" +checksum = "4247defb6017aa8799c43e03da35a5ef7ce737189001392083619711c6d4811e" dependencies = [ - "ahash 0.8.11", "anyhow", "ast_node", "better_scoped_tls", - "bytecheck", + "bytecheck 0.8.0", "cfg-if", "either", "from_variant", @@ -3577,8 +4303,9 @@ dependencies = [ "num-bigint", "once_cell", "parking_lot", - "rkyv", - "rustc-hash", + "rancor", + "rkyv 0.8.9", + "rustc-hash 2.1.0", "serde", "siphasher", "sourcemap 9.0.0", @@ -3593,9 +4320,9 @@ dependencies = [ [[package]] name = "swc_compiler_base" -version = "5.0.0" +version = "11.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "93642202236e85434c36ec37daee144d4faf05d5495a4187228f9b03e6b4db88" +checksum = "c126a0562e58c04cc7e8600ea375bc96473a0dd4733e0708de4b58164d5a3ec1" dependencies = [ "anyhow", "base64 0.21.7", @@ -3603,7 +4330,7 @@ dependencies = [ "napi-derive", "once_cell", "pathdiff", - "rustc-hash", + "rustc-hash 2.1.0", "serde", "serde_json", "sourcemap 9.0.0", @@ -3621,12 +4348,12 @@ dependencies = [ [[package]] name = "swc_config" -version = "1.0.0" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4aa30931f9b26af8edcb4cce605909d15dcfd7577220b22c50a2988f2a53c4c1" +checksum = "eb63364aebd1a8490a80fa8933825c6916d4df55d5472312d5adb62c9fb4e4ba" dependencies = [ "anyhow", - "indexmap 2.4.0", + "indexmap 2.7.1", "serde", "serde_json", "sourcemap 9.0.0", @@ -3643,14 +4370,14 @@ dependencies = [ "proc-macro2", "quote", "swc_macros_common", - "syn 2.0.75", + "syn 2.0.90", ] [[package]] name = "swc_core" -version = "5.0.3" +version = "13.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3af6c750cb739d60e6b135f9f765906a0cfaf8732ab3b18093a88beb059bcbbc" +checksum = "414eb76e9897a5c70da72b84b7d195b7cc73d1eeff5aa9268b7cec6f12f37843" dependencies = [ "binding_macros", "swc", @@ -3676,9 +4403,9 @@ dependencies = [ [[package]] name = "swc_css_ast" -version = "4.0.1" +version = "6.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3c0d7f6c3485edee176e31495ef4e485d6f629bce53dde64fc1b897050d6daf" +checksum = "886e49b3d06236bc93e6ace700b2aa38c43e054db7274d8fabb16a51dfc71549" dependencies = [ "is-macro", "string_enum", @@ -3688,13 +4415,13 @@ dependencies = [ [[package]] name = "swc_css_codegen" -version = "4.0.0" +version = "6.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76297590ad5c4c102ddc88beb1de5f7cb7120a86996e7fff7396f0247ac099ab" +checksum = "407ceaf2aaad99c93f4eabb87fb8b7d59efff2751f168797b82dece68561962f" dependencies = [ "auto_impl", "bitflags 2.6.0", - "rustc-hash", + "rustc-hash 2.1.0", "serde", "swc_atoms", "swc_common", @@ -3712,15 +4439,16 @@ dependencies = [ "proc-macro2", "quote", "swc_macros_common", - "syn 2.0.75", + "syn 2.0.90", ] [[package]] name = "swc_css_minifier" -version = "4.0.0" +version = "6.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b91ce81c2389210479ced310347e9ceb92034f344b36bb107fa523bb02cbfd09" +checksum = "cba9b1c733d7642ac4afa8b10e49b4bdb52213e6164ec5e276d3a996689364f4" dependencies = [ + "rustc-hash 2.1.0", "serde", "swc_atoms", "swc_common", @@ -3731,9 +4459,9 @@ dependencies = [ [[package]] name = "swc_css_parser" -version = "4.0.0" +version = "6.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "52eaea47f26a2a5588437d307542dfeae87267aaddc1298d9b785e63cff63802" +checksum = "989ed83726060f0fe9df5f5aa0d983f8b673f40aa9e3c86acb6ce158950b4e1c" dependencies = [ "lexical", "serde", @@ -3744,11 +4472,12 @@ dependencies = [ [[package]] name = "swc_css_utils" -version = "4.0.0" +version = "6.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1302ba659075b796e69a7cd902dc19197ab77e62f1084c292c5f09b0e92e8f2d" +checksum = "762eee3cce39d4621f96c6b7ada709ca7c6d0af681b7b5e43651d23e98ec623f" dependencies = [ "once_cell", + "rustc-hash 2.1.0", "serde", "serde_json", "swc_atoms", @@ -3759,9 +4488,9 @@ dependencies = [ [[package]] name = "swc_css_visit" -version = "4.0.0" +version = "6.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2958522963576e8c5d183e5f111d8ad87f4403580c3e57031af192f2d26d2556" +checksum = "d4e21166844b8460eef4d20d9f0daa768879a1357ccf952e3d866dc7432d95cb" dependencies = [ "serde", "swc_atoms", @@ -3772,16 +4501,17 @@ dependencies = [ [[package]] name = "swc_ecma_ast" -version = "4.0.1" +version = "6.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1bdab7759509c1b37ec77bd9fc231f525b888d9609c2963ce71995da1b27357c" +checksum = "dbd513dab5fb1181e66ac34c4c959e9e8824d8d2c8bd50f698f5f2943794c0cc" dependencies = [ "bitflags 2.6.0", - "bytecheck", + "bytecheck 0.8.0", "is-macro", "num-bigint", "phf 0.11.2", - "rkyv", + "rancor", + "rkyv 0.8.9", "scoped-tls", "serde", "string_enum", @@ -3793,14 +4523,16 @@ dependencies = [ [[package]] name = "swc_ecma_codegen" -version = "4.0.2" +version = "6.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e474f6c2671524dbb179b44a36425cb1a58928f0f7211c45043f0951a1842c5d" +checksum = "b342d4f7b09d2bc669c92e53748bc3db134ecb2473e4f16bc3eec6ec473ba49a" dependencies = [ + "ascii", "memchr", "num-bigint", "once_cell", "regex", + "rustc-hash 2.1.0", "serde", "sourcemap 9.0.0", "swc_allocator", @@ -3820,15 +4552,16 @@ dependencies = [ "proc-macro2", "quote", "swc_macros_common", - "syn 2.0.75", + "syn 2.0.90", ] [[package]] name = "swc_ecma_compat_bugfixes" -version = "5.0.0" +version = "9.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1329a40848de17863db27ab4d8840f5aa6a79e6655bab2a5abe0f4e7f5c56d6a" +checksum = "f08d54d4480e63535bf8aa2f56e5e43e682e02c703d2dd419aefca20c991c167" dependencies = [ + "rustc-hash 2.1.0", "swc_atoms", "swc_common", "swc_ecma_ast", @@ -3842,9 +4575,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_common" -version = "5.0.0" +version = "9.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c5d585318a0d8ad1465d68fb10c29674d41988f59f4fab1e162a2f0bf13dbdc2" +checksum = "df57bb8d6477c81459e892aa4427e54b231abc675d32d1b1981978331b9e5505" dependencies = [ "swc_common", "swc_ecma_ast", @@ -3855,14 +4588,14 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2015" -version = "5.0.0" +version = "9.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "27be5007d501b111706bb5e055a57388aeda89b5b13613831a285e4571575400" +checksum = "e043d59b56f54f5799e6a04400286804434f39feba82dc7f00fe870d122caa55" dependencies = [ "arrayvec", - "indexmap 2.4.0", + "indexmap 2.7.1", "is-macro", - "rustc-hash", + "rustc-hash 2.1.0", "serde", "serde_derive", "smallvec", @@ -3882,9 +4615,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2016" -version = "5.0.0" +version = "9.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a329b3d6bcc4bebab396a556ec6accda6f7d4a8a1126ded05f2c7a705c6343e" +checksum = "cedbafaa7ec38e076cf43e53894b2e40cc3876e17c2bd740b41082a81c3964c8" dependencies = [ "swc_atoms", "swc_common", @@ -3899,9 +4632,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2017" -version = "5.0.0" +version = "9.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec0a6f9d438b79763da23e9eb20f10c3d7f39d4c301047fef89a7e4c7cc1d3e7" +checksum = "6d5077ba72189a26f4a074d226df5ca92af5df49a4f85324ff6f71fce676b60e" dependencies = [ "serde", "swc_atoms", @@ -3917,9 +4650,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2018" -version = "5.0.0" +version = "9.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d80354d791823c0fe754c5b9d35510e519261763e7871c6b3b15c57d54af928a" +checksum = "634385e806b12cad22eb0a4a62a100583d0d5ea81cda605f49dedd3b637d8bc7" dependencies = [ "serde", "swc_atoms", @@ -3936,9 +4669,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2019" -version = "5.0.0" +version = "9.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9389a8364fd44f041302b09ce46d54d42de033737597cf481c2bdc09ac8a899" +checksum = "8c603b3b07d12f800ce5fe6b4d157dde14d9315b9b2e3576deebd99a310adfdb" dependencies = [ "swc_atoms", "swc_common", @@ -3952,9 +4685,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2020" -version = "5.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "74b6f3a00525d801fd9c019570886edd9e4057aae45349bcf934260b0e1fb13f" +checksum = "e13b59539620b1ddca8ab3e9b3747bc8358fc3b4a9c88390051135591ba86608" dependencies = [ "serde", "swc_atoms", @@ -3970,9 +4703,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2021" -version = "5.0.0" +version = "9.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c59d09c7146386ca51e3eb225f4c7b392d7d9020742e7cf47bc3c4ceb6aa4a6" +checksum = "8a96de895205bfccbc722d9449e70b0feae79950ab95c2d0115139433d649d06" dependencies = [ "swc_atoms", "swc_common", @@ -3986,10 +4719,11 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2022" -version = "5.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0947eca60f422bf25f926e06ebcde5f3189df7fb7fc9c4f0d07fcb6a90bd0acf" +checksum = "55de1bcd911804365e7f12d0f32ea38874cee7d8f5c44b17b0d05410094ef214" dependencies = [ + "rustc-hash 2.1.0", "swc_atoms", "swc_common", "swc_ecma_ast", @@ -4005,9 +4739,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es3" -version = "5.0.0" +version = "9.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2241d79bc42ab25133b9107c0ec08aef55503dde6dac85debae7ba750b21afd4" +checksum = "82b09b355fb9995927fc7ad262a8384574a8c920d6869b4f12810bcfedacf6d8" dependencies = [ "swc_common", "swc_ecma_ast", @@ -4020,9 +4754,9 @@ dependencies = [ [[package]] name = "swc_ecma_ext_transforms" -version = "5.0.0" +version = "9.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b22832b3a044b1c136e2e36507da109e7882f43de959e5b8bf47f7e15eab20ef" +checksum = "fc517764142a071eac496aeb5e0ad910db3d27bbd57fbc2de1a0a50172179189" dependencies = [ "phf 0.11.2", "swc_atoms", @@ -4034,15 +4768,15 @@ dependencies = [ [[package]] name = "swc_ecma_lints" -version = "5.0.0" +version = "9.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b48790267b801843d341b4b1e4932a270e34a2998e0d8f66bca91cae819c65c5" +checksum = "cb3d14aa9c8a6adbacbf8cb072387b4dc445b8bc51a8009257d782890431f0c4" dependencies = [ "auto_impl", "dashmap 5.5.3", "parking_lot", - "rayon", "regex", + "rustc-hash 2.1.0", "serde", "swc_atoms", "swc_common", @@ -4050,13 +4784,14 @@ dependencies = [ "swc_ecma_ast", "swc_ecma_utils", "swc_ecma_visit", + "swc_parallel", ] [[package]] name = "swc_ecma_loader" -version = "4.0.0" +version = "6.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be7c9ada6dc917b70f94cdff91cff1ac95f3d6693202109170ff5268ff4c0d1f" +checksum = "dd99e5ef9cbecc33e8e199ad060d2af0a28ab0c2340eb37a7d4ba17fa59576d4" dependencies = [ "anyhow", "dashmap 5.5.3", @@ -4066,6 +4801,7 @@ dependencies = [ "parking_lot", "path-clean 0.1.0", "pathdiff", + "rustc-hash 2.1.0", "serde", "serde_json", "swc_atoms", @@ -4076,12 +4812,12 @@ dependencies = [ [[package]] name = "swc_ecma_minifier" -version = "5.0.0" +version = "10.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba0fa4819b1353cbe5e15fabbc1618e0da6c51404214042457d3dd7a60e14960" +checksum = "da67643e5f58e678f6228e45bddfe7550009972da331bd7927b252796c4aa764" dependencies = [ "arrayvec", - "indexmap 2.4.0", + "indexmap 2.7.1", "num-bigint", "num_cpus", "once_cell", @@ -4090,7 +4826,7 @@ dependencies = [ "radix_fmt", "rayon", "regex", - "rustc-hash", + "rustc-hash 2.1.0", "ryu-js", "serde", "serde_json", @@ -4106,21 +4842,23 @@ dependencies = [ "swc_ecma_usage_analyzer", "swc_ecma_utils", "swc_ecma_visit", + "swc_parallel", "swc_timer", "tracing", ] [[package]] name = "swc_ecma_parser" -version = "5.0.0" +version = "8.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54c5ab8bd4cc4a4956514699c84d1a25cdb5a33f5ec760ec64ce712e973019c9" +checksum = "7a3e9d2f5091bb851423ca66c239802212e2c80451242ff29941bc21058376ef" dependencies = [ "either", "new_debug_unreachable", "num-bigint", "num-traits", "phf 0.11.2", + "rustc-hash 2.1.0", "serde", "smallvec", "smartstring", @@ -4134,16 +4872,16 @@ dependencies = [ [[package]] name = "swc_ecma_preset_env" -version = "5.0.0" +version = "11.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "536d242fcc9ae6dfcb3bf0fb1a0b087b20feca33e070aa51d585acbf8ac1ba5d" +checksum = "22b32544046c3eb22865e0ca5d01987652bf2792ced0e3c63c108aaa709613b8" dependencies = [ "anyhow", "dashmap 5.5.3", - "indexmap 2.4.0", + "indexmap 2.7.1", "once_cell", "preset_env_base", - "rustc-hash", + "rustc-hash 2.1.0", "semver 1.0.23", "serde", "serde_json", @@ -4159,9 +4897,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms" -version = "5.0.0" +version = "11.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1600bc245ac36783f219678d0831ffb8aeee7ab06908c394fc1da9be1b0fd16a" +checksum = "059b8a22359b6cb5fbf942926935abf2faba898d337656fe9d6ffae37c7fa2d8" dependencies = [ "swc_atoms", "swc_common", @@ -4179,17 +4917,17 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_base" -version = "5.0.0" +version = "9.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0a2438f61a45819b5adf0c338c92c07d83306d630fb2e6dc261c60fb75653d7" +checksum = "9b696e003dd095ae8b8dba00f601040f756273c9af0fd67cb1c57115785cb5ec" dependencies = [ "better_scoped_tls", "bitflags 2.6.0", - "indexmap 2.4.0", + "indexmap 2.7.1", "once_cell", "phf 0.11.2", "rayon", - "rustc-hash", + "rustc-hash 2.1.0", "serde", "smallvec", "swc_atoms", @@ -4198,14 +4936,15 @@ dependencies = [ "swc_ecma_parser", "swc_ecma_utils", "swc_ecma_visit", + "swc_parallel", "tracing", ] [[package]] name = "swc_ecma_transforms_classes" -version = "5.0.0" +version = "9.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "63a93f8b41f89e08edf77f70a8fa959cd3b84d396c2c6a3e0b0cca62f1b89683" +checksum = "22c0ccd085c481c3690b93db9e3e27658b7133192c9bf49b146f11c0180808e7" dependencies = [ "swc_atoms", "swc_common", @@ -4217,12 +4956,12 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_compat" -version = "5.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09ca64973f33eb69cc29b9d1a432e6eebfbffa281be128318f8754013557a69e" +checksum = "0c933a35718a42dde2873120f0f4768d9054125e9c56f7b7223f35efac21bd76" dependencies = [ "arrayvec", - "indexmap 2.4.0", + "indexmap 2.7.1", "is-macro", "num-bigint", "rayon", @@ -4261,23 +5000,24 @@ dependencies = [ "proc-macro2", "quote", "swc_macros_common", - "syn 2.0.75", + "syn 2.0.90", ] [[package]] name = "swc_ecma_transforms_module" -version = "5.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a0487647586521fd66e937127fe8ce39edffbc5b96138c264ff0ba58786430bd" +checksum = "461ad2212af7c681e46b4beb91ca25b84a29467f327cd0c09e33f5908b73384f" dependencies = [ "Inflector", "anyhow", "bitflags 2.6.0", - "indexmap 2.4.0", + "indexmap 2.7.1", "is-macro", "path-clean 1.0.1", "pathdiff", "regex", + "rustc-hash 2.1.0", "serde", "swc_atoms", "swc_cached", @@ -4293,16 +5033,16 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_optimization" -version = "5.0.0" +version = "9.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f63d691ccea03a8eb25f37c7498e7609ad76ca3dc2070b630596e49f0b8fd1f4" +checksum = "26d05cd8942bb58b4676d8189e82942504004555957cb87a563bc4938f2440ab" dependencies = [ "dashmap 5.5.3", - "indexmap 2.4.0", + "indexmap 2.7.1", "once_cell", "petgraph", "rayon", - "rustc-hash", + "rustc-hash 2.1.0", "serde_json", "swc_atoms", "swc_common", @@ -4318,12 +5058,12 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_proposal" -version = "5.0.0" +version = "9.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc94b9be02d6ce4754b56222375be1684c9135cfea76bda13820d97beffbd804" +checksum = "08f82905f3d824bbe0555961df6c0f19807c6460ce49b3ddafec49493dc95b3e" dependencies = [ "either", - "rustc-hash", + "rustc-hash 2.1.0", "serde", "smallvec", "swc_atoms", @@ -4338,15 +5078,16 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_react" -version = "5.0.0" +version = "9.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90002fdbe17f10c84cb29a102154a30ee5ad3e7165f0610d18ba8aa3a592924c" +checksum = "3dee5ef36740d62b3f69c777385067e0fe6e10fd87e4107e5495b74b15e0a0b7" dependencies = [ "base64 0.21.7", "dashmap 5.5.3", - "indexmap 2.4.0", + "indexmap 2.7.1", "once_cell", "rayon", + "rustc-hash 2.1.0", "serde", "sha1", "string_enum", @@ -4364,10 +5105,12 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_typescript" -version = "5.0.0" +version = "9.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f67d5ff2ec723d075db340ac155877fea9607186f179e41ef2116aeef960a2cf" +checksum = "693f6e9683ae814930fa17f21b6915c795ab5d1883dd351753a18b689a78492f" dependencies = [ + "once_cell", + "rustc-hash 2.1.0", "ryu-js", "serde", "swc_atoms", @@ -4381,12 +5124,12 @@ dependencies = [ [[package]] name = "swc_ecma_usage_analyzer" -version = "5.0.0" +version = "10.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89892c33cf84806957c34539cb84a26c69f6d2c7c8d9ae3131113105852f1d60" +checksum = "c339a654c31223690a0733f268e4ab497ca6d02b4b76aa0dde71ff5ad395d30b" dependencies = [ - "indexmap 2.4.0", - "rustc-hash", + "indexmap 2.7.1", + "rustc-hash 2.1.0", "swc_atoms", "swc_common", "swc_ecma_ast", @@ -4398,33 +5141,33 @@ dependencies = [ [[package]] name = "swc_ecma_utils" -version = "5.0.0" +version = "9.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "024a9ee9a19f448b31af002b90c43b9dfdb4e1fad23c76c21fe26a7c6e0f78a7" +checksum = "c3c217edaa22c98537e09ed3189e723feed3d889eeb7e02a0b3d48cbb91ba7e4" dependencies = [ - "indexmap 2.4.0", + "indexmap 2.7.1", "num_cpus", "once_cell", "rayon", - "rustc-hash", + "rustc-hash 2.1.0", "ryu-js", "swc_atoms", "swc_common", "swc_ecma_ast", "swc_ecma_visit", + "swc_parallel", "tracing", "unicode-id", ] [[package]] name = "swc_ecma_visit" -version = "4.0.0" +version = "6.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "642c58202491c273ea984e0d7e923319afe0f94195d2985b3e7f71f7d8232e06" +checksum = "a32fb2902c01f9b4615605a4a3e67e0c928bd3b9f2182e764f1c9fe4130965cf" dependencies = [ "new_debug_unreachable", "num-bigint", - "serde", "swc_atoms", "swc_common", "swc_ecma_ast", @@ -4440,14 +5183,14 @@ checksum = "e96e15288bf385ab85eb83cff7f9e2d834348da58d0a31b33bdb572e66ee413e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.75", + "syn 2.0.90", ] [[package]] name = "swc_error_reporters" -version = "5.0.0" +version = "7.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb4a3c124af5d297d98e6c18776ba04024087cde14602621017e8e9c6cd1c2d1" +checksum = "ed21ea887faeb0dab190838d2331ed187f2a74d185c9fe7044d5092900a83d29" dependencies = [ "anyhow", "miette", @@ -4458,21 +5201,21 @@ dependencies = [ [[package]] name = "swc_fast_graph" -version = "5.0.0" +version = "7.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f65856acf41991a43d47d19ca947ee34f1152fccc42f048063c64eaf45a8e26" +checksum = "4ebf3efc1b14392006675682cfb8bab282bf88dbdfee65235a81b8a7b30af805" dependencies = [ - "indexmap 2.4.0", + "indexmap 2.7.1", "petgraph", - "rustc-hash", + "rustc-hash 2.1.0", "swc_common", ] [[package]] name = "swc_fast_ts_strip" -version = "5.0.0" +version = "9.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "60294cacb020097c965b2a89187f0e43cb9f3133f21c7b55a64477db8e3036d8" +checksum = "3c0a7b4bce6deefdcb914f3937e3b89e9973a53ca76a6831489e6f994872bbe7" dependencies = [ "anyhow", "serde", @@ -4489,12 +5232,13 @@ dependencies = [ [[package]] name = "swc_graph_analyzer" -version = "4.0.0" +version = "6.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "832a887afe5373c3e3f149e5b9dd2b8c8c080d3816224caa410e05a0abcf23fe" +checksum = "48a8db6f3fa604cf5b235fa807e3ed57ec7695ed3316b510150876a0ae164aef" dependencies = [ "auto_impl", "petgraph", + "rustc-hash 2.1.0", "swc_common", "swc_fast_graph", "tracing", @@ -4502,9 +5246,9 @@ dependencies = [ [[package]] name = "swc_html" -version = "5.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0272accbf9469f5c0b37648c9adc30367f644e1017fe35e10cbdbbf794145d5" +checksum = "4c9304bdc6414753ca3670fb35c1dde3c2d68f3efa0ed9bc834083736aea374f" dependencies = [ "swc_html_ast", "swc_html_codegen", @@ -4514,9 +5258,9 @@ dependencies = [ [[package]] name = "swc_html_ast" -version = "4.0.1" +version = "6.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "65b872630925fef24cf712ff7be1782151371ab5ae2240b1f259611ea3a0c628" +checksum = "fa76bac6462ecd217ba48572702268dbfe2dad778ae6aefbd334351840802de0" dependencies = [ "is-macro", "serde", @@ -4527,13 +5271,13 @@ dependencies = [ [[package]] name = "swc_html_codegen" -version = "4.0.0" +version = "6.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce61fd095f77b21deb2fec7c130b82c9a06efbd63907a0cec13cd48246b5b52a" +checksum = "e41efc81b888a1c4944e10aeeba8f177db923a4ef9e0013997b4b9e2a3c07286" dependencies = [ "auto_impl", "bitflags 2.6.0", - "rustc-hash", + "rustc-hash 2.1.0", "swc_atoms", "swc_common", "swc_html_ast", @@ -4550,16 +5294,17 @@ dependencies = [ "proc-macro2", "quote", "swc_macros_common", - "syn 2.0.75", + "syn 2.0.90", ] [[package]] name = "swc_html_minifier" -version = "5.0.0" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d086167f70ee136bdf58a8697776e6bb7bcb477845520d677ad9da15bbdbf29" +checksum = "3897a2cc49db36a7eed099ac740e156caa9ac865678f1176e9d86a7bd38210f8" dependencies = [ "once_cell", + "rustc-hash 2.1.0", "serde", "serde_json", "swc_atoms", @@ -4584,10 +5329,11 @@ dependencies = [ [[package]] name = "swc_html_parser" -version = "4.0.0" +version = "6.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70adabd18bc9a4d34a2b59200335edda6aff732c89103e3bfaecf0faa936744c" +checksum = "adf8ac8b0dd5f7c32130760b26763994901b54ec7ca59093d7a4ee41a7f21645" dependencies = [ + "rustc-hash 2.1.0", "swc_atoms", "swc_common", "swc_html_ast", @@ -4596,11 +5342,12 @@ dependencies = [ [[package]] name = "swc_html_utils" -version = "4.0.0" +version = "6.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05e755211286e6e683c7f2c1e10ae97bf8679a68e54c9a4b24b3136dcbe4ca73" +checksum = "d2a8cc3263df88072d2449417b94a4bd88c0c45d03a858ed7636eefa12514ac9" dependencies = [ "once_cell", + "rustc-hash 2.1.0", "serde", "serde_json", "swc_atoms", @@ -4609,9 +5356,9 @@ dependencies = [ [[package]] name = "swc_html_visit" -version = "4.0.0" +version = "6.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4b9dc3d5980d09196fcac3c54a7d5b4695f74c50da68bef4f7d4eb14fb769ce" +checksum = "345517a927936b6205346d9a072975d1cd07d1c826bd6d8a6bf66364538a4255" dependencies = [ "serde", "swc_atoms", @@ -4620,6 +5367,21 @@ dependencies = [ "swc_visit", ] +[[package]] +name = "swc_interop_babel" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93e4dbc7d95428117dab24e3855000bcb6c31742946a8575f6202c4df801b532" +dependencies = [ + "swc_interop_nodejs", +] + +[[package]] +name = "swc_interop_nodejs" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ce3abed2181a16c5bb94026de4ebe805b025353f71425cc65c5f29f145139fd" + [[package]] name = "swc_macros_common" version = "1.0.0" @@ -4628,7 +5390,7 @@ checksum = "a509f56fca05b39ba6c15f3e58636c3924c78347d63853632ed2ffcb6f5a0ac7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.75", + "syn 2.0.90", ] [[package]] @@ -4643,15 +5405,16 @@ dependencies = [ [[package]] name = "swc_node_bundler" -version = "5.0.0" +version = "13.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "db14c5b326234caed8fdd6238df2f9e5346577e549e5985a016c58faa74bd2a1" +checksum = "f3393f039d570e3c003d9d1dc218102275bc931cc78682b7ee6daa3fe853d964" dependencies = [ "anyhow", "dashmap 5.5.3", "is-macro", "once_cell", "regex", + "rustc-hash 2.1.0", "serde", "serde_json", "string_enum", @@ -4672,11 +5435,12 @@ dependencies = [ [[package]] name = "swc_node_comments" -version = "4.0.0" +version = "6.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac391ef93674dd641bdecb940152de4684fa33822777dcdf8108115f013ce365" +checksum = "ca0fdc3b404de25c08d5ed201b54db27d39c5f41e0389b6231910c50e76b1682" dependencies = [ "dashmap 5.5.3", + "rustc-hash 2.1.0", "swc_atoms", "swc_common", ] @@ -4695,14 +5459,27 @@ dependencies = [ "tracing-subscriber", ] +[[package]] +name = "swc_parallel" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5f75f1094d69174ef628e3665fff0f81d58e9f568802e3c90d332c72b0b6026" +dependencies = [ + "chili", + "once_cell", +] + [[package]] name = "swc_plugin_proxy" -version = "4.0.0" +version = "6.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6749c4027aad79cf648ffce6633100ea01a7b0d6cf17299cfa68ce141897c26c" +checksum = "61e8ae3974157b2939ada468ffec7932358f2f567abb6c237204dd603e52ffff" dependencies = [ "better_scoped_tls", - "rkyv", + "bytecheck 0.8.0", + "rancor", + "rkyv 0.8.9", + "rustc-hash 2.1.0", "swc_common", "swc_ecma_ast", "swc_trace_macro", @@ -4711,15 +5488,16 @@ dependencies = [ [[package]] name = "swc_plugin_runner" -version = "4.0.0" +version = "6.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be45f93cebf20ea67f00de9b202722c4f555f83c7578790ff3d55799811357b6" +checksum = "b199883a9f08478707f6d3d194ab5c00dac5d500859ba7fbccda5879a71bd216" dependencies = [ "anyhow", "enumset", "futures", "once_cell", "parking_lot", + "rustc-hash 2.1.0", "serde", "serde_json", "swc_common", @@ -4727,7 +5505,7 @@ dependencies = [ "swc_plugin_proxy", "tracing", "vergen", - "virtual-fs", + "virtual-fs 0.19.0", "wasmer", "wasmer-cache", "wasmer-compiler-cranelift", @@ -4751,32 +5529,36 @@ checksum = "4c78717a841565df57f811376a3d19c9156091c55175e12d378f3a522de70cef" dependencies = [ "proc-macro2", "quote", - "syn 2.0.75", + "syn 2.0.90", ] [[package]] name = "swc_transform_common" -version = "1.0.0" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f23ade45bb0d8b5299022dc0f674c2125512412f5b26f42cfaffa16dcc00d56b" +checksum = "79319c2165695896119f0cb22847dedfb0bd7f77acd98dbc5bc1f081105db6f3" dependencies = [ "better_scoped_tls", "once_cell", - "rustc-hash", + "rustc-hash 2.1.0", "serde", "serde_json", ] [[package]] name = "swc_typescript" -version = "4.0.0" +version = "8.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fbc49333e23eac4f485ee976267d1f81648637c1abe2b904641f28b00a1a514e" +checksum = "3fbac6fb2bac25fd3b3aa49ad19001f5e6f7be1b9971dd34f8e7649f939e39c8" dependencies = [ + "petgraph", + "rustc-hash 2.1.0", "swc_atoms", "swc_common", "swc_ecma_ast", - "thiserror", + "swc_ecma_utils", + "swc_ecma_visit", + "thiserror 1.0.69", ] [[package]] @@ -4802,15 +5584,26 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.75" +version = "2.0.90" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f6af063034fc1935ede7be0122941bafa9bacb949334d090b77ca98b5817c7d9" +checksum = "919d3b74a5dd0ccd15aeb8f93e7006bd9e14c295087c9896a110f490752bcf31" dependencies = [ "proc-macro2", "quote", "unicode-ident", ] +[[package]] +name = "synstructure" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8af7666ab7b6390ab78131fb5b0fce11d6b7a6951602017c35fa82800708971" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.90", +] + [[package]] name = "tap" version = "1.0.1" @@ -4819,9 +5612,9 @@ checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" [[package]] name = "tar" -version = "0.4.41" +version = "0.4.43" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb797dad5fb5b76fcf519e702f4a589483b5ef06567f160c392832c1f5e44909" +checksum = "c65998313f8e17d0d553d28f91a0df93e4dbbbf770279c7bc21ca0f09ea1a1f6" dependencies = [ "filetime", "libc", @@ -4836,14 +5629,15 @@ checksum = "4873307b7c257eddcb50c9bedf158eb669578359fb28428bef438fec8e6ba7c2" [[package]] name = "tempfile" -version = "3.10.1" +version = "3.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85b77fafb263dd9d05cbeac119526425676db3784113aa9295c88498cbf8bff1" +checksum = "28cce251fcbc87fac86a866eeb0d6c2d536fc16d06f184bb61aeae11aa4cee0c" dependencies = [ "cfg-if", "fastrand", - "rustix 0.38.34", - "windows-sys 0.52.0", + "once_cell", + "rustix 0.38.41", + "windows-sys 0.59.0", ] [[package]] @@ -4871,7 +5665,7 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "21bebf2b7c9e0a515f6e0f8c51dc0f8e4696391e6f1ff30379559f8365fb0df7" dependencies = [ - "rustix 0.38.34", + "rustix 0.38.41", "windows-sys 0.48.0", ] @@ -4898,22 +5692,42 @@ dependencies = [ [[package]] name = "thiserror" -version = "1.0.63" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" +dependencies = [ + "thiserror-impl 1.0.69", +] + +[[package]] +name = "thiserror" +version = "2.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c006c85c7651b3cf2ada4584faa36773bd07bac24acfb39f3c431b36d7e667aa" +dependencies = [ + "thiserror-impl 2.0.3", +] + +[[package]] +name = "thiserror-impl" +version = "1.0.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c0342370b38b6a11b6cc11d6a805569958d54cfa061a29969c3b5ce2ea405724" +checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" dependencies = [ - "thiserror-impl", + "proc-macro2", + "quote", + "syn 2.0.90", ] [[package]] name = "thiserror-impl" -version = "1.0.63" +version = "2.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4558b58466b9ad7ca0f102865eccc95938dca1a74a856f2b57b6629050da261" +checksum = "f077553d607adc1caf65430528a576c757a71ed73944b66ebb58ef2bbd243568" dependencies = [ "proc-macro2", "quote", - "syn 2.0.75", + "syn 2.0.90", ] [[package]] @@ -4979,6 +5793,16 @@ dependencies = [ "time-core", ] +[[package]] +name = "tinystr" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9117f5d4db391c1cf6927e7bea3db74b9a1c1add8f7eda9ffd5364f40f57b82f" +dependencies = [ + "displaydoc", + "zerovec", +] + [[package]] name = "tinyvec" version = "1.8.0" @@ -4996,26 +5820,25 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.38.1" +version = "1.41.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb2caba9f80616f438e09748d5acda951967e1ea58508ef53d9c6402485a46df" +checksum = "22cfb5bee7a6a52939ca9224d6ac897bb669134078daa8735560897f69de4d33" dependencies = [ "backtrace", "bytes", - "num_cpus", "pin-project-lite", "tokio-macros", ] [[package]] name = "tokio-macros" -version = "2.3.0" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f5ae998a069d4b5aba8ee9dad856af7d520c3699e6159b185c2acd48155d39a" +checksum = "693d596312e88961bc67d7f1f97af8a70227d9f90c31bba5806eec004978d752" dependencies = [ "proc-macro2", "quote", - "syn 2.0.75", + "syn 2.0.90", ] [[package]] @@ -5070,7 +5893,7 @@ version = "0.19.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421" dependencies = [ - "indexmap 2.4.0", + "indexmap 2.7.1", "toml_datetime", "winnow 0.5.40", ] @@ -5081,7 +5904,7 @@ version = "0.22.16" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "278f3d518e152219c994ce877758516bca5e118eaed6996192a774fb9fbf0788" dependencies = [ - "indexmap 2.4.0", + "indexmap 2.7.1", "serde", "serde_spanned", "toml_datetime", @@ -5090,9 +5913,9 @@ dependencies = [ [[package]] name = "tracing" -version = "0.1.40" +version = "0.1.41" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef" +checksum = "784e0ac535deb450455cbfa28a6f0df145ea1bb7ae51b821cf5e7927fdcfbdd0" dependencies = [ "log", "pin-project-lite", @@ -5102,13 +5925,13 @@ dependencies = [ [[package]] name = "tracing-attributes" -version = "0.1.27" +version = "0.1.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" +checksum = "395ae124c09f9e6918a2310af6038fba074bcf474ac352496d5910dd59a2226d" dependencies = [ "proc-macro2", "quote", - "syn 2.0.75", + "syn 2.0.90", ] [[package]] @@ -5135,9 +5958,9 @@ dependencies = [ [[package]] name = "tracing-core" -version = "0.1.32" +version = "0.1.33" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c06d3da6113f116aaee68e4d601191614c9053067f9ab7f6edbcb161237daa54" +checksum = "e672c95779cf947c5311f83787af4fa8fffd12fb27e4993211a84bdfd9610f9c" dependencies = [ "once_cell", "valuable", @@ -5166,9 +5989,9 @@ dependencies = [ [[package]] name = "tracing-subscriber" -version = "0.3.18" +version = "0.3.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad0f048c97dbd9faa9b7df56362b8ebcaa52adb06b498c050d2f4e32f90a7a8b" +checksum = "e8189decb5ac0fa7bc8b96b7cb9b2701d60d48805aca84a238004d665fcc4008" dependencies = [ "matchers", "nu-ansi-term", @@ -5223,12 +6046,6 @@ dependencies = [ "version_check", ] -[[package]] -name = "unicode-bidi" -version = "0.3.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08f95100a766bf4f8f28f90d77e0a5461bbdb219042e7679bebe79004fed8d75" - [[package]] name = "unicode-id" version = "0.3.4" @@ -5281,16 +6098,35 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f962df74c8c05a667b5ee8bcf162993134c104e96440b663c8daa176dc772d8c" [[package]] -name = "unsafe-libyaml" -version = "0.2.11" +name = "untrusted" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" + +[[package]] +name = "ureq" +version = "2.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "673aac59facbab8a9007c7f6108d11f63b603f7cabff99fabf650fea5c32b861" +checksum = "b30e6f97efe1fa43535ee241ee76967d3ff6ff3953ebb430d8d55c5393029e7b" +dependencies = [ + "base64 0.22.1", + "flate2", + "litemap", + "log", + "once_cell", + "rustls", + "rustls-pki-types", + "url", + "webpki-roots", + "yoke", + "zerofrom", +] [[package]] name = "url" -version = "2.5.2" +version = "2.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22784dbdf76fdde8af1aeda5622b546b422b6fc585325248a2bf9f5e41e94d6c" +checksum = "32f8b686cadd1473f4bd0117a5d28d36b1ade384ea9b5069a1c40aefed7fda60" dependencies = [ "form_urlencoded", "idna", @@ -5304,6 +6140,18 @@ version = "2.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "daf8dba3b7eb870caf1ddeed7bc9d2a049f3cfdfae7cb521b087cc33ae4c49da" +[[package]] +name = "utf16_iter" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8232dd3cdaed5356e0f716d285e4b40b932ac434100fe9b7e0e8e935b9e6246" + +[[package]] +name = "utf8_iter" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" + [[package]] name = "uuid" version = "1.10.0" @@ -5352,69 +6200,96 @@ checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" [[package]] name = "virtual-fs" -version = "0.16.0" +version = "0.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e60ef133d8336b201a1618252518d81f9e9d30fbe27449dab706699a549216bc" +checksum = "14d2456ec960b74e5b0423159c70dd9796da1445de462013fe03eefd2545b631" dependencies = [ - "anyhow", "async-trait", "bytes", "dashmap 6.1.0", "derivative", "dunce", - "filetime", - "fs_extra", "futures", "getrandom", "indexmap 1.9.3", "lazy_static", - "libc", "pin-project-lite", "replace_with", "shared-buffer", "slab", - "thiserror", + "thiserror 1.0.69", "tokio", "tracing", - "webc", + "wasmer-package 0.2.0", ] [[package]] -name = "virtual-mio" -version = "0.3.1" +name = "virtual-fs" +version = "0.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff8026c9d7575dc9afd8a0907357acb7aa55ec262097fbccae5da42f67773b3c" +checksum = "875dbf2945deb48f93d09ed16896f57c4fa96b9a4344590a3a93f55147a8b8d1" dependencies = [ + "anyhow", "async-trait", "bytes", - "derivative", - "futures", - "mio", - "serde", + "dashmap 6.1.0", + "derive_more 1.0.0", + "dunce", + "filetime", + "fs_extra", + "futures", + "getrandom", + "indexmap 1.9.3", + "lazy_static", + "libc", + "pin-project-lite", + "replace_with", + "shared-buffer", + "slab", + "thiserror 1.0.69", + "tokio", + "tracing", + "wasmer-package 0.4.0", + "webc", +] + +[[package]] +name = "virtual-mio" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a5d846d89208ef272394e6b6706fcea6fe9ce81388b685bdae44dfd590bba16" +dependencies = [ + "async-trait", + "bytes", + "futures", + "mio", + "serde", "socket2", - "thiserror", + "thiserror 1.0.69", "tracing", ] [[package]] name = "virtual-net" -version = "0.8.0" +version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05d9551aa47efdb28093f79845d40858baf5075e4b4a09c7d9c8a0edd42f942b" +checksum = "33d71eb6f3cb7c0c48f9b989cbdcc21bb4face7c96cb8cce8f9234009e742c66" dependencies = [ "anyhow", "async-trait", - "base64 0.21.7", + "base64 0.22.1", "bincode", - "bytecheck", + "bytecheck 0.6.12", "bytes", - "derivative", + "derive_more 1.0.0", "futures-util", + "ipnet", + "iprange", "pin-project-lite", - "rkyv", + "rkyv 0.8.9", "serde", "smoltcp", - "thiserror", + "thiserror 1.0.69", "tokio", "tracing", "virtual-mio", @@ -5516,47 +6391,48 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.95" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "128d1e363af62632b8eb57219c8fd7877144af57558fb2ef0368d0087bddeb2e" +checksum = "1edc8929d7499fc4e8f0be2262a241556cfc54a0bea223790e71446f2aab1ef5" dependencies = [ "cfg-if", "once_cell", + "rustversion", "wasm-bindgen-macro", ] [[package]] name = "wasm-bindgen-backend" -version = "0.2.95" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb6dd4d3ca0ddffd1dd1c9c04f94b868c37ff5fac97c30b97cff2d74fce3a358" +checksum = "2f0a0651a5c2bc21487bde11ee802ccaf4c51935d0d3d42a6101f98161700bc6" dependencies = [ "bumpalo", "log", - "once_cell", "proc-macro2", "quote", - "syn 2.0.75", + "syn 2.0.90", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-futures" -version = "0.4.45" +version = "0.4.50" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc7ec4f8827a71586374db3e87abdb5a2bb3a15afed140221307c3ec06b1f63b" +checksum = "555d470ec0bc3bb57890405e5d4322cc9ea83cebb085523ced7be4144dac1e61" dependencies = [ "cfg-if", "js-sys", + "once_cell", "wasm-bindgen", "web-sys", ] [[package]] name = "wasm-bindgen-macro" -version = "0.2.95" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e79384be7f8f5a9dd5d7167216f022090cf1f9ec128e6e6a482a2cb5c5422c56" +checksum = "7fe63fc6d09ed3792bd0897b314f53de8e16568c2b3f7982f468c0bf9bd0b407" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -5564,41 +6440,45 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.95" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26c6ab57572f7a24a4985830b120de1594465e5d500f24afe89e16b4e833ef68" +checksum = "8ae87ea40c9f689fc23f209965b6fb8a99ad69aeeb0231408be24920604395de" dependencies = [ "proc-macro2", "quote", - "syn 2.0.75", + "syn 2.0.90", "wasm-bindgen-backend", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-shared" -version = "0.2.95" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "65fc09f10666a9f147042251e0dda9c18f166ff7de300607007e96bdebc1068d" +checksum = "1a05d73b933a847d6cccdda8f838a22ff101ad9bf93e33684f39c1f5f0eece3d" +dependencies = [ + "unicode-ident", +] [[package]] name = "wasm-encoder" -version = "0.32.0" +version = "0.216.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ba64e81215916eaeb48fee292f29401d69235d62d8b8fd92a7b2844ec5ae5f7" +checksum = "04c23aebea22c8a75833ae08ed31ccc020835b12a41999e58c31464271b94a88" dependencies = [ "leb128", ] [[package]] name = "wasmer" -version = "4.3.7" +version = "5.0.5-rc1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b28d4251f96ece14460328c56ee0525edcf4bbb08748cfd87fef3580ae4d403" +checksum = "14e31f8a2e0568af0f661825a70f1762098d1c5b0552c4d7205a3e57badf3ae6" dependencies = [ + "bindgen", "bytes", "cfg-if", - "derivative", + "cmake", "indexmap 1.9.3", "js-sys", "more-asserts", @@ -5606,9 +6486,11 @@ dependencies = [ "serde", "serde-wasm-bindgen 0.4.5", "shared-buffer", + "tar", "target-lexicon", - "thiserror", + "thiserror 1.0.69", "tracing", + "ureq", "wasm-bindgen", "wasmer-compiler", "wasmer-compiler-cranelift", @@ -5617,25 +6499,27 @@ dependencies = [ "wasmer-vm", "wat", "windows-sys 0.59.0", + "xz", + "zip", ] [[package]] name = "wasmer-cache" -version = "4.3.7" +version = "5.0.5-rc1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3b1f3ef1d5a81b101513a125b3aede723a6f0991cb1c85d1fcc252aa4ced011" +checksum = "9dcb6700805ede59def89eea7c1dab505fc316807ddf5feab06447b610ebe7e2" dependencies = [ "blake3", "hex", - "thiserror", + "thiserror 1.0.69", "wasmer", ] [[package]] name = "wasmer-compiler" -version = "4.3.7" +version = "5.0.5-rc1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "009b8417d51dbca8ac9a640ea999cc924fc59040a81245ecd0e092cb7c45dc10" +checksum = "7a032262211c8323c9ddb8226e2ecfa410e1e1ba8149c905510111b981ffb5aa" dependencies = [ "backtrace", "bytes", @@ -5645,14 +6529,16 @@ dependencies = [ "lazy_static", "leb128", "libc", - "memmap2 0.5.10", + "memmap2", "more-asserts", + "object 0.32.2", "region", - "rkyv", + "rkyv 0.8.9", "self_cell", "shared-buffer", "smallvec", - "thiserror", + "target-lexicon", + "thiserror 1.0.69", "wasmer-types", "wasmer-vm", "wasmparser", @@ -5662,14 +6548,15 @@ dependencies = [ [[package]] name = "wasmer-compiler-cranelift" -version = "4.3.7" +version = "5.0.5-rc1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2445c6fb03824979448293e91d8a6daf0cdf66e8d996f31ef270e0d2cc3ea1f3" +checksum = "7c919ade1140a342a778eeeb811231ce65c1735e309c0876154f8a4735da6452" dependencies = [ "cranelift-codegen", "cranelift-entity", "cranelift-frontend", - "gimli 0.26.2", + "gimli 0.28.1", + "itertools 0.12.1", "more-asserts", "rayon", "smallvec", @@ -5681,33 +6568,55 @@ dependencies = [ [[package]] name = "wasmer-config" -version = "0.8.0" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "666d97272c1042e20957be5f7e4a42f28ae5367c32a79ae953339335a55512e3" +dependencies = [ + "anyhow", + "bytesize", + "ciborium", + "derive_builder 0.12.0", + "hex", + "indexmap 2.7.1", + "schemars", + "semver 1.0.23", + "serde", + "serde_json", + "serde_yml", + "thiserror 1.0.69", + "toml", + "url", +] + +[[package]] +name = "wasmer-config" +version = "0.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "644b7e3547bd7e796d92220f60bf57734914254c6cee56607e80177a3e8a28da" +checksum = "07fef53fbab864492d9dced0084c2f08631583cf63c68d7b30c88bf36318c074" dependencies = [ "anyhow", "bytesize", "ciborium", "derive_builder 0.12.0", "hex", - "indexmap 2.4.0", + "indexmap 2.7.1", "schemars", "semver 1.0.23", "serde", "serde_json", - "serde_yaml", - "thiserror", + "serde_yml", + "thiserror 1.0.69", "toml", "url", ] [[package]] name = "wasmer-derive" -version = "4.3.7" +version = "5.0.5-rc1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02592d86ac19fb09c972e72edeb3e57ac5c569eac7e77b919b165da014e8c139" +checksum = "fd49fd1afd7c5dd0aa36d91f7e75f5b55331725a1038ca359c6c420d33844313" dependencies = [ - "proc-macro-error", + "proc-macro-error2", "proc-macro2", "quote", "syn 1.0.109", @@ -5715,56 +6624,108 @@ dependencies = [ [[package]] name = "wasmer-journal" -version = "0.9.0" +version = "0.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3045807a8a70da47eb06cb55aad673d5774f87f26ee11b7758d63c54b67bc5f4" +checksum = "73163004796997a188704dbaf7a5d23c83acdc73c341cf817e28fce5e2eaa048" dependencies = [ "anyhow", "async-trait", - "base64 0.21.7", + "base64 0.22.1", "bincode", - "bytecheck", + "bytecheck 0.6.12", "bytes", - "derivative", + "derive_more 1.0.0", "lz4_flex", "num_enum", - "rkyv", + "rkyv 0.8.9", "serde", "serde_json", - "thiserror", + "thiserror 1.0.69", "tracing", - "virtual-fs", + "virtual-fs 0.21.0", "virtual-net", "wasmer", "wasmer-wasix-types", ] +[[package]] +name = "wasmer-package" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "98d05a5cd47f324ed784481d79351e12a02ad3289148dfa72432aa5d394634b8" +dependencies = [ + "anyhow", + "bytes", + "cfg-if", + "ciborium", + "flate2", + "insta", + "semver 1.0.23", + "serde", + "serde_json", + "sha2", + "shared-buffer", + "tar", + "tempfile", + "thiserror 1.0.69", + "toml", + "url", + "wasmer-config 0.10.0", + "webc", +] + +[[package]] +name = "wasmer-package" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c16843df09cce487d0aa8dc8f19c77281cb7d1b929e6a9fd4c3047ddbece0da" +dependencies = [ + "anyhow", + "bytes", + "cfg-if", + "ciborium", + "flate2", + "insta", + "semver 1.0.23", + "serde", + "serde_json", + "sha2", + "shared-buffer", + "tar", + "tempfile", + "thiserror 1.0.69", + "toml", + "url", + "wasmer-config 0.12.0", + "webc", +] + [[package]] name = "wasmer-types" -version = "4.3.7" +version = "5.0.5-rc1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d22a00f1a90e9e66d5427853f41e76d8ab89e03eb3034debd11933607fef56a" +checksum = "2d1acd6dc9529b216159b66b082c574e5dbaf1c188e75b007f947d6d06c64a82" dependencies = [ - "bytecheck", + "bytecheck 0.6.12", "enum-iterator", "enumset", "getrandom", "hex", - "indexmap 1.9.3", + "indexmap 2.7.1", "more-asserts", - "rkyv", + "rkyv 0.8.9", "serde", "sha2", "target-lexicon", - "thiserror", + "thiserror 1.0.69", "xxhash-rust", ] [[package]] name = "wasmer-vm" -version = "4.3.7" +version = "5.0.5-rc1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87d88e8355157cd730fb81e33c3b4d6849fd44c26d32bf78820638e1d935967b" +checksum = "dabeac4f84113353e7e1711dd095d4b47020fd705905c4b084b07f4be1413eb7" dependencies = [ "backtrace", "cc", @@ -5772,10 +6733,9 @@ dependencies = [ "corosensei", "crossbeam-queue", "dashmap 6.1.0", - "derivative", "enum-iterator", "fnv", - "indexmap 1.9.3", + "indexmap 2.7.1", "lazy_static", "libc", "mach2", @@ -5783,29 +6743,28 @@ dependencies = [ "more-asserts", "region", "scopeguard", - "thiserror", + "thiserror 1.0.69", "wasmer-types", "windows-sys 0.59.0", ] [[package]] name = "wasmer-wasix" -version = "0.27.0" +version = "0.35.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dbfe427dbe359e037e1e33ff13b3a5473706e5679df2dbb0e71b5b46c9bb6ce3" +checksum = "1191dad138aff02e330b75918a4ec34332b2974f9012e0959463400a8a84102d" dependencies = [ - "ahash 0.8.11", "anyhow", "async-trait", - "base64 0.21.7", + "base64 0.22.1", "bincode", "blake3", - "bytecheck", + "bytecheck 0.6.12", "bytes", "cfg-if", "cooked-waker", "dashmap 6.1.0", - "derivative", + "derive_more 1.0.0", "futures", "getrandom", "heapless", @@ -5821,32 +6780,33 @@ dependencies = [ "pin-project", "pin-utils", "rand", - "rkyv", + "rkyv 0.8.9", "rusty_pool", "semver 1.0.23", "serde", "serde_derive", "serde_json", - "serde_yaml", + "serde_yml", "sha2", "shared-buffer", "tempfile", "terminal_size 0.3.0", "termios", - "thiserror", + "thiserror 1.0.69", "tokio", "tokio-stream", "toml", "tracing", "url", "urlencoding", - "virtual-fs", + "virtual-fs 0.21.0", "virtual-mio", "virtual-net", "waker-fn", "wasmer", - "wasmer-config", + "wasmer-config 0.12.0", "wasmer-journal", + "wasmer-package 0.4.0", "wasmer-types", "wasmer-wasix-types", "webc", @@ -5857,9 +6817,9 @@ dependencies = [ [[package]] name = "wasmer-wasix-types" -version = "0.27.0" +version = "0.35.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b9304c02de27468ea4154a31f8758343717d03a29d2a620bc652e8217baab75" +checksum = "b109a2a04343e4d421fd764f7a02980273d1e537be3a8e16d59c39e025cfcc5f" dependencies = [ "anyhow", "bitflags 1.3.2", @@ -5881,21 +6841,24 @@ dependencies = [ [[package]] name = "wasmparser" -version = "0.121.2" +version = "0.216.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9dbe55c8f9d0dbd25d9447a5a889ff90c0cc3feaa7395310d3d826b2c703eaab" +checksum = "bcdee6bea3619d311fb4b299721e89a986c3470f804b6d534340e412589028e3" dependencies = [ + "ahash 0.8.11", "bitflags 2.6.0", - "indexmap 2.4.0", + "hashbrown 0.14.5", + "indexmap 2.7.1", "semver 1.0.23", ] [[package]] name = "wast" -version = "64.0.0" +version = "216.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a259b226fd6910225aa7baeba82f9d9933b6d00f2ce1b49b80fa4214328237cc" +checksum = "f7eb1f2eecd913fdde0dc6c3439d0f24530a98ac6db6cb3d14d92a5328554a08" dependencies = [ + "bumpalo", "leb128", "memchr", "unicode-width", @@ -5904,18 +6867,18 @@ dependencies = [ [[package]] name = "wat" -version = "1.0.71" +version = "1.216.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53253d920ab413fca1c7dc2161d601c79b4fdf631d0ba51dd4343bf9b556c3f6" +checksum = "ac0409090fb5154f95fb5ba3235675fd9e579e731524d63b6a2f653e1280c82a" dependencies = [ "wast", ] [[package]] name = "web-sys" -version = "0.3.69" +version = "0.3.77" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77afa9a11836342370f4817622a2f0f418b134426d91a82dfb48f532d2ec13ef" +checksum = "33b6dd2ef9186f1f2072e409e99cd22a975331a6b3591b12c764e0e55c60d5d2" dependencies = [ "js-sys", "wasm-bindgen", @@ -5923,9 +6886,9 @@ dependencies = [ [[package]] name = "webc" -version = "6.0.1" +version = "7.0.0-rc.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c48441419be082f8d2537c84d8b1f502624d77bc08fbbd09ab17cadfe7f0ac53" +checksum = "e6893cbe58d5b97a0daa2dd77055d621db1c8b94fe0f2bbd719c8de747226ea6" dependencies = [ "anyhow", "base64 0.22.1", @@ -5933,7 +6896,6 @@ dependencies = [ "cfg-if", "ciborium", "document-features", - "flate2", "ignore", "indexmap 1.9.3", "leb128", @@ -5942,17 +6904,21 @@ dependencies = [ "once_cell", "path-clean 1.0.1", "rand", - "semver 1.0.23", "serde", "serde_json", "sha2", "shared-buffer", - "tar", - "tempfile", - "thiserror", - "toml", + "thiserror 1.0.69", "url", - "wasmer-config", +] + +[[package]] +name = "webpki-roots" +version = "0.26.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d642ff16b7e79272ae451b7322067cdc17cadf68c23264be9d94a32319efe7e" +dependencies = [ + "rustls-pki-types", ] [[package]] @@ -6001,19 +6967,6 @@ dependencies = [ "windows-targets 0.52.6", ] -[[package]] -name = "windows-sys" -version = "0.33.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "43dbb096663629518eb1dfa72d80243ca5a6aca764cae62a2df70af760a9be75" -dependencies = [ - "windows_aarch64_msvc 0.33.0", - "windows_i686_gnu 0.33.0", - "windows_i686_msvc 0.33.0", - "windows_x86_64_gnu 0.33.0", - "windows_x86_64_msvc 0.33.0", -] - [[package]] name = "windows-sys" version = "0.48.0" @@ -6084,12 +7037,6 @@ version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" -[[package]] -name = "windows_aarch64_msvc" -version = "0.33.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd761fd3eb9ab8cc1ed81e56e567f02dd82c4c837e48ac3b2181b9ffc5060807" - [[package]] name = "windows_aarch64_msvc" version = "0.48.5" @@ -6102,12 +7049,6 @@ version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" -[[package]] -name = "windows_i686_gnu" -version = "0.33.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cab0cf703a96bab2dc0c02c0fa748491294bf9b7feb27e1f4f96340f208ada0e" - [[package]] name = "windows_i686_gnu" version = "0.48.5" @@ -6126,12 +7067,6 @@ version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" -[[package]] -name = "windows_i686_msvc" -version = "0.33.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8cfdbe89cc9ad7ce618ba34abc34bbb6c36d99e96cae2245b7943cd75ee773d0" - [[package]] name = "windows_i686_msvc" version = "0.48.5" @@ -6144,12 +7079,6 @@ version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" -[[package]] -name = "windows_x86_64_gnu" -version = "0.33.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4dd9b0c0e9ece7bb22e84d70d01b71c6d6248b81a3c60d11869451b4cb24784" - [[package]] name = "windows_x86_64_gnu" version = "0.48.5" @@ -6174,12 +7103,6 @@ version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" -[[package]] -name = "windows_x86_64_msvc" -version = "0.33.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff1e4aa646495048ec7f3ffddc411e1d829c026a2ec62b39da15c1055e406eaa" - [[package]] name = "windows_x86_64_msvc" version = "0.48.5" @@ -6210,6 +7133,18 @@ dependencies = [ "memchr", ] +[[package]] +name = "write16" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1890f4022759daae28ed4fe62859b1236caebfc61ede2f63ed4e695f3f6d936" + +[[package]] +name = "writeable" +version = "0.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e9df38ee2d2c3c5948ea468a8406ff0db0b29ae1ffde1bcf20ef305bcc95c51" + [[package]] name = "wyz" version = "0.5.1" @@ -6227,7 +7162,7 @@ checksum = "8da84f1a25939b27f6820d92aed108f83ff920fdf11a7b19366c27c4cda81d4f" dependencies = [ "libc", "linux-raw-sys 0.4.14", - "rustix 0.38.34", + "rustix 0.38.41", ] [[package]] @@ -6236,6 +7171,48 @@ version = "0.8.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "63658493314859b4dfdf3fb8c1defd61587839def09582db50b8a4e93afca6bb" +[[package]] +name = "xz" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c887690ff2a2e233e8e49633461521f98ec57fbff9d59a884c9a4f04ec1da34" +dependencies = [ + "xz2", +] + +[[package]] +name = "xz2" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "388c44dc09d76f1536602ead6d325eb532f5c122f17782bd57fb47baeeb767e2" +dependencies = [ + "lzma-sys", +] + +[[package]] +name = "yoke" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c5b1314b079b0930c31e3af543d8ee1757b1951ae1e1565ec704403a7240ca5" +dependencies = [ + "serde", + "stable_deref_trait", + "yoke-derive", + "zerofrom", +] + +[[package]] +name = "yoke-derive" +version = "0.7.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2380878cad4ac9aac1e2435f3eb4020e8374b5f13c296cb75b4620ff8e229154" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.90", + "synstructure", +] + [[package]] name = "zerocopy" version = "0.7.35" @@ -6254,5 +7231,139 @@ checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.75", + "syn 2.0.90", +] + +[[package]] +name = "zerofrom" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91ec111ce797d0e0784a1116d0ddcdbea84322cd79e5d5ad173daeba4f93ab55" +dependencies = [ + "zerofrom-derive", +] + +[[package]] +name = "zerofrom-derive" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "595eed982f7d355beb85837f651fa22e90b3c044842dc7f2c2842c086f295808" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.90", + "synstructure", +] + +[[package]] +name = "zeroize" +version = "1.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ced3678a2879b30306d323f4542626697a464a97c0a07c9aebf7ebca65cd4dde" +dependencies = [ + "zeroize_derive", +] + +[[package]] +name = "zeroize_derive" +version = "1.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.90", +] + +[[package]] +name = "zerovec" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa2b893d79df23bfb12d5461018d408ea19dfafe76c2c7ef6d4eba614f8ff079" +dependencies = [ + "yoke", + "zerofrom", + "zerovec-derive", +] + +[[package]] +name = "zerovec-derive" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6eafa6dfb17584ea3e2bd6e76e0cc15ad7af12b09abdd1ca55961bed9b1063c6" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.90", +] + +[[package]] +name = "zip" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "99d52293fc86ea7cf13971b3bb81eb21683636e7ae24c729cdaf1b7c4157a352" +dependencies = [ + "aes", + "arbitrary", + "bzip2", + "constant_time_eq", + "crc32fast", + "crossbeam-utils", + "deflate64", + "displaydoc", + "flate2", + "hmac", + "indexmap 2.7.1", + "lzma-rs", + "memchr", + "pbkdf2", + "rand", + "sha1", + "thiserror 2.0.3", + "time", + "zeroize", + "zopfli", + "zstd", +] + +[[package]] +name = "zopfli" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5019f391bac5cf252e93bbcc53d039ffd62c7bfb7c150414d61369afe57e946" +dependencies = [ + "bumpalo", + "crc32fast", + "lockfree-object-pool", + "log", + "once_cell", + "simd-adler32", +] + +[[package]] +name = "zstd" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fcf2b778a664581e31e389454a7072dab1647606d44f7feea22cd5abb9c9f3f9" +dependencies = [ + "zstd-safe", +] + +[[package]] +name = "zstd-safe" +version = "7.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "54a3ab4db68cea366acc5c897c7b4d4d1b8994a9cd6e6f841f8964566a419059" +dependencies = [ + "zstd-sys", +] + +[[package]] +name = "zstd-sys" +version = "2.0.13+zstd.1.5.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38ff0f21cfee8f97d94cef41359e0c89aa6113028ab0291aa8ca0038995a95aa" +dependencies = [ + "cc", + "pkg-config", ] diff --git a/deps/swc/bindings/Cargo.toml b/deps/swc/bindings/Cargo.toml index c16fab680..56f1027ea 100644 --- a/deps/swc/bindings/Cargo.toml +++ b/deps/swc/bindings/Cargo.toml @@ -3,6 +3,7 @@ members = [ "binding_core_node", "binding_core_wasm", "binding_html_node", + "binding_js_interop_node", "binding_minifier_node", "binding_minifier_wasm", "binding_typescript_wasm", @@ -10,36 +11,44 @@ members = [ ] resolver = "2" + [workspace.package] + edition = "2021" + license = "Apache-2.0" + repository = "https://github.com/swc-project/swc.git" + + [workspace.dependencies] anyhow = "1.0.86" backtrace = "0.3" getrandom = "0.2.15" + js-sys = "0.3.77" lightningcss = "1.0.0-alpha.58" napi = { version = "2", default-features = false } napi-build = "2" napi-derive = { version = "2", default-features = false } path-clean = "1.0" quote = "1" + rustc-hash = "2" serde = "1" serde-wasm-bindgen = "0.6.5" serde_json = "1.0.120" sourcemap = "8.0.1" - swc_atoms = "2.0.0" - swc_cached = "1.0.0" - swc_cli_impl = "5.0.0" - swc_common = "4.0.0" - swc_compiler_base = "5.0.0" - swc_config = "1.0.0" - swc_core = "5.0.3" - swc_css_ast = "4.0.1" - swc_css_codegen = "4.0.0" - swc_css_minifier = "4.0.0" - swc_css_parser = "4.0.0" - swc_error_reporters = "5.0.0" - swc_fast_ts_strip = "5.0.0" - swc_html = "5.0.0" - swc_html_ast = "4.0.1" - swc_html_minifier = "5.0.0" + swc_atoms = "3.1.0" + swc_cached = "2.0.0" + swc_cli_impl = "13.0.0" + swc_common = "6.1.0" + swc_compiler_base = "11.0.0" + swc_config = "2.0.0" + swc_core = "13.2.0" + swc_css_ast = "6.0.0" + swc_css_codegen = "6.0.0" + swc_css_minifier = "6.0.0" + swc_css_parser = "6.0.0" + swc_error_reporters = "7.0.0" + swc_fast_ts_strip = "9.0.0" + swc_html = "10.0.0" + swc_html_ast = "6.0.0" + swc_html_minifier = "10.0.0" swc_malloc = "1.0.0" swc_nodejs_common = "1.0.0" tracing = "0.1.40" diff --git a/deps/swc/bindings/binding_core_node/Cargo.toml b/deps/swc/bindings/binding_core_node/Cargo.toml index 1436f1f2e..4090954a7 100644 --- a/deps/swc/bindings/binding_core_node/Cargo.toml +++ b/deps/swc/bindings/binding_core_node/Cargo.toml @@ -39,6 +39,7 @@ napi = { workspace = true, features = ["napi3", "serde-json"] } napi-derive = { workspace = true, features = ["type-def"] } node_macro_deps = { path = "../node_macro_deps" } path-clean = { workspace = true } +rustc-hash = { workspace = true } serde = { workspace = true, features = ["derive"] } serde_json = { workspace = true, features = ["unbounded_depth"] } tracing = { workspace = true, features = ["release_max_level_info"] } diff --git a/deps/swc/bindings/binding_core_node/src/bundle.rs b/deps/swc/bindings/binding_core_node/src/bundle.rs index 93c05d3f1..82b4e5a24 100644 --- a/deps/swc/bindings/binding_core_node/src/bundle.rs +++ b/deps/swc/bindings/binding_core_node/src/bundle.rs @@ -8,6 +8,7 @@ use napi::{ bindgen_prelude::{AbortSignal, AsyncTask, Buffer}, Env, Status, Task, }; +use rustc_hash::FxHashMap; use serde::Deserialize; use swc_core::{ atoms::JsWord, @@ -17,7 +18,7 @@ use swc_core::{ Compiler, PrintArgs, TransformOutput, }, bundler::{BundleKind, Bundler, Load, ModuleRecord, Resolve}, - common::{collections::AHashMap, Globals, Span, GLOBALS}, + common::{Globals, Span, GLOBALS}, ecma::{ ast::{ Bool, Expr, IdentName, KeyValueProp, Lit, MemberExpr, MemberProp, MetaPropExpr, @@ -52,8 +53,8 @@ pub(crate) struct BundleTask { #[cfg(feature = "swc_v1")] #[napi] impl Task for BundleTask { - type JsValue = AHashMap; - type Output = AHashMap; + type JsValue = FxHashMap; + type Output = FxHashMap; fn compute(&mut self) -> napi::Result { let builtins = if let TargetEnv::Node = self.config.static_items.config.target { @@ -172,8 +173,8 @@ impl Task for BundleTask { #[cfg(feature = "swc_v2")] impl Task for BundleTask { - type JsValue = AHashMap; - type Output = AHashMap; + type JsValue = FxHashMap; + type Output = FxHashMap; fn compute(&mut self) -> napi::Result { todo!() diff --git a/deps/swc/bindings/binding_core_node/src/minify.rs b/deps/swc/bindings/binding_core_node/src/minify.rs index ef7ba2778..057de97d4 100644 --- a/deps/swc/bindings/binding_core_node/src/minify.rs +++ b/deps/swc/bindings/binding_core_node/src/minify.rs @@ -4,13 +4,14 @@ use napi::{ bindgen_prelude::{AbortSignal, AsyncTask, Buffer, External}, Env, JsExternal, JsObject, JsUnknown, Task, }; +use rustc_hash::FxHashMap; use serde::Deserialize; use swc_core::{ base::{ config::{ErrorFormat, JsMinifyOptions}, JsMinifyExtras, TransformOutput, }, - common::{collections::AHashMap, sync::Lrc, FileName, SourceFile, SourceMap}, + common::{sync::Lrc, FileName, SourceFile, SourceMap}, ecma::minifier::option::{MangleCache, SimpleMangleCache}, node::{deserialize_json, get_deserialized, MapErr}, }; @@ -36,7 +37,7 @@ enum MinifyTarget { /// Code to minify. Single(String), /// `{ filename: code }` - Map(AHashMap), + Map(FxHashMap), } impl MinifyTarget { diff --git a/deps/swc/bindings/binding_core_wasm/Cargo.toml b/deps/swc/bindings/binding_core_wasm/Cargo.toml index f7ce3d6f3..d8cc3d692 100644 --- a/deps/swc/bindings/binding_core_wasm/Cargo.toml +++ b/deps/swc/bindings/binding_core_wasm/Cargo.toml @@ -1,12 +1,12 @@ [package] authors = ["강동윤 "] description = "wasm module for swc" -edition = "2021" -license = "Apache-2.0" +edition = { workspace = true } +license = { workspace = true } name = "binding_core_wasm" publish = false -repository = "https://github.com/swc-project/swc.git" -version = "1.9.2" +repository = { workspace = true } +version = "1.10.15" [lib] bench = false diff --git a/deps/swc/bindings/binding_js_interop_node/Cargo.toml b/deps/swc/bindings/binding_js_interop_node/Cargo.toml new file mode 100644 index 000000000..838549212 --- /dev/null +++ b/deps/swc/bindings/binding_js_interop_node/Cargo.toml @@ -0,0 +1,51 @@ +[package] +authors = ["강동윤 "] +build = "build.rs" +edition = "2021" +exclude = ["artifacts.json", "index.node"] +license = "Apache-2.0" +name = "binding_js_interop_node" +publish = false +version = "0.1.0" + +[lib] +bench = false +crate-type = ["cdylib"] + +[features] +default = ["swc_v1"] +swc_v1 = ["swc_core/bundler_node_v1"] +swc_v2 = ["swc_core/bundler_node_v2"] + +[build-dependencies] +napi-build = { workspace = true } + +[dependencies] +anyhow = { workspace = true } +backtrace = { workspace = true } +napi = { workspace = true, features = ["napi3", "serde-json", "tokio_rt"] } +napi-derive = { workspace = true, features = ["type-def"] } +node_macro_deps = { path = "../node_macro_deps" } +path-clean = { workspace = true } +serde = { workspace = true, features = ["derive"] } +serde_json = { workspace = true, features = ["unbounded_depth"] } +tracing = { workspace = true, features = ["release_max_level_info"] } +tracing-chrome = { workspace = true } +tracing-futures = { workspace = true } +tracing-subscriber = { workspace = true, features = ["env-filter"] } + +swc_core = { workspace = true, features = [ + "allocator_node", + "ecma_ast", + "ecma_codegen", + "common_concurrent", + "bundler", + "ecma_loader", + "ecma_transforms", + "ecma_visit", + "base_node", + "base_concurrent", +] } +swc_interop_babel = { version = "0.1.0" } +swc_interop_nodejs = { version = "0.1.0" } +swc_malloc = { workspace = true } diff --git a/deps/swc/bindings/binding_js_interop_node/LICENSE b/deps/swc/bindings/binding_js_interop_node/LICENSE new file mode 100644 index 000000000..6a0850490 --- /dev/null +++ b/deps/swc/bindings/binding_js_interop_node/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + +Copyright 2024 SWC contributors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. \ No newline at end of file diff --git a/deps/swc/bindings/binding_js_interop_node/build.rs b/deps/swc/bindings/binding_js_interop_node/build.rs new file mode 100644 index 000000000..a6220cd03 --- /dev/null +++ b/deps/swc/bindings/binding_js_interop_node/build.rs @@ -0,0 +1,29 @@ +use std::{ + env, + fs::File, + io::{BufWriter, Write}, + path::Path, +}; + +extern crate napi_build; + +#[cfg(all(not(feature = "swc_v1"), not(feature = "swc_v2")))] +compile_error!("Please enable swc_v1 or swc_v2 feature"); + +#[cfg(all(feature = "swc_v1", feature = "swc_v2"))] +compile_error!("Features swc_v1 and swc_v2 are incompatible"); + +fn main() { + let out_dir = env::var("OUT_DIR").expect("Outdir should exist"); + let dest_path = Path::new(&out_dir).join("triple.txt"); + let mut f = + BufWriter::new(File::create(dest_path).expect("Failed to create target triple text")); + write!( + f, + "{}", + env::var("TARGET").expect("Target should be specified") + ) + .expect("Failed to write target triple text"); + + napi_build::setup(); +} diff --git a/deps/swc/bindings/binding_js_interop_node/src/lib.rs b/deps/swc/bindings/binding_js_interop_node/src/lib.rs new file mode 100644 index 000000000..46937da12 --- /dev/null +++ b/deps/swc/bindings/binding_js_interop_node/src/lib.rs @@ -0,0 +1,45 @@ +#![recursion_limit = "2048"] +#![allow(dead_code)] + +#[macro_use] +extern crate napi_derive; + +extern crate swc_malloc; + +use std::{env, panic::set_hook, sync::Arc}; + +use backtrace::Backtrace; +use swc_core::{ + base::Compiler, + common::{sync::Lazy, FilePathMapping, SourceMap}, +}; + +mod transform; +mod util; + +static COMPILER: Lazy> = Lazy::new(|| { + let cm = Arc::new(SourceMap::new(FilePathMapping::empty())); + + Arc::new(Compiler::new(cm)) +}); + +#[napi::module_init] +fn init() { + if cfg!(debug_assertions) || env::var("SWC_DEBUG").unwrap_or_default() == "1" { + set_hook(Box::new(|panic_info| { + let backtrace = Backtrace::new(); + println!("Panic: {:?}\nBacktrace: {:?}", panic_info, backtrace); + })); + } +} + +fn get_compiler() -> Arc { + COMPILER.clone() +} + +/// Hack for `Type Generation` +#[napi(object)] +pub struct TransformOutput { + pub code: String, + pub map: Option, +} diff --git a/deps/swc/bindings/binding_js_interop_node/src/transform.rs b/deps/swc/bindings/binding_js_interop_node/src/transform.rs new file mode 100644 index 000000000..afb744491 --- /dev/null +++ b/deps/swc/bindings/binding_js_interop_node/src/transform.rs @@ -0,0 +1,109 @@ +use std::path::Path; + +use napi::{Env, JsBuffer, JsBufferValue, JsFunction, JsObject, Ref}; +use swc_core::{base::config::Options, common::FileName, node::MapErr}; +use swc_interop_babel::transform::{JsTrasnform, TransformOutput}; +use tracing::instrument; + +use crate::{get_compiler, util::try_with}; + +fn apply_swc(input: TransformOutput, options: Ref) -> napi::Result { + let c = get_compiler(); + let mut options: Options = serde_json::from_slice(options.as_ref())?; + if !options.filename.is_empty() { + options.config.adjust(Path::new(&options.filename)); + } + + let error_format = options.experimental.error_format.unwrap_or_default(); + + try_with( + c.cm.clone(), + !options.config.error.filename.into_bool(), + error_format, + |handler| { + c.run(|| { + let fm = c.cm.new_source_file( + if options.filename.is_empty() { + FileName::Anon.into() + } else { + FileName::Real(options.filename.clone().into()).into() + }, + input.code, + ); + + let output = c.process_js_file(fm, handler, &options)?; + + Ok(TransformOutput { + code: output.code, + map: output.map, + }) + }) + }, + ) + .convert_err() +} + +#[napi] +#[instrument(level = "trace", skip_all)] +pub fn transform_3_times( + env: Env, + src: String, + first_options: JsBuffer, + babel_transform: JsFunction, + third_options: JsBuffer, +) -> napi::Result { + let first_options = first_options.into_ref()?; + let third_options = third_options.into_ref()?; + let babel_hook = JsTrasnform::new(&env, &babel_transform)?; + + env.spawn_future(async move { + let input = TransformOutput { + code: src, + map: None, + }; + + let output = apply_swc(input, first_options)?; + + let output = babel_hook.transform(output).await?; + + apply_swc(output, third_options) + }) +} + +#[napi] +#[instrument(level = "trace", skip_all)] +pub fn transform_2_times( + env: Env, + src: String, + first_options: JsBuffer, + babel_transform: JsFunction, +) -> napi::Result { + let first_options = first_options.into_ref()?; + let babel_hook = JsTrasnform::new(&env, &babel_transform)?; + + env.spawn_future(async move { + let input = TransformOutput { + code: src, + map: None, + }; + + let output = apply_swc(input, first_options)?; + + babel_hook.transform(output).await + }) +} + +#[napi] +#[instrument(level = "trace", skip_all)] +pub fn transform_once(env: Env, src: String, first_options: JsBuffer) -> napi::Result { + let first_options = first_options.into_ref()?; + + env.spawn_future(async move { + let input = TransformOutput { + code: src, + map: None, + }; + + apply_swc(input, first_options) + }) +} diff --git a/deps/swc/bindings/binding_js_interop_node/src/util.rs b/deps/swc/bindings/binding_js_interop_node/src/util.rs new file mode 100644 index 000000000..8f2a621b3 --- /dev/null +++ b/deps/swc/bindings/binding_js_interop_node/src/util.rs @@ -0,0 +1,114 @@ +#![deny(warnings)] + +use std::panic::{catch_unwind, AssertUnwindSafe}; + +use anyhow::{anyhow, Error}; +use napi::Env; +use swc_core::{ + base::{config::ErrorFormat, try_with_handler}, + common::{ + errors::Handler, + sync::{Lrc, OnceCell}, + SourceMap, GLOBALS, + }, +}; +use tracing::instrument; +use tracing_chrome::ChromeLayerBuilder; +use tracing_subscriber::{ + filter, prelude::__tracing_subscriber_SubscriberExt, util::SubscriberInitExt, EnvFilter, Layer, +}; + +static TARGET_TRIPLE: &str = include_str!(concat!(env!("OUT_DIR"), "/triple.txt")); +static CUSTOM_TRACE_SUBSCRIBER: OnceCell = OnceCell::new(); + +#[napi] +pub fn get_target_triple() -> napi::Result { + Ok(TARGET_TRIPLE.to_string()) +} + +#[napi] +pub fn init_custom_trace_subscriber( + mut env: Env, + trace_out_file_path: Option, +) -> napi::Result<()> { + CUSTOM_TRACE_SUBSCRIBER.get_or_init(|| { + let mut layer = ChromeLayerBuilder::new().include_args(true); + if let Some(trace_out_file) = trace_out_file_path { + layer = layer.file(trace_out_file); + } + + let (chrome_layer, guard) = layer.build(); + tracing_subscriber::registry() + .with(chrome_layer.with_filter(filter::filter_fn(|metadata| { + !metadata.target().contains("cranelift") && !metadata.name().contains("log ") + }))) + .try_init() + .expect("Failed to register tracing subscriber"); + + env.add_env_cleanup_hook(guard, |flush_guard| { + flush_guard.flush(); + drop(flush_guard); + }) + .expect("Should able to initialize cleanup for custom trace subscriber"); + + true + }); + + Ok(()) +} + +#[instrument(level = "trace", skip_all)] +pub fn try_with( + cm: Lrc, + skip_filename: bool, + _error_format: ErrorFormat, + op: F, +) -> Result +where + F: FnOnce(&Handler) -> Result, +{ + GLOBALS.set(&Default::default(), || { + try_with_handler( + cm, + swc_core::base::HandlerOpts { + skip_filename, + ..Default::default() + }, + |handler| { + // + let result = catch_unwind(AssertUnwindSafe(|| op(handler))); + + let p = match result { + Ok(v) => return v, + Err(v) => v, + }; + + if let Some(s) = p.downcast_ref::() { + Err(anyhow!("failed to handle: {}", s)) + } else if let Some(s) = p.downcast_ref::<&str>() { + Err(anyhow!("failed to handle: {}", s)) + } else { + Err(anyhow!("failed to handle with unknown panic message")) + } + }, + ) + }) +} + +// This was originally under swc_nodejs_common, but this is not a public +// interface for the custom binary - they should choose own trace initialization +// instead. Will keep as hidden for now until there's proper usecase. + +/// Trying to initialize default subscriber if global dispatch is not set. +/// This can be called multiple time, however subsequent calls will be ignored +/// as tracing_subscriber only allows single global dispatch. +pub fn init_default_trace_subscriber() { + let _unused = tracing_subscriber::FmtSubscriber::builder() + .without_time() + .with_target(false) + .with_writer(std::io::stderr) + .with_ansi(true) + .with_env_filter(EnvFilter::from_env("SWC_LOG")) + .pretty() + .try_init(); +} diff --git a/deps/swc/bindings/binding_minifier_node/Cargo.toml b/deps/swc/bindings/binding_minifier_node/Cargo.toml index cc3027537..1bdb977a2 100644 --- a/deps/swc/bindings/binding_minifier_node/Cargo.toml +++ b/deps/swc/bindings/binding_minifier_node/Cargo.toml @@ -22,6 +22,7 @@ napi = { workspace = true, features = ["napi3", "serde-json"] } napi-derive = { workspace = true, features = ["type-def"] } node_macro_deps = { path = "../node_macro_deps" } path-clean = { workspace = true } +rustc-hash = { workspace = true } serde = { workspace = true, features = ["derive"] } serde_json = { workspace = true, features = ["unbounded_depth"] } sourcemap = { workspace = true } diff --git a/deps/swc/bindings/binding_minifier_node/src/minify.rs b/deps/swc/bindings/binding_minifier_node/src/minify.rs index 7cb2181bb..3bd72b76e 100644 --- a/deps/swc/bindings/binding_minifier_node/src/minify.rs +++ b/deps/swc/bindings/binding_minifier_node/src/minify.rs @@ -5,6 +5,7 @@ use napi::{ bindgen_prelude::{AbortSignal, AsyncTask, Buffer, External}, JsObject, Task, }; +use rustc_hash::FxHashMap; use serde::Deserialize; use swc_compiler_base::{ minify_file_comments, parse_js, IdentCollector, PrintArgs, SourceMapsConfig, TransformOutput, @@ -13,7 +14,6 @@ use swc_config::config_types::BoolOr; use swc_core::{ base::JsMinifyExtras, common::{ - collections::AHashMap, comments::{Comments, SingleThreadedComments}, sync::Lrc, FileName, Mark, SourceFile, SourceMap, @@ -50,7 +50,7 @@ enum MinifyTarget { /// Code to minify. Single(String), /// `{ filename: code }` - Map(AHashMap), + Map(FxHashMap), } impl MinifyTarget { @@ -212,7 +212,11 @@ fn do_work( .clone() .into_inner() .unwrap_or(BoolOr::Data(JsMinifyCommentOption::PreserveSomeComments)); - minify_file_comments(&comments, preserve_comments); + minify_file_comments( + &comments, + preserve_comments, + options.format.preserve_annotations, + ); swc_compiler_base::print( cm.clone(), diff --git a/deps/swc/bindings/binding_minifier_wasm/Cargo.toml b/deps/swc/bindings/binding_minifier_wasm/Cargo.toml index a388bb92e..ea2271000 100644 --- a/deps/swc/bindings/binding_minifier_wasm/Cargo.toml +++ b/deps/swc/bindings/binding_minifier_wasm/Cargo.toml @@ -1,12 +1,12 @@ [package] authors = ["강동윤 "] description = "wasm module for swc" -edition = "2021" -license = "Apache-2.0" +edition = { workspace = true } +license = { workspace = true } name = "binding_minifier_wasm" publish = false -repository = "https://github.com/swc-project/swc.git" -version = "1.9.2" +repository = { workspace = true } +version = "1.10.15" [lib] bench = false diff --git a/deps/swc/bindings/binding_typescript_wasm/Cargo.toml b/deps/swc/bindings/binding_typescript_wasm/Cargo.toml index 339f5b0e9..85fb489db 100644 --- a/deps/swc/bindings/binding_typescript_wasm/Cargo.toml +++ b/deps/swc/bindings/binding_typescript_wasm/Cargo.toml @@ -1,12 +1,12 @@ [package] authors = ["강동윤 "] description = "wasm module for swc" -edition = "2021" -license = "Apache-2.0" +edition = { workspace = true } +license = { workspace = true } name = "binding_typescript_wasm" publish = false -repository = "https://github.com/swc-project/swc.git" -version = "1.9.2" +repository = { workspace = true } +version = "1.10.15" [lib] bench = false @@ -17,6 +17,7 @@ crate-type = ["cdylib"] [dependencies] anyhow = { workspace = true } getrandom = { workspace = true, features = ["js"] } +js-sys = { workspace = true } serde = { workspace = true, features = ["derive"] } serde-wasm-bindgen = { workspace = true } serde_json = { workspace = true } diff --git a/deps/swc/bindings/binding_typescript_wasm/__tests__/__snapshots__/transform.js.snap b/deps/swc/bindings/binding_typescript_wasm/__tests__/__snapshots__/transform.js.snap index 7b5b95a0c..05cb41d2f 100644 --- a/deps/swc/bindings/binding_typescript_wasm/__tests__/__snapshots__/transform.js.snap +++ b/deps/swc/bindings/binding_typescript_wasm/__tests__/__snapshots__/transform.js.snap @@ -1,5 +1,17 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP +exports[`transform in strip-only mode should not emit 'Caused by: failed to parse' 1`] = ` +{ + "code": "InvalidSyntax", + "message": " x await isn't allowed in non-async function + ,---- + 1 | function foo() { await Promise.resolve(1); } + : ^^^^^^^ + \`---- +", +} +`; + exports[`transform in strip-only mode should remove declare enum 1`] = ` { "code": " ", @@ -26,6 +38,32 @@ exports[`transform in strip-only mode should remove declare enum 3`] = ` } `; +exports[`transform in strip-only mode should report correct error for syntax error 1`] = ` +{ + "code": "InvalidSyntax", + "message": " x Expected ';', '}' or + ,---- + 1 | function foo() { invalid syntax } + : ^^^|^^^ ^^^^^^ + : \`-- This is the expression part of an expression statement + \`---- +", +} +`; + +exports[`transform in strip-only mode should report correct error for unsupported syntax 1`] = ` +{ + "code": "UnsupportedSyntax", + "message": " x TypeScript enum is not supported in strip-only mode + ,-[1:1] + 1 | ,-> enum Foo { + 2 | | a, b + 3 | \`-> } + \`---- +", +} +`; + exports[`transform in strip-only mode should strip complex expressions 1`] = ` { "code": "const foo = { @@ -80,30 +118,39 @@ exports[`transform in strip-only mode should strip type declarations 1`] = ` `; exports[`transform in strip-only mode should throw an error when it encounters a module 1`] = ` -" x TypeScript namespace declaration is not supported in strip-only mode +{ + "code": "UnsupportedSyntax", + "message": " x TypeScript namespace declaration is not supported in strip-only mode ,---- - 1 | module foo {} - : ^^^^^^^^^^^^^ + 1 | module foo { export const m = 1; } + : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ \`---- -" +", +} `; exports[`transform in strip-only mode should throw an error when it encounters a namespace 1`] = ` -" x TypeScript namespace declaration is not supported in strip-only mode +{ + "code": "UnsupportedSyntax", + "message": " x TypeScript namespace declaration is not supported in strip-only mode ,---- - 1 | namespace Foo {} - : ^^^^^^^^^^^^^^^^ + 1 | namespace Foo { export const m = 1; } + : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ \`---- -" +", +} `; exports[`transform in strip-only mode should throw an error when it encounters an enum 1`] = ` -" x TypeScript enum is not supported in strip-only mode +{ + "code": "UnsupportedSyntax", + "message": " x TypeScript enum is not supported in strip-only mode ,---- 1 | enum Foo {} : ^^^^^^^^^^^ \`---- -" +", +} `; exports[`transform should strip types 1`] = ` diff --git a/deps/swc/bindings/binding_typescript_wasm/__tests__/transform.js b/deps/swc/bindings/binding_typescript_wasm/__tests__/transform.js index b1bc08abe..8f230d232 100644 --- a/deps/swc/bindings/binding_typescript_wasm/__tests__/transform.js +++ b/deps/swc/bindings/binding_typescript_wasm/__tests__/transform.js @@ -13,7 +13,7 @@ describe("transform", () => { export const foo: number = 1; type Foo = number; `, - {} + {}, ); expect(code).toMatchSnapshot(); }); @@ -21,15 +21,15 @@ describe("transform", () => { describe("in strip-only mode", () => { it("should remove declare enum", async () => { await expect( - swc.transform(`declare enum Foo {}`, {}) + swc.transform(`declare enum Foo {}`, {}), ).resolves.toMatchSnapshot(); await expect( swc.transform( `declare enum Foo { A }`, - {} - ) + {}, + ), ).resolves.toMatchSnapshot(); expect( swc.transform( @@ -37,8 +37,8 @@ describe("transform", () => { a = 2, b, }`, - {} - ) + {}, + ), ).resolves.toMatchSnapshot(); }); @@ -49,8 +49,8 @@ describe("transform", () => { type Foo = number; type Bar = string; const bar: Bar = "bar";`, - {} - ) + {}, + ), ).resolves.toMatchSnapshot(); }); @@ -59,8 +59,8 @@ describe("transform", () => { swc.transform( `const foo = 1; const bar: Bar = "bar";`, - {} - ) + {}, + ), ).resolves.toMatchSnapshot(); }); @@ -69,8 +69,8 @@ describe("transform", () => { swc.transform( `const foo = 1 as number; const bar = "bar";`, - {} - ) + {}, + ), ).resolves.toMatchSnapshot(); }); @@ -79,8 +79,8 @@ describe("transform", () => { swc.transform( `const foo = 1!; const bar = "bar";`, - {} - ) + {}, + ), ).resolves.toMatchSnapshot(); }); @@ -89,8 +89,8 @@ describe("transform", () => { swc.transform( `const foo = 1 satisfies number; const bar = "bar";`, - {} - ) + {}, + ), ).resolves.toMatchSnapshot(); }); @@ -102,8 +102,8 @@ describe("transform", () => { bar: "bar" as any as number, } satisfies number; const bar = "bar";`, - {} - ) + {}, + ), ).resolves.toMatchSnapshot(); }); @@ -111,23 +111,52 @@ describe("transform", () => { await expect( swc.transform("enum Foo {}", { mode: "strip-only", - }) + }), ).rejects.toMatchSnapshot(); }); it("should throw an error when it encounters a namespace", async () => { await expect( - swc.transform("namespace Foo {}", { + swc.transform("namespace Foo { export const m = 1; }", { mode: "strip-only", - }) + }), ).rejects.toMatchSnapshot(); }); it("should throw an error when it encounters a module", async () => { await expect( - swc.transform("module foo {}", { + swc.transform("module foo { export const m = 1; }", { mode: "strip-only", - }) + }), + ).rejects.toMatchSnapshot(); + }); + + it("should not emit 'Caused by: failed to parse'", async () => { + await expect( + swc.transform("function foo() { await Promise.resolve(1); }", { + mode: "strip-only", + }), + ).rejects.toMatchSnapshot(); + }); + + it("should report correct error for syntax error", async () => { + await expect( + swc.transform("function foo() { invalid syntax }", { + mode: "strip-only", + }), + ).rejects.toMatchSnapshot(); + }); + + it("should report correct error for unsupported syntax", async () => { + await expect( + swc.transform( + `enum Foo { + a, b + }`, + { + mode: "strip-only", + }, + ), ).rejects.toMatchSnapshot(); }); }); diff --git a/deps/swc/bindings/binding_typescript_wasm/src/lib.rs b/deps/swc/bindings/binding_typescript_wasm/src/lib.rs index 0a9a3b35e..88aff8692 100644 --- a/deps/swc/bindings/binding_typescript_wasm/src/lib.rs +++ b/deps/swc/bindings/binding_typescript_wasm/src/lib.rs @@ -1,36 +1,48 @@ use anyhow::Error; +use js_sys::Uint8Array; +use serde::Serialize; use swc_common::{errors::ColorConfig, sync::Lrc, SourceMap, GLOBALS}; use swc_error_reporters::handler::{try_with_handler, HandlerOpts}; -use swc_fast_ts_strip::{Options, TransformOutput}; +use swc_fast_ts_strip::{ErrorCode, Options, TransformOutput, TsError}; use wasm_bindgen::prelude::*; -use wasm_bindgen_futures::{ - future_to_promise, - js_sys::{JsString, Promise}, -}; +use wasm_bindgen_futures::{future_to_promise, js_sys::Promise}; /// Custom interface definitions for the @swc/wasm's public interface instead of /// auto generated one, which is not reflecting most of types in detail. #[wasm_bindgen(typescript_custom_section)] const INTERFACE_DEFINITIONS: &'static str = r#" -export declare function transform(src: string, opts?: Options): Promise; -export declare function transformSync(src: string, opts?: Options): TransformOutput; +export declare function transform(src: string | Uint8Array, opts?: Options): Promise; +export declare function transformSync(src: string | Uint8Array, opts?: Options): TransformOutput; export type { Options, TransformOutput }; "#; #[wasm_bindgen(skip_typescript)] -pub fn transform(input: JsString, options: JsValue) -> Promise { +pub fn transform(input: JsValue, options: JsValue) -> Promise { future_to_promise(async move { transform_sync(input, options) }) } #[wasm_bindgen(js_name = "transformSync", skip_typescript)] -pub fn transform_sync(input: JsString, options: JsValue) -> Result { +pub fn transform_sync(input: JsValue, options: JsValue) -> Result { let options: Options = if options.is_falsy() { Default::default() } else { serde_wasm_bindgen::from_value(options)? }; - let input = input.as_string().unwrap(); + let input = match input.as_string() { + Some(input) => input, + None => { + if input.is_instance_of::() { + let input = input.unchecked_into::(); + match input.to_string().as_string() { + Some(input) => input, + None => return Err(JsValue::from_str("Input Uint8Array is not valid utf-8")), + } + } else { + return Err(JsValue::from_str("Input is not a string or Uint8Array")); + } + } + }; let result = GLOBALS .set(&Default::default(), || operate(input, options)) @@ -48,10 +60,26 @@ fn operate(input: String, options: Options) -> Result { color: ColorConfig::Never, skip_filename: true, }, - |handler| swc_fast_ts_strip::operate(&cm, handler, input, options), + |handler| { + swc_fast_ts_strip::operate(&cm, handler, input, options).map_err(anyhow::Error::new) + }, ) } +#[derive(Debug, Serialize)] +struct ErrorObject { + code: ErrorCode, + message: String, +} + pub fn convert_err(err: Error) -> wasm_bindgen::prelude::JsValue { - format!("{:?}", err).into() + if let Some(ts_error) = err.downcast_ref::() { + return serde_wasm_bindgen::to_value(&ErrorObject { + code: ts_error.code, + message: err.to_string(), + }) + .unwrap(); + } + + format!("{}", err).into() } diff --git a/deps/swc/bindings/swc_cli/Cargo.toml b/deps/swc/bindings/swc_cli/Cargo.toml index 2d4a2b341..7fc29d955 100644 --- a/deps/swc/bindings/swc_cli/Cargo.toml +++ b/deps/swc/bindings/swc_cli/Cargo.toml @@ -1,12 +1,12 @@ [package] authors = ["강동윤 ", "OJ Kwon "] description = "Commandline for SWC" -edition = "2021" +edition = { workspace = true } include = ["Cargo.toml", "src/**/*.rs"] -license = "Apache-2.0" +license = { workspace = true } name = "swc_cli" -repository = "https://github.com/swc-project/swc.git" -version = "0.91.445" +repository = { workspace = true } +version = "0.91.480" [[bin]] bench = false diff --git a/deps/swc/xtask/Cargo.toml b/deps/swc/xtask/Cargo.toml index 79f4edccd..ca799d80a 100644 --- a/deps/swc/xtask/Cargo.toml +++ b/deps/swc/xtask/Cargo.toml @@ -1,11 +1,11 @@ [package] authors = ["강동윤 "] description = "Tasks for the swc project" -edition = "2021" -license = "Apache-2.0" +edition = { workspace = true } +license = { workspace = true } name = "xtask" publish = false -repository = "https://github.com/swc-project/swc.git" +repository = { workspace = true } version = "0.1.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html