Skip to content

Commit

Permalink
Merge pull request #1890 from polywrap/kris/wrap-rust-2.0
Browse files Browse the repository at this point in the history
chore(wrap-rust): update to wrapscan version 2.0
  • Loading branch information
dOrgJelli authored Sep 13, 2023
2 parents 722258c + 326f944 commit 1db6486
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion WRAP_TEST_HARNESS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
master
kris/test-wrap-rust-2
2 changes: 1 addition & 1 deletion packages/schema/bind/src/bindings/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function getGenerateBindingFn(
);
case "wrap-rs":
return WrapBindgen.getGenerateBindingFn(
"wrapscan.io/polywrap/wrap-rust-abi-bindgen@1"
"wrapscan.io/polywrap/wrap-rust-abi-bindgen@2"
);
case "wrap-go":
return Golang.Wasm.generateBinding;
Expand Down
2 changes: 1 addition & 1 deletion packages/templates/wasm/rust/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pub mod wrap;
pub use wrap::*;
pub use wrap::prelude::*;

impl ModuleTrait for Module {
fn sample_method(args: ArgsSampleMethod) -> Result<SampleResult, String> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ edition = "2021"

[dependencies]
polywrap-wasm-rs = { path = "../../../../../../../wasm/rs" }
polywrap_msgpack_serde = "~0.0.2-beta.5"
serde = { version = "1.0", features = ["derive"] }

[lib]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
pub mod wrap;
pub use wrap::*;
pub use wrap::prelude::*;

impl ModuleTrait for Module {
fn method(args: wrap::module::ArgsMethod) -> Result<String, String> {
fn method(args: ArgsMethod) -> Result<String, String> {
Ok(args.arg)
}
}

0 comments on commit 1db6486

Please sign in to comment.