62 releases

0.9.0 Oct 3, 2024
0.8.8 Jun 23, 2024
0.8.5 May 28, 2024
0.8.4 Mar 23, 2024
0.1.0-alpha Jun 28, 2020

#1924 in Web programming

Download history 95/week @ 2024-08-20 189/week @ 2024-08-27 336/week @ 2024-09-03 226/week @ 2024-09-10 196/week @ 2024-09-17 346/week @ 2024-09-24 361/week @ 2024-10-01 186/week @ 2024-10-08 123/week @ 2024-10-15 173/week @ 2024-10-22 54/week @ 2024-10-29 161/week @ 2024-11-05 143/week @ 2024-11-12 134/week @ 2024-11-19 93/week @ 2024-11-26 87/week @ 2024-12-03

483 downloads per month
Used in 5 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–16MB
~198K SLoC