hand 0.1.2

Easy to use, pretty cmd log for lazy devs
Documentation
  • Coverage
  • 75.68%
    28 out of 37 items documented27 out of 28 items with examples
  • Size
  • Source code size: 21.68 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 477.01 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 12s Average build duration of successful builds.
  • all releases: 12s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • nomoreqwerty/hand
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • nomoreqwerty

🗃️ A simple log library, similar to leg, but with macros

Thanks to jesusprubio for the idea

  • Prints to stderr
  • NO_COLOR is not supported (you can change it)

Example

use hand::*;

fn main() {
    // Basic usage
    infoln!("This is an info message");
    warnln!("This is a warning message");
    errorln!("This is an error message");

    // Without new line
    info!("Scanning dogs ... ");
    successln!("complete");

    // With scope
    scopeinfoln!("scope", "Some message with a scope");

    // Support formatting!
    let error_msg = "file not found";
    scopeerrorln!("critical", "Critical error: {}", error_msg);

    infoln!("Continuing in {} seconds", 3);
    waitln!("Cooldown {} seconds", std::time::Duration::from_millis(3000).as_secs());
}

Terminal output