perseus snoop output

📅 2022-11-23T15:55:30.461Z
👁️ 110 katselukertaa
🔓 Julkinen


➜  client git:(main) ✗ perseus snoop wasm-build
[INFO]: Checking for the Wasm target...
[INFO]: Compiling to Wasm...
   Compiling client v0.1.0 (/home/ilari/git/filu/client)
warning: unused import: `RenderFnResultWithCause`
 --> /home/ilari/git/filu/client/src/templates/index.rs:1:15
  |
1 | use perseus::{RenderFnResultWithCause, Template, Html};
  |               ^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

error[E0277]: the trait bound `IndexPropsRx<'_>: Deserialize<'_>` is not satisfied
    --> /home/ilari/git/filu/client/src/templates/index.rs:19:1
     |
19   | #[perseus::template]
     | ^^^^^^^^^^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `IndexPropsRx<'_>`
     |
     = help: the following other types implement trait `Deserialize<'de>`:
               &'a Path
               &'a [u8]
               &'a str
               ()
               (T0, T1)
               (T0, T1, T2)
               (T0, T1, T2, T3)
               (T0, T1, T2, T3, T4)
             and 123 others
note: required by a bound in `serde_json::from_str`
    --> /home/ilari/.cargo/registry/src/github.com-1ecc6299db9ec823/serde_json-1.0.89/src/de.rs:2603:8
     |
2603 |     T: de::Deserialize<'a>,
     |        ^^^^^^^^^^^^^^^^^^^ required by this bound in `serde_json::from_str`
     = note: this error originates in the attribute macro `perseus::template` (in Nightly builds, run with -Z macro-backtrace for more info)

For more information about this error, try `rustc --explain E0277`.
warning: `client` (lib) generated 1 warning
error: could not compile `client` due to previous error; 1 warning emitted
Error: Compiling your crate to WebAssembly failed
Caused by: failed to execute `cargo build`: exited with exit status: 101
  full command: "cargo" "build" "--lib" "--target" "wasm32-unknown-unknown"
➜  client git:(main) ✗