<#22500 reorganize rust sources to have `src/rust`...
# github-notifications
c
#22500 reorganize rust sources to have `src/rust` be the workspace root Issue created by tdyas Currently, the
engine
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/pants