Skip to content

Commit

Permalink
Clean up example, add changelog entry
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark McCaskey committed Sep 26, 2019
1 parent 0ed6103 commit 06dd2cf
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 11 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Blocks of changes will separated by version increments.

## **[Unreleased]**

- [#835](https://github.com/wasmerio/wasmer/pull/835) Add parallel execution example (independent instances created from the same `ImportObject` and `Module` run with rayon)
- [#834](https://github.com/wasmerio/wasmer/pull/834) Fix panic when parsing numerical arguments for no-ABI targets run with the wasmer binary
- [#833](https://github.com/wasmerio/wasmer/pull/833) Add doc example of using ImportObject's new `maybe_with_namespace` method
- [#832](https://github.com/wasmerio/wasmer/pull/832) Delete unused runtime ABI
Expand Down
Binary file modified examples/parallel-guest.wasm
Binary file not shown.
4 changes: 2 additions & 2 deletions examples/parallel/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ static PLUGIN_LOCATION: &'static str = "../parallel-guest.wasm";

fn get_hashed_password(ctx: &mut Ctx, ptr: WasmPtr<u8, Array>, len: u32) -> u32 {
// "hard" password - 7 characters
let password = b"2ab96390c7dbe3439de74d0c9b0b1767";
//let password = b"2ab96390c7dbe3439de74d0c9b0b1767";
// "easy" password - 5 characters
//let password = b"ab56b4d92b40713acc5af89985d4b786";
let password = b"ab56b4d92b40713acc5af89985d4b786";
let memory = ctx.memory(0);
if let Some(writer) = ptr.deref(memory, 0, len) {
for (i, byte) in password.iter().enumerate() {
Expand Down
9 changes: 0 additions & 9 deletions examples/parallel/wat

This file was deleted.

0 comments on commit 06dd2cf

Please sign in to comment.