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.