#clippy #output #art #input #string #ascii-art #text

bin+lib clippy-output

Inputs a string and outputs ascii art of Clippy saying the text

3 unstable releases

0.2.0 Jun 28, 2021
0.1.1 Jun 23, 2021
0.1.0 Jun 23, 2021

#36 in #clippy

33 downloads per month

MIT license

11KB
219 lines

use clippy_output::ClippyOutput;

let mut clippy = ClippyOutput::new(50);
clippy
    .add_str("It looks like you're creating a project in\nRust. Would you like some help with that?");
clippy.finish();

let output: String = clippy.collect();
println!("{}", output);
/‾‾\
|  |
@  @
|| |/
|| ||
|\_/|
\___/
  /\
/‾  ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾\
| It looks like you're creating a project in     |
| Rust. Would you like some help with that?      |
\________________________________________________/

Dependencies

~0.7–1MB