Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Linux ARM64 NAPI binding #113

Merged
merged 26 commits into from
Nov 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/napi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ jobs:
target: x86_64-unknown-linux-gnu
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian
build: pnpm build:linux-x64
- host: linux-arm64
target: aarch64-unknown-linux-gnu
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian-aarch64
build: pnpm build:linux-arm64
- host: macos-latest
target: aarch64-apple-darwin
build: pnpm build:macos-arm64
Expand Down Expand Up @@ -140,6 +144,8 @@ jobs:
target: x86_64-pc-windows-msvc
- host: ubuntu-latest
target: x86_64-unknown-linux-gnu
- host: linux-arm64
target: aarch64-unknown-linux-gnu
node:
- "18"
- "20"
Expand Down
17 changes: 17 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion crates/chia-sdk-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ workspace = true

[features]
native-tls = ["dep:native-tls", "tokio-tungstenite/native-tls"]
rustls = ["dep:rustls", "dep:rustls-pemfile", "tokio-tungstenite/rustls-tls-webpki-roots"]
rustls = ["dep:rustls", "dep:rustls-pemfile", "dep:aws-lc-rs", "tokio-tungstenite/rustls-tls-webpki-roots"]

[dependencies]
chia-sdk-types = { workspace = true }
Expand All @@ -32,3 +32,10 @@ rustls-pemfile = { workspace = true, optional = true }
tracing = { workspace = true }
futures-util = { workspace = true }
tokio-tungstenite = { workspace = true }

# This is to ensure that the bindgen feature is enabled for the aws-lc-rs crate.
# https://aws.github.io/aws-lc-rs/platform_support.html#tested-platforms
aws-lc-rs = { version = "1", features = ["bindgen"], optional = true }

[package.metadata.cargo-machete]
ignored = ["aws-lc-rs"]
3 changes: 3 additions & 0 deletions napi/npm/linux-arm64-gnu/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# `chia-wallet-sdk-linux-arm64-gnu`

This is the **aarch64-unknown-linux-gnu** binary for `chia-wallet-sdk`
25 changes: 25 additions & 0 deletions napi/npm/linux-arm64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "chia-wallet-sdk-linux-arm64-gnu",
"version": "0.17.1",
"repository": {
"type": "git",
"url": "https://github.com/xch-dev/chia-wallet-sdk"
},
"os": [
"linux"
],
"cpu": [
"arm64"
],
"main": "chia-wallet-sdk.linux-arm64-gnu.node",
"files": [
"chia-wallet-sdk.linux-arm64-gnu.node"
],
"license": "MIT",
"engines": {
"node": ">= 10"
},
"libc": [
"glibc"
]
}
Loading