Skip to content
This repository has been archived by the owner on Apr 6, 2024. It is now read-only.

Commit

Permalink
Merge pull request #10 from darwinium-com/use_gloo_utils
Browse files Browse the repository at this point in the history
Use gloo_utils instead of the serde feature in wasm_bindgen to convert objects.
  • Loading branch information
zebp authored Sep 28, 2022
2 parents 83a8daa + 7264c11 commit b1082de
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ js-sys = "0.3.50"
serde = { version = "1.0.125", features = ["derive"] }
serde_json = "1.0.64"
thiserror = "1.0.29"
wasm-bindgen = { version = "0.2.73", features = ["serde-serialize"] }
wasm-bindgen = "0.2.73"
wasm-bindgen-futures = "0.4.23"
gloo-utils = { version = "0.1.5", features = ["serde"] }

[dev-dependencies]
fs_extra = "1.2.0"
Expand Down
1 change: 1 addition & 0 deletions src/builder.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use gloo_utils::format::JsValueSerdeExt;
use js_sys::{ArrayBuffer, Function, Object, Promise, Uint8Array};
use serde::{de::DeserializeOwned, Serialize};
use serde_json::Value;
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ mod builder;

pub use builder::*;

use gloo_utils::format::JsValueSerdeExt;
use js_sys::{global, Function, Object, Promise, Reflect, Uint8Array};
use serde::{Deserialize, Serialize};
use serde_json::Value;
Expand Down

0 comments on commit b1082de

Please sign in to comment.