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

#1850 in Web programming

Download history 196/week @ 2024-07-04 168/week @ 2024-07-11 82/week @ 2024-07-18 265/week @ 2024-07-25 295/week @ 2024-08-01 48/week @ 2024-08-08 45/week @ 2024-08-15 93/week @ 2024-08-22 269/week @ 2024-08-29 288/week @ 2024-09-05 227/week @ 2024-09-12 290/week @ 2024-09-19 222/week @ 2024-09-26 408/week @ 2024-10-03 155/week @ 2024-10-10 122/week @ 2024-10-17

992 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–15MB
~194K SLoC