Skip to content

Commit

Permalink
fix: remove serde in core
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanceras committed Feb 24, 2024
1 parent 3963faa commit 9ea1b7d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion crates/sauron-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ mt-dom = { version = "0.59.2" }
once_cell = "1.8"
serde-wasm-bindgen = "0.5.0"
phf = { version = "0.11.2", features = ["macros"] }
serde = { version = "1.0.197", features = ["derive"]}


[dependencies.wasm-bindgen]
Expand Down
3 changes: 1 addition & 2 deletions crates/sauron-core/src/dom/web_component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use crate::dom::{Application, Cmd, Container, Modifier, MountAction, MountTarget
use crate::vdom::Node;
use wasm_bindgen::prelude::*;
use wasm_bindgen::JsCast;
use serde::{Serialize, de::DeserializeOwned};

/// a trait for implementing WebComponent in the DOM with custom tag
pub trait WebComponent<MSG> {
Expand Down Expand Up @@ -98,7 +97,7 @@ fn declare_custom_element_function() -> js_sys::Function {

impl<COMP, MSG> Application<MSG> for COMP
where
COMP: Container<MSG, ()> + WebComponent<MSG> + Clone + Serialize + DeserializeOwned + 'static,
COMP: Container<MSG, ()> + WebComponent<MSG> + Clone + 'static,
MSG: 'static,
{
fn init(&mut self) -> Cmd<Self, MSG> {
Expand Down

0 comments on commit 9ea1b7d

Please sign in to comment.