seems like probably all Substreams in https://github.com/pinax-network/substreams are broken. They depend on an old version of substreams-antelope which seems to be missing the serde import:
cargo build --target wasm32-unknown-unknown --release
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package: /Users/work/RustRover/substreams/erc721/Cargo.toml
workspace: /Users/work/RustRover/substreams/Cargo.toml
Updating crates.io index
Compiling substreams-antelope v0.1.1
error[E0432]: unresolved import `serde`
--> /Users/work/.cargo/registry/src/github.com-1ecc6299db9ec823/substreams-antelope-0.1.1/src/pb/sf.antelope.type.v1.rs:1:5
|
1 | use serde::{Serialize, Deserialize};
| ^^^^^ use of undeclared crate or module `serde`
error: cannot determine resolution for the derive macro `Serialize`
--> /Users/work/.cargo/registry/src/github.com-1ecc6299db9ec823/substreams-antelope-0.1.1/src/pb/sf.antelope.type.v1.rs:559:10
|
559 | #[derive(Serialize)]
| ^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
For more information about this error, try `rustc --explain E0432`.
error: could not compile `substreams-antelope` due to 2 previous errors
make: *** [build] Error 101
Updating substreams-antelope to 0.3.2 seems to be fixing this, but is then breaking the block imports as substreams_antelope::Block has been renamed to substreams_antelope::pb::Block.
seems like probably all Substreams in https://github.com/pinax-network/substreams are broken. They depend on an old version of substreams-antelope which seems to be missing the serde import:
Updating substreams-antelope to 0.3.2 seems to be fixing this, but is then breaking the block imports as substreams_antelope::Block has been renamed to substreams_antelope::pb::Block.