Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(wrap-rust): update with latest polywrap-wasm-rs and use ByteBuf #101

Merged
merged 8 commits into from
Sep 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion implementations/wrap-rust/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ node_modules
target
workflows/output.json
wrap
debug
debug
build
104 changes: 52 additions & 52 deletions implementations/wrap-rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions implementations/wrap-rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ license = "MIT"
edition = "2021"

[dependencies]
polywrap-wasm-rs = { version = "~0.11.2" }
polywrap_msgpack_serde = { version = "0.0.2-beta.7" }
polywrap-wasm-rs = { version = "0.11.4" }
polywrap_msgpack_serde = "0.0.2-beta.7"
serde = { version = "1.0", features = ["derive"] }
serde_json = { version = "1.0.99" }
handlebars = { version = "4.3.7" }
Expand Down
Binary file removed implementations/wrap-rust/build/wrap.info
Binary file not shown.
Binary file removed implementations/wrap-rust/build/wrap.wasm
Binary file not shown.
4 changes: 2 additions & 2 deletions implementations/wrap-rust/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
},
"devDependencies": {
"@types/jest": "26.0.8",
"@polywrap/schema-parse": "~0.11.2",
"@polywrap/schema-parse": "0.11.3",
"jest": "26.6.3",
"jest-diff": "26.6.2",
"polywrap": "~0.11.2",
"polywrap": "0.11.3",
"ts-jest": "26.5.4",
"typescript": "4.9.5"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
use serde::{Serialize, Deserialize};
use polywrap_msgpack_serde::{
wrappers::polywrap_json::JSONString,
wrappers::polywrap_bigint::BigIntWrapper
};
use polywrap_wasm_rs::{
BigInt,
BigNumber,
Map,
JSON
JSON,
JSONString,
BigIntWrapper,
ByteBuf
};

#[derive(Clone, Debug, Deserialize, Serialize)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
use serde::{Serialize, Deserialize};
use polywrap_msgpack_serde::{
wrappers::polywrap_json::JSONString,
wrappers::polywrap_bigint::BigIntWrapper
};
use polywrap_wasm_rs::{
BigInt,
BigNumber,
Map,
JSON
JSON,
JSONString,
BigIntWrapper,
ByteBuf
};
use crate::CustomType;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
use serde::{Serialize, Deserialize};
use polywrap_msgpack_serde::{
wrappers::polywrap_json::JSONString,
wrappers::polywrap_bigint::BigIntWrapper
};
use polywrap_wasm_rs::{
BigInt,
BigNumber,
Map,
JSON
JSON,
JSONString,
BigIntWrapper,
ByteBuf
};

#[derive(Clone, Debug, Deserialize, Serialize)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
use serde::{Serialize, Deserialize};
use polywrap_msgpack_serde::{
wrappers::polywrap_json::JSONString,
wrappers::polywrap_bigint::BigIntWrapper
};
use polywrap_wasm_rs::{
BigInt,
BigNumber,
Map,
JSON
JSON,
JSONString,
BigIntWrapper,
ByteBuf
};
use crate::AnotherType;
use crate::CustomEnum;
Expand Down Expand Up @@ -37,11 +36,9 @@ pub struct CustomType {
pub json: JSONString,
#[serde(rename = "optJson")]
pub opt_json: Option<JSONString>,
#[serde(with = "serde_bytes")]
pub bytes: Vec<u8>,
#[serde(with = "serde_bytes")]
pub bytes: ByteBuf,
#[serde(rename = "optBytes")]
pub opt_bytes: Option<Vec<u8>>,
pub opt_bytes: Option<ByteBuf>,
pub boolean: bool,
#[serde(rename = "optBoolean")]
pub opt_boolean: Option<bool>,
Expand Down
Loading
Loading