A deep dive in module system of Rust 2018

Yep, I think that's a good point, I didn't use that.

I certainly don't want that syntactic baggage and semantic complexity in my code unless I really need it.

Also as far as I can tell lib.rs is used as a starting point for discovering doctests. When I had only main.rs but no lib.rs doctests were not run/could not be found.

See issue 50784.

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.