@slowclap/rezi-native
v0.1.0-fork.1
Published
Native addon for Rezi (napi-rs + Zireael engine).
Readme
@rezi-ui/native
Rust + napi-rs Node-API addon that hosts the Zireael C engine and exposes a minimal, safe JS API for the Node backend.
This package is not used directly by most applications. Install and use @rezi-ui/node, which depends on this package.
Local development
Build the native addon for your host platform:
npm -w @rezi-ui/native run build:nativeSmoke test:
npm -w @rezi-ui/native run test:native:smokeVendoring integrity check:
npm run check:native-vendorDesign and constraints
- Engine placement is controlled by
@rezi-ui/nodeexecutionMode(auto|worker|inline). executionMode: "auto"selects inline whenfpsCap <= 30, worker otherwise.- All buffers across the boundary are caller-owned; binary formats are validated strictly.
- Native compilation reads
packages/native/vendor/zireael(notvendor/zireael). packages/native/vendor/VENDOR_COMMIT.txtmust match thevendor/zireaelgitlink commit.
See:
