scale-info
is imported if possible, and the declaration use scale_info::{TypeInfo};
works to import scale_info::TypeInfo
to be asccessible as TypeInfo
throughout the mod registrations
scope
$ cargo contract build
[1/5] Building cargo project
Updating crates.io index
Compiling registrations v0.1.0 (/tmp/cargo-contract_2tPvAR)
error[E0432]: unresolved import `scale_info`
--> /home/dips/rust/registrations/lib.rs:14:9
|
14 | use scale_info::{TypeInfo};
| ^^^^^^^^^^ use of undeclared crate or module `scale_info`
error: cannot determine resolution for the derive macro `TypeInfo`
--> /home/dips/rust/registrations/lib.rs:83:14
|
83 | #[derive(TypeInfo)]
| ^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports