Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
Pyjong1062126dHeheh sounds it has been fun so far x'D. Hmm never wrote Rust. But on first look it seems mod is import and use is namespace (as in using C++ namespace).
Let's see how internet works on this one.
12bitfloat3851126d@Pyjong I guess I've figured it out. Files and modules have basically nothing to do with eachother except for special files: main.rs, lib.rs and mod.rs. Naked "mod" is needed to declare that other source files even exist. "Use" is used to... well import modules from the virtual module tree, which is filled via "mod"-blocks from any source file