From 8e38e50b8d509313233606db044ce79ab8a211b5 Mon Sep 17 00:00:00 2001 From: David Herman Date: Sat, 24 Aug 2024 19:29:40 -0700 Subject: [PATCH] add support for linux-{arm64,x64}-musl --- pkgs/cargo-messages/lib/load.cjs | 4 +- pkgs/cargo-messages/package.json | 31 +++++++++++----- .../platforms/linux-arm64-musl/README.md | 3 ++ .../platforms/linux-arm64-musl/package.json | 37 +++++++++++++++++++ .../platforms/linux-x64-musl/README.md | 3 ++ .../platforms/linux-x64-musl/package.json | 37 +++++++++++++++++++ 6 files changed, 105 insertions(+), 10 deletions(-) create mode 100644 pkgs/cargo-messages/platforms/linux-arm64-musl/README.md create mode 100644 pkgs/cargo-messages/platforms/linux-arm64-musl/package.json create mode 100644 pkgs/cargo-messages/platforms/linux-x64-musl/README.md create mode 100644 pkgs/cargo-messages/platforms/linux-x64-musl/package.json diff --git a/pkgs/cargo-messages/lib/load.cjs b/pkgs/cargo-messages/lib/load.cjs index 9c27ec35..ca8686b4 100644 --- a/pkgs/cargo-messages/lib/load.cjs +++ b/pkgs/cargo-messages/lib/load.cjs @@ -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') }); diff --git a/pkgs/cargo-messages/package.json b/pkgs/cargo-messages/package.json index 08ca6c5b..f47a11bd 100644 --- a/pkgs/cargo-messages/package.json +++ b/pkgs/cargo-messages/package.json @@ -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" } } diff --git a/pkgs/cargo-messages/platforms/linux-arm64-musl/README.md b/pkgs/cargo-messages/platforms/linux-arm64-musl/README.md new file mode 100644 index 00000000..0fa8a9b6 --- /dev/null +++ b/pkgs/cargo-messages/platforms/linux-arm64-musl/README.md @@ -0,0 +1,3 @@ +# `@cargo-messages/linux-arm64-musl` + +Prebuilt binary package for `cargo-messages` on `linux-arm64-musl`. diff --git a/pkgs/cargo-messages/platforms/linux-arm64-musl/package.json b/pkgs/cargo-messages/platforms/linux-arm64-musl/package.json new file mode 100644 index 00000000..2900dc65 --- /dev/null +++ b/pkgs/cargo-messages/platforms/linux-arm64-musl/package.json @@ -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 ", + "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" +} diff --git a/pkgs/cargo-messages/platforms/linux-x64-musl/README.md b/pkgs/cargo-messages/platforms/linux-x64-musl/README.md new file mode 100644 index 00000000..a5f76094 --- /dev/null +++ b/pkgs/cargo-messages/platforms/linux-x64-musl/README.md @@ -0,0 +1,3 @@ +# `@cargo-messages/linux-x64-musl` + +Prebuilt binary package for `cargo-messages` on `linux-x64-musl`. diff --git a/pkgs/cargo-messages/platforms/linux-x64-musl/package.json b/pkgs/cargo-messages/platforms/linux-x64-musl/package.json new file mode 100644 index 00000000..808790f2 --- /dev/null +++ b/pkgs/cargo-messages/platforms/linux-x64-musl/package.json @@ -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 ", + "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" +}