1 个不稳定版本
使用旧的 Rust 2015
0.1.0 | 2015年7月9日 |
---|
#22 in #styling
4KB
119 lines
使用方法
[dependencies]
chalk = "0.1.0"
extern crate chalk;
use chalk::colors::Colors::*;
use chalk::Chalk;
fn main() {
let red_blue = Chalk::new(Red, "Hello World")
.underline()
.bg(Blue)
.bold()
.color();
println!("{}", red_blue);
}