Skip to content

Docs project structure

Corey Richardson edited this page Mar 13, 2014 · 1 revision

Project structure in Rust is pretty free-form. The current convention is to have all source code in a src/ directory. src/lib.rs is the crate root for libraries and src/main.rs is the crate root for executables.

Examples go in src/examples and out-of-crate tests (not using the built-in unit testing) go in src/tests.

All Categories:

Clone this wiki locally