diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3ea2b70..ed40e17 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,6 +16,7 @@ env: CARGO_TARGET_I686_UNKNOWN_LINUX_GNU_LINKER: 'i686-linux-gnu-gcc' CARGO_TARGET_ARM_UNKNOWN_LINUX_GNUEABIHF_LINKER: 'arm-linux-gnueabihf-gcc' CARGO_TARGET_S390X_UNKNOWN_LINUX_GNU_LINKER: 's390x-linux-gnu-gcc' + CARGO_TARGET_RISCV64_UNKNOWN_LINUX_GNU_LINKER: 'riscv64-linux-gnu-gcc' on: push: @@ -57,6 +58,9 @@ jobs: - target: s390x-unknown-linux-gnu os: ubuntu-20.04 apt_install: gcc-s390x-linux-gnu g++-s390x-linux-gnu + - target: riscv64gc-unknown-linux-gnu + os: ubuntu-22.04 + apt_install: gcc-riscv64-linux-gnu g++-riscv64-linux-gnu # ----------------------------------- macOS - target: aarch64-apple-darwin os: macos-latest diff --git a/Cargo.lock b/Cargo.lock index ca8c5a6..22103f5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1595,6 +1595,12 @@ dependencies = [ "semver", ] +[[package]] +name = "rustversion" +version = "1.0.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f7c45b9784283f1b2e7fb61b42047c2fd678ef0960d4f6f1eba131594cc369d4" + [[package]] name = "ryu" version = "1.0.15" @@ -2086,23 +2092,24 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.87" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7706a72ab36d8cb1f80ffbf0e071533974a60d0a308d01a5d0375bf60499a342" +checksum = "1edc8929d7499fc4e8f0be2262a241556cfc54a0bea223790e71446f2aab1ef5" dependencies = [ "cfg-if", + "once_cell", + "rustversion", "wasm-bindgen-macro", ] [[package]] name = "wasm-bindgen-backend" -version = "0.2.87" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ef2b6d3c510e9625e5fe6f509ab07d66a760f0885d858736483c32ed7809abd" +checksum = "2f0a0651a5c2bc21487bde11ee802ccaf4c51935d0d3d42a6101f98161700bc6" dependencies = [ "bumpalo", "log", - "once_cell", "proc-macro2", "quote", "syn", @@ -2123,9 +2130,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.87" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dee495e55982a3bd48105a7b947fd2a9b4a8ae3010041b9e0faab3f9cd028f1d" +checksum = "7fe63fc6d09ed3792bd0897b314f53de8e16568c2b3f7982f468c0bf9bd0b407" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -2133,9 +2140,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.87" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54681b18a46765f095758388f2d0cf16eb8d4169b639ab575a8f5693af210c7b" +checksum = "8ae87ea40c9f689fc23f209965b6fb8a99ad69aeeb0231408be24920604395de" dependencies = [ "proc-macro2", "quote", @@ -2146,9 +2153,12 @@ dependencies = [ [[package]] name = "wasm-bindgen-shared" -version = "0.2.87" +version = "0.2.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca6ad05a4870b2bf5fe995117d3728437bd27d7cd5f06f13c17443ef369775a1" +checksum = "1a05d73b933a847d6cccdda8f838a22ff101ad9bf93e33684f39c1f5f0eece3d" +dependencies = [ + "unicode-ident", +] [[package]] name = "web-sys" diff --git a/README.md b/README.md index 1564a60..2abbf37 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,11 @@ When installing, NPM will download the corresponding prebuilt Rust library for y s390x-unknown-linux-gnu ✅ + + riscv64 + riscv64gc-unknown-linux-gnu + ✅ + macOS aarch diff --git a/download-lib.js b/download-lib.js index e8a5c11..7603d2c 100644 --- a/download-lib.js +++ b/download-lib.js @@ -119,6 +119,9 @@ switch (platform) { case "s390x": download_lib("matrix-sdk-crypto.linux-s390x-gnu.node"); break; + case "riscv64": + download_lib("matrix-sdk-crypto.linux-riscv64-gnu.node"); + break; default: throw new Error(`Unsupported architecture on Linux: ${arch}`); }