9 lines
252 B
Rust
9 lines
252 B
Rust
use spinoff::{Color, Spinner, Spinners};
|
|
use std::{thread::sleep, time::Duration};
|
|
|
|
fn main() {
|
|
let sp = Spinner::new(Spinners::Dots, "Loading...", Some(Color::Blue));
|
|
sleep(Duration::from_secs(5));
|
|
sp.stop_and_persist("🍕", "Pizza!");
|
|
}
|