error: cannot find derive macro `Deserialize` in this scope
--> /home/username/.cargo/registry/src/github.com-1ecc6299db9ec823/goldie-0.4.2/src/lib.rs:294:22
|
294 | #[derive(Deserialize)]
| ^^^^^^^^^^^
|
note: `Deserialize` is imported here, but it is only a trait, without a derive macro
--> /home/username/.cargo/registry/src/github.com-1ecc6299db9ec823/goldie-0.4.2/src/lib.rs:64:13
|
64 | use serde::{Deserialize, Serialize};
| ^^^^^^^^^^^
error[E0277]: the trait bound `Manifest: Deserialize<'_>` is not satisfied
--> /home/username/.cargo/registry/src/github.com-1ecc6299db9ec823/goldie-0.4.2/src/lib.rs:305:38
|
305 | let manifest: Manifest = serde_json::from_slice(&output.stdout).unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `Manifest`
|
= 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 127 others
note: required by a bound in `from_slice`
--> /home/username/.cargo/registry/src/github.com-1ecc6299db9ec823/serde_json-1.0.91/src/de.rs:2561:8
|
2561 | T: de::Deserialize<'a>,
| ^^^^^^^^^^^^^^^^^^^ required by this bound in `from_slice`
For more information about this error, try `rustc --explain E0277`.
error: could not compile `goldie` due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
username@DESKTOP-AADV0LD:~/repos/goldie-test-repo$ cargo --version
cargo 1.65.0 (4bc8f24d3 2022-10-20)
username@DESKTOP-AADV0LD:~/repos/goldie-test-repo$ rustc --version
rustc 1.65.0 (897e37553 2022-11-02)