Skip to content

Commit

Permalink
add support for linux-{arm64,x64}-musl
Browse files Browse the repository at this point in the history
  • Loading branch information
dherman committed Aug 25, 2024
1 parent d3e65b2 commit 8e38e50
Show file tree
Hide file tree
Showing 6 changed files with 105 additions and 10 deletions.
4 changes: 3 additions & 1 deletion pkgs/cargo-messages/lib/load.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@ module.exports = require('@neon-rs/load').proxy({
'linux-x64-gnu': () => require('@cargo-messages/linux-x64-gnu'),
'linux-arm-gnueabihf': () => require('@cargo-messages/linux-arm-gnueabihf'),
'android-arm-eabi': () => require('@cargo-messages/android-arm-eabi'),
'linux-arm64-gnu': () => require('@cargo-messages/linux-arm64-gnu')
'linux-arm64-gnu': () => require('@cargo-messages/linux-arm64-gnu'),
'linux-arm64-musl': () => require('@cargo-messages/linux-arm64-musl'),
'linux-x64-musl': () => require('@cargo-messages/linux-x64-musl')
});
31 changes: 22 additions & 9 deletions pkgs/cargo-messages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,30 @@
"neon": {
"type": "library",
"org": "@cargo-messages",
"platforms": "extended",
"platforms": {
"win32-x64-msvc": "x86_64-pc-windows-msvc",
"darwin-x64": "x86_64-apple-darwin",
"darwin-arm64": "aarch64-apple-darwin",
"linux-x64-gnu": "x86_64-unknown-linux-gnu",
"linux-arm64-gnu": "aarch64-unknown-linux-gnu",
"win32-arm64-msvc": "aarch64-pc-windows-msvc",
"linux-arm-gnueabihf": "armv7-unknown-linux-gnueabihf",
"android-arm-eabi": "armv7-linux-androideabi",
"linux-arm64-musl": "aarch64-unknown-linux-musl",
"linux-x64-musl": "x86_64-unknown-linux-musl"
},
"load": "./lib/load.cjs"
},
"optionalDependencies": {
"@cargo-messages/win32-x64-msvc": "0.1.73",
"@cargo-messages/darwin-x64": "0.1.73",
"@cargo-messages/darwin-arm64": "0.1.73",
"@cargo-messages/linux-x64-gnu": "0.1.73",
"@cargo-messages/win32-arm64-msvc": "0.1.73",
"@cargo-messages/linux-arm-gnueabihf": "0.1.73",
"@cargo-messages/android-arm-eabi": "0.1.73",
"@cargo-messages/linux-arm64-gnu": "0.1.73"
"@cargo-messages/win32-x64-msvc": "0.1.77",
"@cargo-messages/darwin-x64": "0.1.77",
"@cargo-messages/darwin-arm64": "0.1.77",
"@cargo-messages/linux-x64-gnu": "0.1.77",
"@cargo-messages/win32-arm64-msvc": "0.1.77",
"@cargo-messages/linux-arm-gnueabihf": "0.1.77",
"@cargo-messages/android-arm-eabi": "0.1.77",
"@cargo-messages/linux-arm64-gnu": "0.1.77",
"@cargo-messages/linux-arm64-musl": "0.1.77",
"@cargo-messages/linux-x64-musl": "0.1.77"
}
}
3 changes: 3 additions & 0 deletions pkgs/cargo-messages/platforms/linux-arm64-musl/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# `@cargo-messages/linux-arm64-musl`

Prebuilt binary package for `cargo-messages` on `linux-arm64-musl`.
37 changes: 37 additions & 0 deletions pkgs/cargo-messages/platforms/linux-arm64-musl/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"name": "@cargo-messages/linux-arm64-musl",
"description": "Prebuilt binary package for `cargo-messages` on `linux-arm64-musl`.",
"version": "0.1.77",
"os": [
"linux"
],
"cpu": [
"arm64"
],
"main": "index.node",
"files": [
"index.node"
],
"neon": {
"type": "binary",
"rust": "aarch64-unknown-linux-musl",
"node": "linux-arm64-musl",
"os": "linux",
"arch": "arm64",
"abi": "musl"
},
"author": "David Herman <[email protected]>",
"repository": {
"type": "git",
"url": "git+https://github.com/dherman/neon-rs.git"
},
"keywords": [
"Rust",
"Neon"
],
"bugs": {
"url": "https://github.com/dherman/neon-rs/issues"
},
"homepage": "https://github.com/dherman/neon-rs#readme",
"license": "MIT"
}
3 changes: 3 additions & 0 deletions pkgs/cargo-messages/platforms/linux-x64-musl/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# `@cargo-messages/linux-x64-musl`

Prebuilt binary package for `cargo-messages` on `linux-x64-musl`.
37 changes: 37 additions & 0 deletions pkgs/cargo-messages/platforms/linux-x64-musl/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"name": "@cargo-messages/linux-x64-musl",
"description": "Prebuilt binary package for `cargo-messages` on `linux-x64-musl`.",
"version": "0.1.77",
"os": [
"linux"
],
"cpu": [
"x64"
],
"main": "index.node",
"files": [
"index.node"
],
"neon": {
"type": "binary",
"rust": "x86_64-unknown-linux-musl",
"node": "linux-x64-musl",
"os": "linux",
"arch": "x64",
"abi": "musl"
},
"author": "David Herman <[email protected]>",
"repository": {
"type": "git",
"url": "git+https://github.com/dherman/neon-rs.git"
},
"keywords": [
"Rust",
"Neon"
],
"bugs": {
"url": "https://github.com/dherman/neon-rs/issues"
},
"homepage": "https://github.com/dherman/neon-rs#readme",
"license": "MIT"
}

0 comments on commit 8e38e50

Please sign in to comment.