starterm

Crates.iostarterm
lib.rsstarterm
version0.0.1
created_at2025-07-12 21:09:26.979649+00
updated_at2025-07-12 21:09:26.979649+00
descriptionserve the web at starterm speeds
homepage
repositoryhttps://github.com/commandlinedev/starterm-server
max_upload_size
id1749700
size500,254
KhulnaSoft bot (khulnasoft-bot)

documentation

https://docs.rs/starterm

README

starterm

crates.io Released API docs MIT licensed GHA Build Status Discord chat

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:

  • Path routing and parameter extraction
  • Header requirements and extraction
  • Query string deserialization
  • JSON and Form bodies
  • Multipart form data
  • Static Files and Directories
  • Websockets
  • Access logging
  • Gzip, Deflate, and Brotli compression

Since it builds on top of hyper, you automatically get:

  • HTTP/1
  • HTTP/2
  • Asynchronous
  • One of the fastest HTTP implementations
  • Tested and correct

Example

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.

Commit count: 0

cargo fmt