#modules

0 followers

Your profile photo
Write a story…

How do you organize Rust modules?

Rust now supports two ways to organize multi-file modules. The traditional way, which is like Python's __init__.py: lib.rs my_module/ mod.rs m…

mod.rs in directory, it's better

20%

is there more than one way? (mod.rs)

10%

my_module.rs in parent directory

10%

I like turtles

60%

10 votes · Closed