@parcel/rust 2.12.1-canary.3250 → 2.12.1-canary.3252
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +25 -10
- package/package.json +2 -2
- package/parcel-node-bindings.darwin-arm64.node +0 -0
- package/parcel-node-bindings.darwin-x64.node +0 -0
- package/parcel-node-bindings.linux-arm-gnueabihf.node +0 -0
- package/parcel-node-bindings.linux-arm64-gnu.node +0 -0
- package/parcel-node-bindings.linux-arm64-musl.node +0 -0
- package/parcel-node-bindings.linux-x64-gnu.node +0 -0
- package/parcel-node-bindings.linux-x64-musl.node +0 -0
- package/parcel-node-bindings.win32-x64-msvc.node +0 -0
package/index.js
CHANGED
@@ -224,17 +224,32 @@ switch (platform) {
|
|
224
224
|
}
|
225
225
|
break
|
226
226
|
case 'arm':
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
227
|
+
if (isMusl()) {
|
228
|
+
localFileExisted = existsSync(
|
229
|
+
join(__dirname, 'parcel-node-bindings.linux-arm-musleabihf.node')
|
230
|
+
)
|
231
|
+
try {
|
232
|
+
if (localFileExisted) {
|
233
|
+
nativeBinding = require('./parcel-node-bindings.linux-arm-musleabihf.node')
|
234
|
+
} else {
|
235
|
+
nativeBinding = require('@parcel/rust-linux-arm-musleabihf')
|
236
|
+
}
|
237
|
+
} catch (e) {
|
238
|
+
loadError = e
|
239
|
+
}
|
240
|
+
} else {
|
241
|
+
localFileExisted = existsSync(
|
242
|
+
join(__dirname, 'parcel-node-bindings.linux-arm-gnueabihf.node')
|
243
|
+
)
|
244
|
+
try {
|
245
|
+
if (localFileExisted) {
|
246
|
+
nativeBinding = require('./parcel-node-bindings.linux-arm-gnueabihf.node')
|
247
|
+
} else {
|
248
|
+
nativeBinding = require('@parcel/rust-linux-arm-gnueabihf')
|
249
|
+
}
|
250
|
+
} catch (e) {
|
251
|
+
loadError = e
|
235
252
|
}
|
236
|
-
} catch (e) {
|
237
|
-
loadError = e
|
238
253
|
}
|
239
254
|
break
|
240
255
|
case 'riscv64':
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@parcel/rust",
|
3
|
-
"version": "2.12.1-canary.
|
3
|
+
"version": "2.12.1-canary.3252+734a0fab0",
|
4
4
|
"license": "MIT",
|
5
5
|
"publishConfig": {
|
6
6
|
"access": "public"
|
@@ -40,5 +40,5 @@
|
|
40
40
|
"wasm:build": "cargo build -p parcel-node-bindings --target wasm32-unknown-unknown && cp ../../../target/wasm32-unknown-unknown/debug/parcel_node_bindings.wasm .",
|
41
41
|
"wasm:build-release": "CARGO_PROFILE_RELEASE_LTO=true cargo build -p parcel-node-bindings --target wasm32-unknown-unknown --release && wasm-opt --strip-debug -O ../../../target/wasm32-unknown-unknown/release/parcel_node_bindings.wasm -o parcel_node_bindings.wasm"
|
42
42
|
},
|
43
|
-
"gitHead": "
|
43
|
+
"gitHead": "734a0fab0e031acbde47ec89487b09aaff882585"
|
44
44
|
}
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|