layer8-middleware-rs
v0.1.18
Published
## Getting Started
Downloads
1,008
Readme
layer8-middleware-rs
Getting Started
Prerequisites
- Install Node.js v22.x.x
- Install Rust:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- Install wasm-pack:
cargo install wasm-pack
Running tests
The command below should set the node to v22.x.x and run the tests.
nvm use 22 && wasm-pack test --node --all-features
Building
The command below will build the project locally. However, the project ships as an npm package, so you need not build it locally.
wasm-pack build --target nodejs --release
Gotchas
- The middleware expects request data to already be aggregated, call an aggregator middleware like
app.use(express.json({ limit: '100mb' }))
before registering this middleware.
this is s