| Crates.io | starterm |
| lib.rs | starterm |
| version | 0.0.1 |
| created_at | 2025-07-12 21:09:26.979649+00 |
| updated_at | 2025-07-12 21:09:26.979649+00 |
| description | serve the web at starterm speeds |
| homepage | |
| repository | https://github.com/commandlinedev/starterm-server |
| max_upload_size | |
| id | 1749700 |
| size | 500,254 |
A super-easy, composable, web server framework for starterm speeds.
The fundamental building block of starterm is the Filter: they can be combined
and composed to express rich requirements on requests.
Thanks to its Filter system, starterm provides these out of the box:
Since it builds on top of hyper, you automatically get:
Add starterm and Tokio to your dependencies:
tokio = { version = "1", features = ["full"] }
starterm = "0.3"
And then get started in your main.rs:
use starterm::Filter;
#[tokio::main]
async fn main() {
// GET /hello/starterm => 200 OK with body "Hello, starterm!"
let hello = starterm::path!("hello" / String)
.map(|name| format!("Hello, {}!", name));
starterm::serve(hello)
.run(([127, 0, 0, 1], 3030))
.await;
}
For more information you can check the docs or the examples.