chkpt-napi
Node.js N-API bindings for the filesystem checkpoint engine.
Build
Current platform only
Builds a .node binary for the host platform only.
Cross-compile all targets
Builds N-API modules and CLI binaries for all 5 platforms. To build a specific platform:
Cross-compilation prerequisites
The following tools are required to run the full cross-build (build:all).
1. Rust targets
2. Linux — cross (Docker-based)
Requires Docker to be installed and running.
3. Windows MSVC — cargo-xwin
# Install cargo-xwin
# Install LLVM (provides clang-cl)
# macOS
# Ubuntu/Debian
On the first build, cargo-xwin automatically downloads the MSVC CRT headers and Windows SDK libraries.
Summary
| Target | Build tool | Dependencies |
|---|---|---|
aarch64-apple-darwin |
cargo |
(native) |
x86_64-apple-darwin |
cargo |
(native) |
aarch64-unknown-linux-gnu |
cross |
Docker |
x86_64-unknown-linux-gnu |
cross |
Docker |
x86_64-pc-windows-msvc |
cargo xwin |
LLVM (clang-cl) |
Test
Publish
# dry-run
# publish
Publishes platform-specific npm packages first, then the main package.