base lib with cpu benchmark and basic cli

This commit is contained in:
2026-03-23 22:54:03 +01:00
commit fca667e380
7 changed files with 697 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
use colored::Color;
use colored::Colorize;
trait Slime {
fn label(&self) -> String;
fn value(&self) -> String;
fn icon(&self) -> String;
fn color(&self) -> Color;
fn print(&self) {
println!(
"{} {:<12} {}",
self.icon().color(self.color()),
format!("{}:", self.label()).bold().color(self.color()),
self.value().white()
);
}
}