diff --git a/Cargo.lock b/Cargo.lock index 35152a6..9963bf8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -324,12 +324,6 @@ dependencies = [ "generic-array", ] -[[package]] -name = "bumpalo" -version = "3.16.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c" - [[package]] name = "byteorder" version = "1.5.0" @@ -1871,7 +1865,6 @@ dependencies = [ "libsql", "serde", "uniffi", - "wasm-bindgen", ] [[package]] @@ -2474,60 +2467,6 @@ version = "0.11.0+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" -[[package]] -name = "wasm-bindgen" -version = "0.2.92" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4be2531df63900aeb2bca0daaaddec08491ee64ceecbee5076636a3b026795a8" -dependencies = [ - "cfg-if", - "wasm-bindgen-macro", -] - -[[package]] -name = "wasm-bindgen-backend" -version = "0.2.92" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "614d787b966d3989fa7bb98a654e369c762374fd3213d212cfc0251257e747da" -dependencies = [ - "bumpalo", - "log", - "once_cell", - "proc-macro2", - "quote", - "syn 2.0.68", - "wasm-bindgen-shared", -] - -[[package]] -name = "wasm-bindgen-macro" -version = "0.2.92" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1f8823de937b71b9460c0c34e25f3da88250760bec0ebac694b49997550d726" -dependencies = [ - "quote", - "wasm-bindgen-macro-support", -] - -[[package]] -name = "wasm-bindgen-macro-support" -version = "0.2.92" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e94f17b526d0a461a191c78ea52bbce64071ed5c04c9ffe424dcb38f74171bb7" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.68", - "wasm-bindgen-backend", - "wasm-bindgen-shared", -] - -[[package]] -name = "wasm-bindgen-shared" -version = "0.2.92" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af190c94f2773fdb3729c55b007a722abb5384da03bc0986df4c289bf5567e96" - [[package]] name = "webpki-roots" version = "0.26.3" diff --git a/shared/Cargo.toml b/shared/Cargo.toml index 4a55077..361a315 100644 --- a/shared/Cargo.toml +++ b/shared/Cargo.toml @@ -15,7 +15,6 @@ typegen = ["crux_core/typegen"] crux_core.workspace = true serde = { workspace = true, features = ["derive"] } uniffi = "0.28.0" -wasm-bindgen = "0.2.92" libsql = { version = "0.4.0", features = ["encryption"] } [target.uniffi-bindgen.dependencies] diff --git a/shared/src/lib.rs b/shared/src/lib.rs index 67d413d..a0b3e29 100644 --- a/shared/src/lib.rs +++ b/shared/src/lib.rs @@ -2,7 +2,6 @@ pub mod app; pub mod database; use std::sync::OnceLock; -use wasm_bindgen::prelude::wasm_bindgen; pub use crux_core::{bridge::Bridge, Core, Request}; @@ -16,17 +15,14 @@ fn core() -> &'static Bridge { CORE.get_or_init(|| Bridge::new(Core::new())) } -#[wasm_bindgen] pub fn process_event(data: &[u8]) -> Vec { core().process_event(data) } -#[wasm_bindgen] pub fn handle_response(id: u32, data: &[u8]) -> Vec { core().handle_response(id, data) } -#[wasm_bindgen] pub fn view() -> Vec { core().view() }