RLS and cargo check run sometimes unnecesary build.rs steps #6834
Labels
A-build-scripts
Area: build.rs scripts
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
When running an IDE using RLS or just running
cargo check
, some large projects using crates that have big static builds of non Rust based native libraries, thebuild.rs
of those dependencies run a complete build of the non Rust code.One example is
openssl
, when using it in vendored mode, takes a lot of time to get feedback on an IDE because it will build openssl entirely, something it isn't needed for getting the information RLS orcargo check
needs, they don't need a complete build of those crates.Maybe standardizing some kind of environment variable passed to the
build.rs
program could tell these dependencies that the build is being run for RLS or cargo check, and these scripts could be updated to be smarter, avoiding the native build in these circumstances.This will require cooperation of
build.rs
users but it is better than than the current status where an IDE takes too much time to give some feedback.The text was updated successfully, but these errors were encountered: