64 releases

Uses new Rust 2024

0.11.0 Nov 17, 2025
0.10.0 Dec 28, 2024
0.9.0 Oct 3, 2024
0.8.8 Jun 23, 2024
0.1.0-alpha Jun 28, 2020

#3 in #web-router

Download history 328/week @ 2026-02-11 323/week @ 2026-02-18 354/week @ 2026-02-25 559/week @ 2026-03-04 237/week @ 2026-03-11 168/week @ 2026-03-18 128/week @ 2026-03-25 157/week @ 2026-04-01 198/week @ 2026-04-08 181/week @ 2026-04-15 141/week @ 2026-04-22 180/week @ 2026-04-29 809/week @ 2026-05-06 1366/week @ 2026-05-13 888/week @ 2026-05-20 249/week @ 2026-05-27

3,348 downloads per month
Used in 6 crates (2 directly)

MIT license

240KB
6.5K SLoC

Viz

Robust Routing for Viz

Example

use viz_core::{IntoHandler, IntoResponse, Response, Result, Request};
use viz_router::{get, Router};

async fn index() -> Result<impl IntoResponse> {
  Ok(())
}

async fn ws(_: Request) -> Result<Response> {
  Ok(())
}

let app = Router::new()
    .route("/", get(index.into_handler()))
    .route("/ws/:name", get(ws));

License

This project is licensed under the MIT license.

Author

Dependencies

~6–8MB
~149K SLoC