News for hackers. Stuff that matters.
Re:How to Structure C Projects: These Best Practices Worked ... by treyd on Friday March 08, 2024 @02:08PM (#39644868)
Module definitions in Rust have simple rules that resolve `mod foo;` into foo.rs or foo/mod.rs, which lives in the filesystem layout just as it does in C, you just don't have to use quotes and it has to form a tree from a root module at lib.rs. If you want to be even more explicit about it there's an attribute you can put on a `mod` item to override the normal path resolution rules.

There are no comments on this comment yet.