Rust doesn't seem to have the concept of an internal/private crate. Any dependency of a public crate must also be publicly published on crates.io. There's no way to split a library into multiple crates in a way that is invisible to end users.

Dec 16, 2023 · 11:23 PM UTC

1
315
You can break a crate into private modules. But modules are allowed to have circular dependencies between them. So within a crate, there is no enforced discipline to prevent the crate from being arbitrarily tangled spaghetti.
1
228
I wish there was a way to factor code internally such that you can enforce a strict DAG shape when you want to.
175
Sort replies: Relevant Recent Liked