Files
wasmer/lib/middlewares/README.md
Ivan Enderlin a1527ea363 doc(middlewares) Add more examples and more doctests.
The idea of this patch is to improve the documentation of the
`wasmer-middlewares` crate by doing the following:

* Link to the fully detailed existing `metering` example,
* Give an overview of how to push a middleware on a compiler,
* Give one example per type and function: `Metering`,
  `MeteringPoints`, `get_remaining_points` and `set_remaining_points`.
2021-06-07 14:57:29 +02:00

394 B

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.