#middleware #limit #operator #wasmer #run-time #metering

hc-wasmer-middlewares

A collection of various useful middlewares

2 releases

4.3.6-hc.1 Aug 28, 2024
4.3.6-hc.0 Aug 27, 2024

#824 in WebAssembly

Download history 320/week @ 2024-08-25 11/week @ 2024-09-01

331 downloads per month

MIT license

9MB
218K SLoC

C 145K SLoC // 0.1% comments Rust 25K SLoC // 0.1% comments C++ 19K SLoC // 0.2% comments Python 10K SLoC // 0.1% comments WebAssembly 9K SLoC // 0.0% comments Shell 4K SLoC // 0.1% comments TypeScript 2K SLoC // 0.1% comments TSX 1K SLoC // 0.0% comments GNU Style Assembly 809 SLoC // 0.2% comments Go 720 SLoC // 0.2% comments Scons 208 SLoC // 0.3% comments Batch 100 SLoC Assembly 99 SLoC // 0.2% comments C# 71 SLoC // 0.3% comments JavaScript 46 SLoC // 0.2% comments Bitbake 16 SLoC // 0.2% comments

Wasmer Middlewares

The wasmer-middlewares crate is a collection of various useful middlewares:

  • metering: A middleware for tracking how many operators are executed in total and putting a limit on the total number of operators executed.

    See the metering example to get a concrete and complete example.

Dependencies

~8–19MB
~294K SLoC