Skip to content

Commit

Permalink
Merge #1785
Browse files Browse the repository at this point in the history
1785: Add more examples on the Rust API r=syrusakbary a=jubianchi

# Description

* [x] Clean and comment the memory example (#174)
* [x] Move examples from `wasmerio/docs.wasmer.io` here:
  * [x] Early exit (comments to add)
  * [x] Error handling
  * [x] Passing data (env)

# Review

- [ ] Add a short description of the the change to the CHANGELOG.md file


Co-authored-by: jubianchi <[email protected]>
  • Loading branch information
bors[bot] and jubianchi authored Nov 4, 2020
2 parents 789353d + b2177a8 commit 692ca62
Show file tree
Hide file tree
Showing 11 changed files with 608 additions and 149 deletions.
15 changes: 15 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -230,3 +230,18 @@ required-features = ["cranelift"]
name = "memory"
path = "examples/memory.rs"
required-features = ["cranelift"]

[[example]]
name = "instance"
path = "examples/instance.rs"
required-features = ["cranelift"]

[[example]]
name = "errors"
path = "examples/errors.rs"
required-features = ["cranelift"]

[[example]]
name = "imported-function-env"
path = "examples/imports_function_env.rs"
required-features = ["cranelift"]
Loading

0 comments on commit 692ca62

Please sign in to comment.