Is the Log
reserved word like lib
? Because it resolving until add lib.rs
file in project /src
unresolved import `crate::Log`
no `Log` in the root
UPD
seems not reserved, it happen only when connect in lib.rs
some mod from main.rs
crate
// lib.rs
pub mod connection; // same in main.rs
UPD2 / solution
looks like I can't just use main.rs
features in lib.rs
- instead of that, I should define those members in lib.rs
and use them as part of library API.