This commit is contained in:
John Smith
2022-10-05 19:12:10 -04:00
parent 98f90154f3
commit b1cc0d803c
4 changed files with 44 additions and 11 deletions

View File

@@ -27,6 +27,7 @@ lazy_static = "^1"
send_wrapper = "^0"
futures-util = { version = "^0", default_features = false, features = ["alloc"] }
data-encoding = { version = "^2" }
gloo-utils = { version = "^0", features = ["serde"] }
[dev-dependencies]
wasm-bindgen-test = "^0"

View File

@@ -10,6 +10,7 @@ use alloc::*;
use core::any::{Any, TypeId};
use core::cell::RefCell;
use futures_util::FutureExt;
use gloo_utils::format::JsValueSerdeExt;
use js_sys::*;
use lazy_static::*;
use send_wrapper::*;
@@ -306,5 +307,5 @@ pub fn veilid_version() -> JsValue {
minor,
patch,
};
JsValue::from_serde(&vv).unwrap()
<JsValue as JsValueSerdeExt>::from_serde(&vv).unwrap()
}