Put Searching Parent Directories for Cargo.toml
Behind Logical Gate
#7871
Labels
A-cargo-api
Area: cargo-the-library API and internal code issues
A-filesystem
Area: issues with filesystems
A-manifest
Area: Cargo.toml issues
A-workspaces
Area: workspaces
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
S-needs-team-input
Status: Needs input from team on whether/how to proceed.
Describe the problem you are trying to solve
In
cargo-outdated
we are seeing an issue (we build the project under/tmp
) where if there's acargo.toml
that was moved to/tmp/
cargo build will fail.Describe the solution you'd like
Either a seperate
find_root()
(link)that we can trigger fromworkspace::new()
, or a config option to stop the function from crawling upwards (link) in the directory ancestors.Notes
This was mentioned in #4992 (comment)
I understand this is necessary for cargo and it's the intended function; however, using cargo as an API there should be a way to avoid this :)
The text was updated successfully, but these errors were encountered: