Merge sync_lib and sync_wasm

This commit is contained in:
Andras Schmelczer 2024-12-08 21:58:28 +00:00
parent dfb747c206
commit a2a4611497
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
9 changed files with 134 additions and 58 deletions

View file

@ -1,5 +1,6 @@
use base64::DecodeError;
use thiserror::Error;
use wasm_bindgen::JsValue;
#[derive(Error, Debug)]
pub enum SyncLibError {
@ -22,3 +23,7 @@ impl From<std::string::FromUtf8Error> for SyncLibError {
}
}
}
impl From<SyncLibError> for JsValue {
fn from(val: SyncLibError) -> Self { JsValue::from_str(&val.to_string()) }
}