Skip to content

Commit

Permalink
Rename WasmerRuntime to Wasmer2Runtime (#192)
Browse files Browse the repository at this point in the history
* Rename WasmerRuntime to Wasmer2Runtime

* Rename fp-bindgen-support feature

* Lock Wasmer dependency version to 2.1 again
  • Loading branch information
arendjr authored Apr 28, 2023
1 parent 563aec6 commit 4671a0c
Show file tree
Hide file tree
Showing 39 changed files with 258 additions and 359 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ jobs:
deno test --allow-read tests.ts
popd
- name: Run end-to-end tests in wasmer runtime
- name: Run end-to-end tests in Wasmer 2 runtime
run: |
pushd examples/example-rust-wasmer-runtime
pushd examples/example-rust-wasmer2-runtime
cargo test
cargo test -F wasi
popd
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
- The TypeScript runtime now uses streaming instantiation for the WebAssembly
module by default.
- `BindingsType::TsRuntimeWithExtendedConfig` has been renamed back to
`BindingsType::TsRuntime` (and the old `BindingsType::TsRuntime`, which was deprecated in 2.0.0, is now removed).
`BindingsType::TsRuntime` (and the old `BindingsType::TsRuntime`, which was
deprecated in 2.0.0, is now removed).
- Renamed the `RustWasmerRuntime` and `RustWasmerWasiRuntime` to
`RustWasmer2Runtime` and `RustWasmer2WasiRuntime`, respectively. This is in
anticipation for supporting Wasmer 3 in an upcoming release. For more
information, please see: https://github.com/fiberplane/fp-bindgen/issues/185

### Fixed

Expand Down
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
[workspace]
exclude = [
"examples/example-plugin",
"examples/example-rust-wasmer-runtime",
"examples/example-rust-wasmer-wasi-runtime",
"examples/example-rust-wasmer2-runtime",
"bindings/rust-plugin",
]
members = [
Expand Down
4 changes: 2 additions & 2 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ Note that in order to run this runtime, you first need to generate the bindings
After that you can run the runtime using `deno main.ts`. It will load the plugin and verify all its
functions can be called correctly.

## `example-rust-wasmer-runtime/`
## `example-rust-wasmer2-runtime/`

This is an example of a Rust runtime that can load the example plugin.
This is an example of a Rust Wasmer 2 runtime that can load the example plugin.

Note that in order to run this runtime, you first need to generate the bindings by running
`cargo run` inside the `example-protocol/` folder
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![allow(unused_imports)]
#![allow(dead_code, unused_imports)]
use serde::{Deserialize, Serialize};
use std::{collections::BTreeMap, rc::Rc};

Expand Down
Loading

0 comments on commit 4671a0c

Please sign in to comment.