In your comments, you state:
I don’t want to use [mod functions] because it will search for settings/functions.rs, and it is not i want to
Have you tried that? Assuming you’ve declared the module correctly … this is exactly what you want.
main.rs:
mod functions;
mod settings;
fn main() {
...
}
settings.rs:
use functions;
pub fn something() {
functions::some_function_here();
}
If this does not work .. then there is something missing from your problem description.
2
solved Rust import error