This library shows you how to take a Rust library, compile it for WASM and as a Native Binary and use it as an NPM package with the same interface. In addition, it'll run the same Jest integration tests on all runtimes.
This simple library is a key value store that will use a different embedded key value store depending on the platform:
- Install dependencies with
yarn
ornpm install
- To build rust run
npm run build-core
. This builds the core library in ./core - To build the typescript common code run
npm run build-typescript
- To build everything run
npm run build
- Run tests with
npm test
. This runs the tests inindex.spec.ts