The best way to fix this is to rename the manifest file to mod.rs and change the first line in main.rs to:
mod lib;
and change mod.rs to:
pub mod structs {
mod entity;
}
I think the reason for your error is because there’s a manifest.rs file but no folder. Why this causes the subfolder files to not load I can’t say, I’m still new to Rust myself so there’s a good chance I’m wrong.
Someone with more Rust knowledge might know, but since they’re downvoting instead of being helpful, I doubt you’d get a better answer.
3
solved Trying to get Rust to load files