Commit Graph

3 Commits

Author SHA1 Message Date
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
Ivan Enderlin
e0148077f7 doc(middlewares) Format. 2021-03-02 16:11:23 +01:00
losfair
65377200c0 Add metering middleware. 2020-11-20 14:44:53 -08:00