From e7849dbc6a68274ec5f177f061da80bdf8788902 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Tue, 20 Dec 2022 15:03:41 +0800 Subject: [PATCH] build(bindings): Crash in GraalVM (#6689) --- Cargo.lock | 28 +++++++++++++++++++--------- bindings/Cargo.lock | 4 ++-- package.json | 2 +- yarn.lock | 10 +++++----- 4 files changed, 27 insertions(+), 17 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b97248f6a2f..7771e4591b2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -451,9 +451,12 @@ checksum = "245097e9a4535ee1e3e3931fcfcd55a796a44c643e8596ff6566d68f09b87bbc" [[package]] name = "convert_case" -version = "0.5.0" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb4a24b1aaf0fd0ce8b45161144d6f42cd91677fd5940fd431183eb023b3a2b8" +checksum = "ec182b0ca2f35d8fc196cf3404988fd8b8c739a4d270ff118a398feb0cbec1ca" +dependencies = [ + "unicode-segmentation", +] [[package]] name = "copyless" @@ -1778,13 +1781,14 @@ checksum = "7843ec2de400bcbc6a6328c958dc38e5359da6e93e72e37bc5246bf1ae776389" [[package]] name = "napi" -version = "2.5.0" +version = "2.10.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec369bd2ae196a21bb08fb53761e637862c3c0699da9cd21b6d954e32dda04b3" +checksum = "a967e17e9ba4e015a7bf9b92f90aa8dc321c6d913f6a6d2afd5b66a8ab36fc81" dependencies = [ + "bitflags", "ctor", - "lazy_static", "napi-sys", + "once_cell", "serde", "serde_json", "thread_local", @@ -1792,9 +1796,9 @@ dependencies = [ [[package]] name = "napi-derive" -version = "2.5.0" +version = "2.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c0308f2313ee504b032bad9c75343d967e6ba27be2e3f19e89bb0ee8786b5b0" +checksum = "af4e44e34e70aa61be9036ae652e27c20db5bca80e006be0f482419f6601352a" dependencies = [ "convert_case", "napi-derive-backend", @@ -1805,9 +1809,9 @@ dependencies = [ [[package]] name = "napi-derive-backend" -version = "1.0.33" +version = "1.0.40" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c97606e865ebfca1c5d0c952e34969ca26b3c8ba0c246c569a2fc945719a78ea" +checksum = "17925fff04b6fa636f8e4b4608cc1a4f1360b64ac8ecbfdb7da1be1dc74f6843" dependencies = [ "convert_case", "once_cell", @@ -4956,6 +4960,12 @@ dependencies = [ "tinyvec", ] +[[package]] +name = "unicode-segmentation" +version = "1.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fdbf052a0783de01e944a6ce7a8cb939e295b1e7be835a1112c3b9a7f047a5a" + [[package]] name = "unicode-width" version = "0.1.9" diff --git a/bindings/Cargo.lock b/bindings/Cargo.lock index b0a02aeea64..c0c10985e8e 100644 --- a/bindings/Cargo.lock +++ b/bindings/Cargo.lock @@ -1405,9 +1405,9 @@ checksum = "7843ec2de400bcbc6a6328c958dc38e5359da6e93e72e37bc5246bf1ae776389" [[package]] name = "napi" -version = "2.10.2" +version = "2.10.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dec831c6698ea8a0376ce7499499b9f562d2f35c2072da183f63373a0905dcc3" +checksum = "a967e17e9ba4e015a7bf9b92f90aa8dc321c6d913f6a6d2afd5b66a8ab36fc81" dependencies = [ "bitflags", "ctor", diff --git a/package.json b/package.json index cd8383c4677..5af3433a054 100644 --- a/package.json +++ b/package.json @@ -94,7 +94,7 @@ "@babel/preset-react": "^7.13.13", "@babel/preset-typescript": "^7.13.0", "@babel/types": "^7.14.0", - "@napi-rs/cli": "^2.10.0", + "@napi-rs/cli": "^2.13.3", "@swc/core": "=1.2.220", "@swc/helpers": "^0.4.2", "@swc/plugin-jest": "1.5.25", diff --git a/yarn.lock b/yarn.lock index 359b0013e25..f73ef1e8645 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2124,12 +2124,12 @@ __metadata: languageName: node linkType: hard -"@napi-rs/cli@npm:^2.10.0": - version: 2.12.0 - resolution: "@napi-rs/cli@npm:2.12.0" +"@napi-rs/cli@npm:^2.13.3": + version: 2.13.3 + resolution: "@napi-rs/cli@npm:2.13.3" bin: napi: scripts/index.js - checksum: 88e4cb33022ad9f2185a3e539d2b692f0c5edaeb55d8ecf2c92e512d1a68770f97d0d56ff7aa24595e83c783cbd8509309968052671b79bbed780340b9201c8f + checksum: b16c3b307927b68adfe378bd76153b75c4a1a9d4101d7c49e0b1b9d425ce0f63a6d18acb9548d210dd90a4244333666f839d3f27070d3a07d63fa8ae1bfe2f35 languageName: node linkType: hard @@ -2450,7 +2450,7 @@ __metadata: "@babel/preset-react": ^7.13.13 "@babel/preset-typescript": ^7.13.0 "@babel/types": ^7.14.0 - "@napi-rs/cli": ^2.10.0 + "@napi-rs/cli": ^2.13.3 "@swc/core": =1.2.220 "@swc/core-darwin-arm64": 1.2.146 "@swc/core-darwin-x64": 1.2.146