Watch
1
0
Fork
You've already forked rust-lang-rust
0
mirror of https://github.com/rust-lang/rust.git synced 2026-12-04 22:30:52 +01:00
1 Docs project structure
Corey Richardson edited this page 2014-03-13 12:09:43 -07:00

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.