tija_tools-0.1.1 has been yanked.
tija_tools
tija_tools is a Rust library providing a set of utilities designed to perform common tasks in Rust programming. This library is open for use and can be utilized in various applications, offering simple and effective solutions.
Installation
Add this to your Cargo.toml:
[]
= "0.1.0"
##ussage
terminal::{ProgressRing, AnimationMode};
time::Duration;
{
time::sleep(Duration::from_secs(10)).await;
}
#[tokio::main]
{
Vec<String> = std::env::args().collect();
"test".to_string())
{
= ProgressRing::new(100, 10, Some(vec!["1","2","3","4","3","2"]), Some('s'));
run_with_animation(&mut ring, AnimationMode::Rotate, my_task()).await;
run_with_animation(&mut ring, AnimationMode::Bounce, my_task()).await;
run_with_animation(&mut ring, AnimationMode::Bounce2, my_task()).await;
run_with_animation(&mut ring, AnimationMode::Loading, my_task()).await;
}
}