Crate tauriless_serde
source ·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§
- The dedicated module for the
serialize_to_vec_u8()
function. - The dedicated module for the
slice_to_deserialize()
function. - The dedicated module for the
vec_to_js_value()
function.
Functions§
- A function for
tauriless-js
to deserialize awasm_bindgen::JsValue
into aVec<u8>
that represents it. - A function for the custom protocol handler to serialize a value implementing
serde::Serialize
into aVec<u8>
. - A function for the custom protocol handler to deserialize a
&[u8]
into a type implementingserde::Deserialize
.