I meet a confused problem
|-- src | |--main.rs |--alg.rs |--material.rs
I want to refer to some struct in alg.rs from material.rs
// src/material.rs: ... mod alg; use crate::alg::*;
error[E0432]: unresolved import `crate::alg` --> src\material.rs:144:16 | 144 | use crate::alg::*; | ^^^ maybe a missing crate `alg`?
May I refer to struct in others rs only in main.rs/lib.rs?
I am a newbie, please help, thanks.