Verbose Cargo Logging

Verbose Cargo Logging #


In Rust, Cargo is the package manager that also serves as a build system. The CARGO_LOG environment variable is used to control the logging of Cargoโ€™s internal operations. When you set CARGO_LOG="cargo::core::compiler::fingerprint=info", youโ€™re specifically instructing Cargo to log information related to the compilerโ€™s fingerprinting process. Fingerprinting in this context refers to how Cargo decides whether a particular component of your project needs to be recompiled. By setting the log level to info, youโ€™re asking Cargo to provide more detailed logs about this process, which can be useful for debugging and understanding the build process better.

This will let you know why stuff keeps recompiling. ๐Ÿฑ

CARGO_LOG="cargo::core::compiler::fingerprint=info"