A rust crate i use for my projects
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

update

MrSnowy a903140e 7bf687ba

+17 -4
+1 -1
Cargo.lock
··· 4 4 5 5 [[package]] 6 6 name = "snowy_libs" 7 - version = "0.1.0" 7 + version = "0.1.1"
+1 -1
Cargo.toml
··· 1 1 [package] 2 2 name = "snowy_libs" 3 - version = "0.1.0" 3 + version = "0.1.1" 4 4 edition = "2024" 5 5 6 6 [dependencies]
+15 -2
src/lib.rs
··· 61 61 let remaining_time = (still_todo / time_per_percentage).ceil(); 62 62 63 63 if done == total { 64 - string.push_str(&format!(" {}/{} {}% || done! \n", done, total, procentage)); 64 + string.push_str(&format!( 65 + " {}/{} {}% || in {}s! \n", 66 + done, 67 + total, 68 + procentage, 69 + going_for.round() 70 + )); 65 71 } else { 66 72 string.push_str(&format!( 67 73 " {}/{} {}% || {}s ", ··· 96 102 97 103 let value = Arc::new(AtomicU64::from(0)); 98 104 99 - start_progress_bar(&value, 100, 50, "Being silly", now, Duration::from_secs(1)); 105 + start_progress_bar( 106 + &value, 107 + 100, 108 + 50, 109 + "Being silly", 110 + now, 111 + Duration::from_millis(1), 112 + ); 100 113 101 114 for _ in 0..=100 { 102 115 value.fetch_add(1, Ordering::Relaxed);