Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

crate root

The file the compiler starts from when building a crate: src/main.rs or src/lib.rs.

The crate root is the source file rustc compiles first; it forms the top module, named crate, and every other module is reached from it through mod declarations.

Loading interactive…

Read the full section →