Crate cprint

source ·
Expand description

Cargo-like printing

Easily print beautiful formatted messages like Cargo does.

§Examples

use cprint::{cprint, Color};

cprint!("Using", "cprint crate!", Color::Green);

Re-exports§

Modules§

Macros§

  • Print an error like Cargo does. The argument is the message of the error. The end of the title is padded with spaces to make it 12 characters long.
  • Same as ceprint! but with a newline at the end.
  • Print a message like Cargo does. The first argument is the title of the message, the second argument is the message itself and the third argument is the color of the title. The end of the title is padded with spaces to make it 12 characters long.
  • Same as cprint! but with a newline at the end.