Language bindings for stressinv generated by rosetta — Python, Node.js, WebAssembly abd TypeScript, from one manifest.json, without touching a line of stressinv's source.
- One-time bootstrap: fetch stressinv and rosetta into
extern/and buildrosetta_geninextern/rosetta/bin:
cmake -B build && cmake --build build- Then, launch the workflow to generate and compile the bindings from
manifest.json:
./extern/rosetta/bin/rosetta_gen --build manifest.json # → bindings/, compiled; --help lists the optionscd examples
# Python
python stressinv_test.py
# Node.js
node stressinv_test.js
# WebAssembly
node stressinv_test_wasm.jsSee the README inthe examples folder.
