How do you organize projects efficiently?

⚓ Rust    📅 2026-02-02    👤 surdeus    👁️ 9      

surdeus

Hey everyone, I'm having rust newbie questions here about the organization.

  • Is it a thing to have a project with multiple Cargo.toml? Therefore multiple different subfolders with their own src folder and Cargo.toml and one Cargo file at the root?
  • How do we manage the dependencies then? If I want to install tokio (that is used in all my packages), should I install it in the root Cargo? Or in each package?
  • If I need to add the dependency for each package, how about rust-analyzer how can I configure it to look into the sub-Cargo?

Hope my questions are clear enough.

Any lead or reference to good reads would also be great thank you very much :slight_smile:

5 posts - 4 participants

Read full topic

🏷️ Rust_feed