News for hackers. Stuff that matters.
Re:Learning Rust – Day 4 – Understanding Modules by duped on Thursday May 12, 2022 @04:48PM (#31359972)
Folder structure

    src/lib.rs
        lib/
            mod.rs
            m.rs
In lib.rs

    use lib::m;
In lib/mod.rs

    pub mod m;
You need the mod.rs file in subdirectories.

There are no comments on this comment yet.