- I have create a new project with cargo.
- I the src/ folder, I have a main.rs file.
- I have added an m1.rs file and I can refer it in main.rs as m1 (imported with : "mod m1").
My question is : how can I do the same for m1: i.e. create an m2.rs file which I can import as m1 into m2 and refer to as m1?
Simply trying to import m2 into m1 as if m1 was main.rs does not seem to work.