Skip to content

Releases: SergioBenitez/yansi

v1.0.0

06 Mar 08:37
Compare
Choose a tag to compare

Version 1.0.0 of yansi is now available.

For most users, upgrading will consist largely of changing calls of the form Paint::foo(value) to value.foo():

- use yansi::{Paint, Color};
+ use yansi::Paint;

println!("Testing, {}, {}, {}!",
-    Paint::red(1),
+    1.red(),
-    Paint::green(2).bold().underline(),
+    2.green().bold().underline(),
-    Paint::blue("3").bg(Color::White).italic());
+    "3".blue().on_white().italic());

Please see the rustdocs for complete documentation.