cool-easter-32542
07/15/2025, 6:53 PMengine crate is both the primary crate in Pants and also the root of the Rust workspace. I'd like to reorganize the Rust sources to break that conjunction.
src/rust would become the new workspace root. All crates one level below engine would be moved to src/rust. For example, src/rust/engine/process_execution becomes src/rust/process_execution. The crates underneath process_execution (like src/rust/engine/process_execution/remote) would still live under src/rust/process_execution since they are arguably thematically related.
src/rust/engine/Cargo.toml would be split into the workspace-specific part and the engine-specific part. Currently, it serves dual purposes.
Benefits:
1. Easier to understand engine since its top-level directory is not polluted with every other crate.
2. The workspace Cargo.toml will be separate from the engine Cargo.toml. It will make it easier for readers to reason about the workspace and engine.
pantsbuild/pantscool-easter-32542
07/16/2025, 7:43 PM