build_log 0.1.0

Colored logging macros for Rust build scripts
Documentation
  • Coverage
  • 7.14%
    1 out of 14 items documented1 out of 6 items with examples
  • Size
  • Source code size: 6.51 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 298.85 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 8s Average build duration of successful builds.
  • all releases: 8s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • kdimonych/build_script_toolkit
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • kdimonych

build_log

Colored logging macros for Cargo build scripts.

Example

use build_log as log;

fn main() {
    log::info!("starting build step");
    log::warning!("using fallback configuration");
}

If DBG_PRINT=1 is present in the environment, the macros emit cargo:warning= lines so the messages stay visible in Cargo build output.