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"