forked from wasmerio/wasmer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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`.
- Loading branch information
Showing
3 changed files
with
99 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
pub mod metering; | ||
|
||
// The most commonly used symbol are exported at top level of the module. Others are available | ||
// via modules, e.g. `wasmer_middlewares::metering::get_remaining_points` | ||
// The most commonly used symbol are exported at top level of the | ||
// module. Others are available via modules, | ||
// e.g. `wasmer_middlewares::metering::get_remaining_points` | ||
pub use metering::Metering; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters