Open
Description
See also rust-lang/rfcs#3279
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 a cargo.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 from workspace::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 :)