What does it mean for `use` statements to be version sorted?

⚓ Rust    📅 2025-10-18    👤 surdeus    👁️ 3      

surdeus

I was trying to find out if Rust had any guidelines regarding the order of use statements (i.e. what the order of workspace crates, std, and external crates should be). In doing so, I found the Rust Style guide which says that imports should be version sorted.

What does that mean? Sorted by the version in Cargo.toml?

4 posts - 4 participants

Read full topic

🏷️ Rust_feed