Function rustc_session::utils::was_invoked_from_cargo

source ·
pub fn was_invoked_from_cargo() -> bool
Expand description

Returns whenever rustc was launched by Cargo as opposed to another build system.

To be used in diagnostics to avoid printing Cargo specific suggestions to other build systems (like Bazel, Buck2, Makefile, …).