Pauan / rust-dominator

Zero-cost ultra-high-performance declarative DOM library using FRP signals for Rust!
MIT License
967 stars 62 forks source link

Unable to compile todomvc #30

Closed cortopy closed 4 years ago

cortopy commented 4 years ago

I've been able to successfully build and run the counter and the animation examples, but with todomv I'm getting the following errors

error[E0277]: the trait bound `futures_signals::signal::mutable::Mutable<std::string::String>: todo::_IMPL_DESERIALIZE_FOR_Todo::_serde::Serialize` is not satisfied
  --> src/todo.rs:17:5
   |
17 |     title: Mutable<String>,
   |     ^^^^^^^^^^^^^^^^^^^^^^ the trait `todo::_IMPL_DESERIALIZE_FOR_Todo::_serde::Serialize` is not implemented for `futures_signals::signal::mutable::Mutable<std::string::String>`
   |
   = note: required by `todo::_IMPL_DESERIALIZE_FOR_Todo::_serde::ser::SerializeStruct::serialize_field`

error[E0277]: the trait bound `futures_signals::signal::mutable::Mutable<bool>: todo::_IMPL_DESERIALIZE_FOR_Todo::_serde::Serialize` is not satisfied
  --> src/todo.rs:18:5
   |
18 |     pub completed: Mutable<bool>,
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `todo::_IMPL_DESERIALIZE_FOR_Todo::_serde::Serialize` is not implemented for `futures_signals::signal::mutable::Mutable<bool>`
   |
   = note: required by `todo::_IMPL_DESERIALIZE_FOR_Todo::_serde::ser::SerializeStruct::serialize_field`

error[E0277]: the trait bound `futures_signals::signal::mutable::Mutable<std::string::String>: todo::_IMPL_DESERIALIZE_FOR_Todo::_serde::Deserialize<'_>` is not satisfied
  --> src/todo.rs:17:5
   |
17 |     title: Mutable<String>,
   |     ^^^^^^^^^^^^^^^^^^^^^^ the trait `todo::_IMPL_DESERIALIZE_FOR_Todo::_serde::Deserialize<'_>` is not implemented for `futures_signals::signal::mutable::Mutable<std::string::String>`
   |
   = note: required by `todo::_IMPL_DESERIALIZE_FOR_Todo::_serde::de::SeqAccess::next_element`

error[E0277]: the trait bound `futures_signals::signal::mutable::Mutable<bool>: todo::_IMPL_DESERIALIZE_FOR_Todo::_serde::Deserialize<'_>` is not satisfied
  --> src/todo.rs:18:5
   |
18 |     pub completed: Mutable<bool>,
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `todo::_IMPL_DESERIALIZE_FOR_Todo::_serde::Deserialize<'_>` is not implemented for `futures_signals::signal::mutable::Mutable<bool>`
   |
   = note: required by `todo::_IMPL_DESERIALIZE_FOR_Todo::_serde::de::SeqAccess::next_element`

error[E0277]: the trait bound `futures_signals::signal::mutable::Mutable<std::string::String>: todo::_IMPL_DESERIALIZE_FOR_Todo::_serde::Deserialize<'_>` is not satisfied
  --> src/todo.rs:17:5
   |
17 |     title: Mutable<String>,
   |     ^^^^^^^^^^^^^^^^^^^^^^ the trait `todo::_IMPL_DESERIALIZE_FOR_Todo::_serde::Deserialize<'_>` is not implemented for `futures_signals::signal::mutable::Mutable<std::string::String>`
   |
   = note: required by `todo::_IMPL_DESERIALIZE_FOR_Todo::_serde::de::MapAccess::next_value`

error[E0277]: the trait bound `futures_signals::signal::mutable::Mutable<bool>: todo::_IMPL_DESERIALIZE_FOR_Todo::_serde::Deserialize<'_>` is not satisfied
  --> src/todo.rs:18:5
   |
18 |     pub completed: Mutable<bool>,
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `todo::_IMPL_DESERIALIZE_FOR_Todo::_serde::Deserialize<'_>` is not implemented for `futures_signals::signal::mutable::Mutable<bool>`
   |
   = note: required by `todo::_IMPL_DESERIALIZE_FOR_Todo::_serde::de::MapAccess::next_value`

error[E0277]: the trait bound `futures_signals::signal_vec::mutable_vec::MutableVec<std::rc::Rc<todo::Todo>>: todo::_IMPL_DESERIALIZE_FOR_Todo::_serde::Serialize` is not satisfied
  --> src/app.rs:22:5
   |
22 |     todo_list: MutableVec<Rc<Todo>>,
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `todo::_IMPL_DESERIALIZE_FOR_Todo::_serde::Serialize` is not implemented for `futures_signals::signal_vec::mutable_vec::MutableVec<std::rc::Rc<todo::Todo>>`
   |
   = note: required by `todo::_IMPL_DESERIALIZE_FOR_Todo::_serde::ser::SerializeStruct::serialize_field`

error[E0277]: the trait bound `futures_signals::signal_vec::mutable_vec::MutableVec<std::rc::Rc<todo::Todo>>: todo::_IMPL_DESERIALIZE_FOR_Todo::_serde::Deserialize<'_>` is not satisfied
  --> src/app.rs:22:5
   |
22 |     todo_list: MutableVec<Rc<Todo>>,
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `todo::_IMPL_DESERIALIZE_FOR_Todo::_serde::Deserialize<'_>` is not implemented for `futures_signals::signal_vec::mutable_vec::MutableVec<std::rc::Rc<todo::Todo>>`
   |
   = note: required by `todo::_IMPL_DESERIALIZE_FOR_Todo::_serde::de::SeqAccess::next_element`

error[E0277]: the trait bound `futures_signals::signal_vec::mutable_vec::MutableVec<std::rc::Rc<todo::Todo>>: todo::_IMPL_DESERIALIZE_FOR_Todo::_serde::Deserialize<'_>` is not satisfied
  --> src/app.rs:22:5
   |
22 |     todo_list: MutableVec<Rc<Todo>>,
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `todo::_IMPL_DESERIALIZE_FOR_Todo::_serde::Deserialize<'_>` is not implemented for `futures_signals::signal_vec::mutable_vec::MutableVec<std::rc::Rc<todo::Todo>>`
   |
   = note: required by `todo::_IMPL_DESERIALIZE_FOR_Todo::_serde::de::MapAccess::next_value`
Pauan commented 4 years ago

Thanks for letting me know. This was caused by a bug in futures-signals, which I have fixed. If you run cargo update then it should now work.