build(deps): patch node-crc to resolve native build issues

Add a patch for node-crc@4.0.0 in pnpm-workspace.yaml to address build failures related to native dependency compilation.
This commit is contained in:
MythEclipse
2026-06-08 20:11:34 +07:00
parent 0e79ba0d50
commit 1565a326d0
3 changed files with 46 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
diff --git a/Cargo.toml b/Cargo.toml
index a967508960d8b6b686b23401ea14333b858a675c..d0282a30ee931563a65d774ed783c83d6d2fdd5e 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -3,7 +3,7 @@ name = "node-crc"
version = "4.0.0"
authors = ["Magic Len <len@magiclen.org>"]
edition = "2021"
-rust-version = "1.65"
+rust-version = "1.77.0"
repository = "https://github.com/magiclen/node-crc"
homepage = "https://magiclen.org/node-js-crc/"
keywords = ["nodejs", "crc8", "crc16", "crc32", "crc64"]
+32
View File
@@ -6,6 +6,7 @@ settings:
patchedDependencies:
jsdoc@3.6.11: 5767db51fb66da6e638e03bfcc0d92eaf4cd2b352d87241823ba30e35de60130
node-crc@4.0.0: e2bb29df8f0fa06fd64395bba25a7a1651593fa20201cfda30da0edf783c2c7d
importers:
@@ -151,6 +152,9 @@ importers:
lru-cache:
specifier: ^11.5.1
version: 11.5.1
node-crc:
specifier: ^4.0.0
version: 4.0.0(patch_hash=e2bb29df8f0fa06fd64395bba25a7a1651593fa20201cfda30da0edf783c2c7d)
openai:
specifier: ^6.38.0
version: 6.38.0(ws@8.20.1)(zod@4.4.3)
@@ -1301,6 +1305,11 @@ packages:
peerDependencies:
three: '>= 0.159.0'
'@napi-rs/cli@2.18.4':
resolution: {integrity: sha512-SgJeA4df9DE2iAEpr3M2H0OKl/yjtg1BnRI5/JyowS71tUWhrfSu2LT0V3vlHET+g1hBVlrO60PmEXwUEKp8Mg==}
engines: {node: '>= 10'}
hasBin: true
'@napi-rs/nice-android-arm-eabi@1.1.1':
resolution: {integrity: sha512-kjirL3N6TnRPv5iuHw36wnucNqXAO46dzK9oPb0wj076R5Xm8PfUVA9nAFB5ZNMmfJQJVKACAPd/Z2KYMppthw==}
engines: {node: '>= 10'}
@@ -2228,6 +2237,9 @@ packages:
'@types/ms@2.1.0':
resolution: {integrity: sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==}
'@types/node@22.19.20':
resolution: {integrity: sha512-6tELRwSDYWW9EdZhbeZmYGZ1/7Djkt+Ah3/ScEYT9cDord7UJzasR/4D3VONg9tQI5CDp+/CZC1AXj2pCFOvpw==}
'@types/node@25.8.0':
resolution: {integrity: sha512-TCFSk8IZh+iLX1xtksoBVtdmgL+1IX0fC9BeU4QqFSuNdN/K+HUlhqOzEmSYYpZUVsLYcPqc9KX+60iDuninSQ==}
@@ -4007,6 +4019,10 @@ packages:
node-av@5.2.4:
resolution: {integrity: sha512-L5r+6k+YGvH5MZX8o55JHQbbeRZ+iFieAb1bhKtpa8hrqBEGuSwdkXRwpE4vd414JqVJsq/EQq6s+3qKeviQTg==}
node-crc@4.0.0:
resolution: {integrity: sha512-531jch48okOhmA9a6flMwEuXxmu+gVkRjS2FEvudiB/b40GODQQsG1qUY5aUZTO+dCC0qR3GSPZ7GI3/mXxnrQ==}
engines: {node: '>=20'}
node-fetch@2.7.0:
resolution: {integrity: sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==}
engines: {node: 4.x || >=6.0.0}
@@ -5110,6 +5126,9 @@ packages:
underscore@1.13.8:
resolution: {integrity: sha512-DXtD3ZtEQzc7M8m4cXotyHR+FAS18C64asBYY5vqZexfYryNNnDc02W4hKg3rdQuqOYas1jkseX0+nZXjTXnvQ==}
undici-types@6.21.0:
resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==}
undici-types@7.24.6:
resolution: {integrity: sha512-WRNW+sJgj5OBN4/0JpHFqtqzhpbnV0GuB+OozA9gCL7a993SmU+1JBZCzLNxYsbMfIeDL+lTsphD5jN5N+n0zg==}
@@ -6084,6 +6103,8 @@ snapshots:
promise-worker-transferable: 1.0.4
three: 0.174.0
'@napi-rs/cli@2.18.4': {}
'@napi-rs/nice-android-arm-eabi@1.1.1':
optional: true
@@ -6927,6 +6948,10 @@ snapshots:
'@types/ms@2.1.0': {}
'@types/node@22.19.20':
dependencies:
undici-types: 6.21.0
'@types/node@25.8.0':
dependencies:
undici-types: 7.24.6
@@ -8696,6 +8721,11 @@ snapshots:
transitivePeerDependencies:
- supports-color
node-crc@4.0.0(patch_hash=e2bb29df8f0fa06fd64395bba25a7a1651593fa20201cfda30da0edf783c2c7d):
dependencies:
'@napi-rs/cli': 2.18.4
'@types/node': 22.19.20
node-fetch@2.7.0:
dependencies:
whatwg-url: 5.0.0
@@ -9814,6 +9844,8 @@ snapshots:
underscore@1.13.8: {}
undici-types@6.21.0: {}
undici-types@7.24.6: {}
undici@5.29.0:
+1
View File
@@ -36,3 +36,4 @@ onlyBuiltDependencies:
patchedDependencies:
jsdoc@3.6.11: patches/jsdoc@3.6.11.patch
node-crc@4.0.0: patches/node-crc@4.0.0.patch