Skip to content

v1.0.0

Latest
Compare
Choose a tag to compare
@SergioBenitez SergioBenitez released this 06 Mar 08:37
· 2 commits to master since this release

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.