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

#1929 in Web programming

Download history 104/week @ 2024-07-20 285/week @ 2024-07-27 248/week @ 2024-08-03 44/week @ 2024-08-10 73/week @ 2024-08-17 84/week @ 2024-08-24 386/week @ 2024-08-31 185/week @ 2024-09-07 222/week @ 2024-09-14 327/week @ 2024-09-21 392/week @ 2024-09-28 232/week @ 2024-10-05 111/week @ 2024-10-12 200/week @ 2024-10-19 70/week @ 2024-10-26 103/week @ 2024-11-02

516 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

~7–15MB
~198K SLoC