2
submitted 3 years ago by lemming_7765@lemmy.ml to c/rust@lemmy.ml

I would like to know if there are any proposals for internal file organization, like what to put from top to bottom...

Example: start with pub use declarations, then use, the mod, enums, traits, etc.

I've seen rustfmt has some options like reorder_imports that may impose some partial structure, but I would like a more comprehensive guide/spec...

If there's nothing like that. Can we maybe discuss something that makes sense? 🤔

no comments (yet)
sorted by: hot top new old
there doesn't seem to be anything here
this post was submitted on 13 Apr 2023
2 points (100.0% liked)

Rust Programming

9435 readers
1 users here now

founded 7 years ago
MODERATORS