A comprehensive Rust style guide covering project structure, file structure, and function structure conventions. Key guidelines include preferring mod.rs over name.rs for directory modules, keeping directory-root modules as re-export-only, avoiding compound imports to reduce merge conflicts, ordering public items before private

10m read timeFrom epage.github.io
Post cover image
Table of contents
ChecklistPrinciplesProject structureSimple visibility (P-VISIBILITY)File structureFunction structure

Sort: