rustigo 1.1.4

A Rust webserver inspired by the Go standard library's HTTPServer
Documentation
  • Coverage
  • 55%
    11 out of 20 items documented5 out of 9 items with examples
  • Size
  • Source code size: 17.63 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 4.81 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 15s Average build duration of successful builds.
  • all releases: 13s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • BenMcAvoy/Rustigo
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • BenMcAvoy

Rustigo

A Rust webserver inspired by the Go standard library's HTTPServer

Features:

  • Lightweight
  • Pattern matched routes
  • No dependencies

Example

use rustigo::prelude::*;

fn index(stream: TcpStream, _: Request) {
    html!(stream; "<h1>Hello, world!</h1>");
}

fn main() {
    let mut rustigo = Rustigo::default();

    rustigo.handle("/", Arc::new(index));

    rustigo.listen("localhost:7878", 4).unwrap();
}