Expand description
§tauriless_serde
Implementation details of serialization and deserialization of messages for tauriless
.
§Testing
The tests are written with wasm-bindgen-test
to avoid cannot call wasm-bindgen imported functions on non-wasm targets
error
when dealing with wasm_bindgen::JsValue
.
wasm-pack test --node
Modules§
- serialize_
to_ vec_ u8 - The dedicated module for the
serialize_to_vec_u8()
function. - slice_
to_ deserialize - The dedicated module for the
slice_to_deserialize()
function. - vec_
to_ js_ value - The dedicated module for the
vec_to_js_value()
function.
Functions§
- js_
value_ to_ vec_ u8 - A function for
tauriless-js
to deserialize awasm_bindgen::JsValue
into aVec<u8>
that represents it. - serialize_
to_ vec_ u8 - A function for the custom protocol handler to serialize a value implementing
serde::Serialize
into aVec<u8>
. - slice_
to_ deserialize - A function for the custom protocol handler to deserialize a
&[u8]
into a type implementingserde::Deserialize
. - vec_
to_ js_ value - A function for
tauriless-js
to serialize aVec<u8>
into awasm_bindgen::JsValue
.