build_logger 0.1.0

A logger to be used in build scripts.
Documentation
  • Coverage
  • 100%
    2 out of 2 items documented2 out of 2 items with examples
  • Size
  • Source code size: 20.26 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 242.7 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 22s Average build duration of successful builds.
  • all releases: 22s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Anders429/build_logger
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Anders429

build_logger

GitHub Workflow Status crates.io docs.rs License

A logger to be used in build scripts.

Allows logging through the log crate within a build script. Log messages are displayed as Cargo warning messages.

Usage

To use build_logger, initialize it by calling init(). After this, using the log crate's logging facade will display as warnings through Cargo.

//! build.rs

fn main() {
    build_logger::init().expect("could not initialize build_logger");

    log::info!("Hello, world!");
}

License

This project is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.