From bc8c73cb2de189e8fe45dbc054e5c32d814b1702 Mon Sep 17 00:00:00 2001 From: hardfist Date: Sun, 22 Sep 2024 14:48:37 +0800 Subject: [PATCH] chore: increase workers --- Cargo.lock | 73 +++++++++++++++++++++++++++++++++++------------------- Cargo.toml | 2 +- 2 files changed, 49 insertions(+), 26 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index cd8228ef9328..05599a17c779 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2050,6 +2050,22 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7843ec2de400bcbc6a6328c958dc38e5359da6e93e72e37bc5246bf1ae776389" +[[package]] +name = "napi" +version = "2.16.2" +source = "git+https://github.com/hardfist/napi-rs?branch=yj/increase-worker#b9e9c60c145ca5466c8058c1e918ea599b38829f" +dependencies = [ + "anyhow", + "bitflags 2.5.0", + "ctor", + "napi-derive 2.16.0 (git+https://github.com/hardfist/napi-rs?branch=yj/increase-worker)", + "napi-sys", + "once_cell", + "serde", + "serde_json", + "tokio", +] + [[package]] name = "napi-build" version = "2.1.2" @@ -2064,7 +2080,20 @@ checksum = "05bb7c37e3c1dda9312fdbe4a9fc7507fca72288ba154ec093e2d49114e727ce" dependencies = [ "cfg-if", "convert_case", - "napi-derive-backend", + "napi-derive-backend 1.0.62 (registry+https://github.com/rust-lang/crates.io-index)", + "proc-macro2", + "quote", + "syn 2.0.63", +] + +[[package]] +name = "napi-derive" +version = "2.16.0" +source = "git+https://github.com/hardfist/napi-rs?branch=yj/increase-worker#b9e9c60c145ca5466c8058c1e918ea599b38829f" +dependencies = [ + "cfg-if", + "convert_case", + "napi-derive-backend 1.0.62 (git+https://github.com/hardfist/napi-rs?branch=yj/increase-worker)", "proc-macro2", "quote", "syn 2.0.63", @@ -2086,27 +2115,21 @@ dependencies = [ ] [[package]] -name = "napi-h" -version = "2.16.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8122073a4a01e851f0a9bbc4322b8f8cdf6f9faafc260f005cfd782098aff4fb" +name = "napi-derive-backend" +version = "1.0.62" +source = "git+https://github.com/hardfist/napi-rs?branch=yj/increase-worker#b9e9c60c145ca5466c8058c1e918ea599b38829f" dependencies = [ - "anyhow", - "bitflags 2.5.0", - "ctor", - "napi-derive", - "napi-sys", + "convert_case", "once_cell", - "serde", - "serde_json", - "tokio", + "proc-macro2", + "quote", + "syn 2.0.63", ] [[package]] name = "napi-sys" -version = "2.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "427802e8ec3a734331fec1035594a210ce1ff4dc5bc1950530920ab717964ea3" +version = "2.3.0" +source = "git+https://github.com/hardfist/napi-rs?branch=yj/increase-worker#b9e9c60c145ca5466c8058c1e918ea599b38829f" dependencies = [ "libloading", ] @@ -2952,8 +2975,8 @@ dependencies = [ "cow-utils", "derivative", "glob", - "napi-derive", - "napi-h", + "napi", + "napi-derive 2.16.0 (registry+https://github.com/rust-lang/crates.io-index)", "rspack_binding_values", "rspack_collections", "rspack_core", @@ -3021,8 +3044,8 @@ dependencies = [ "cow-utils", "futures", "heck 0.5.0", - "napi-derive", - "napi-h", + "napi", + "napi-derive 2.16.0 (registry+https://github.com/rust-lang/crates.io-index)", "rspack_collections", "rspack_core", "rspack_error", @@ -3147,9 +3170,9 @@ name = "rspack_fs_node" version = "0.1.0" dependencies = [ "futures", + "napi", "napi-build", - "napi-derive", - "napi-h", + "napi-derive 2.16.0 (registry+https://github.com/rust-lang/crates.io-index)", "rspack_fs", "rspack_napi", "rspack_paths", @@ -3317,7 +3340,7 @@ dependencies = [ name = "rspack_napi" version = "0.1.0" dependencies = [ - "napi-h", + "napi", "oneshot", "rspack_error", "rspack_regex", @@ -3340,9 +3363,9 @@ dependencies = [ "async-trait", "color-backtrace", "cow-utils", + "napi", "napi-build", - "napi-derive", - "napi-h", + "napi-derive 2.16.0 (registry+https://github.com/rust-lang/crates.io-index)", "once_cell", "ropey", "rspack_allocator", diff --git a/Cargo.toml b/Cargo.toml index 31b0f6d3f24c..375e2baf3a46 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -68,7 +68,7 @@ ustr = { package = "ustr-fxhash", version = "1.0.0" } xxhash-rust = { version = "0.8.10" } # Pinned -napi = { package = "napi-h", version = "=2.16.1" } +napi = { version = "=2.16.2", git = "https://github.com/hardfist/napi-rs", branch = "yj/increase-worker"} napi-build = { version = "2" } napi-derive = { version = "2" }