Closed
Description
I'm trying to use clippy-driver in a non-cargo build system (Buck), by using it as a drop-in replacement for rustc. There are a few ways in which this could be improved:
clippy-driver
looks to see if its doing a check build by explicitly looking for the string--emit=dep-info,metadata
, which is the string that Cargo uses. This is brittle - for example, Buck's#check
builds don't usedep-info
. It should just check for the presence ofmetadata
.- It also relies on
CARGO_MANIFEST_DIR
being set to find.?clippy.toml
, and panics if it isn't. It should at least fall back to a default dir like.
. - It relies on
SYSROOT
being set to find the compiler - it would be nice if there a way to deriveSYSROOT
from the path of the executable and inhibit the search for a rustup installation.