Linux artifacts cross-compiled on the Nix host (nix develop -c scripts/cross-build.sh, cargo-zigbuild, ring TLS); napi_register export verified. Prebuilt fallback resolution + load verified with the cargo artifact absent. Windows dropped from the zig matrix: napi-build *-gnu needs a libnode.dll import lib (upstream ships msvc, delay-loaded) — needs cargo-xwin or a Windows CI runner, tracked in README.
- commit
- f45b5adb2037256f75568af6c8ef5cca74daf0f6
- parent
- e96485a648e9079e98a57601c3a94315eb94e510
- author
- Dami <dami.etoile@gmail.com>
@@ -72,8 +72,13 @@ node.ticket(); // -> share with the peer
7272 Executed per [docs/port-iroh-js.md](docs/port-iroh-js.md): `native/iroh-js/`7373 vendors upstream at v1.1.0 (endpoint/key/net/path/relay/ticket/watch modules;7474 services dropped), plus `lofi_ext.rs`. db-iroh-ffi is no longer a dependency.75-Remaining from the plan: cross-compiled `prebuilt/<triple>/` artifacts, and76-surfacing `conn.stats()/paths()` into `SyncNodeStatus.mesh`.75+Live tunnel connection stats surface in `SyncNodeStatus.mesh.connections`.76+77+Prebuilts (`native/iroh-js/prebuilt/<triple>/`): macOS arm64 (built on a78+mac), Linux x86_64 + aarch64 (Nix host via `nix develop -c79+./scripts/cross-build.sh`). **Windows is open**: napi-build's `*-gnu` path80+needs a libnode.dll import lib (upstream ships msvc, delay-loaded) — needs81+cargo-xwin or a Windows CI runner.7782 7883 ## Tests7984 Binary file.
Binary file.
Binary file.
Binary file.
@@ -10,20 +10,20 @@
1010 set -euo pipefail1111 cd "$(dirname "$0")/.."1212 13-linux_win_targets=(13+# Windows is NOT in this matrix: napi-build's *-gnu path needs a libnode.dll14+# import library (upstream ships Windows as msvc, delay-loaded against the15+# host exe). A Windows artifact of OUR crate needs cargo-xwin (msvc cross) or16+# a Windows CI runner — tracked in README.17+linux_targets=(1418 x86_64-unknown-linux-gnu1519 aarch64-unknown-linux-gnu16- x86_64-pc-windows-gnu1720 )1821 1922 artifact_name() {20- case "$1" in21- *windows*) echo "number0_iroh.dll" ;;22- *) echo "libnumber0_iroh.so" ;;23- esac23+ echo "libnumber0_iroh.so"2424 }2525 26-for t in "${linux_win_targets[@]}"; do26+for t in "${linux_targets[@]}"; do2727 echo "==> cargo zigbuild --release --target $t"2828 cargo zigbuild --release --target "$t"2929 name="$(artifact_name "$t")"