new updates on https://rustclamp.com/
rust
use std::io::{self, BufRead};
use rustclamp::prelude::*;
fn main() {
Clamp::run(|| {
println!("Clamp TUI. Type a line, or `quit` to exit.");
for line in io::stdin().lock().lines().map_while(Result::ok) {
if line.trim() == "quit" {
break;
}
println!("you said: {line}");
}
});
}
RustClampRustClamp — The Application Composition Layer for RustRustClamp is the application composition layer for Rust: it sits above the crates you already use and composes them into one application. Start with a tiny program, add only the capabilities it needs, and keep Rust's performance and control.
commit 1b10a0f