57 releases

0.8.4 Mar 23, 2024
0.8.0 Jan 12, 2024
0.7.1 Dec 21, 2023
0.5.0-rc.2 Dec 30, 2022
0.1.0-alpha Jun 28, 2020

#1665 in Asynchronous

Download history 1711/week @ 2023-12-18 790/week @ 2023-12-25 1457/week @ 2024-01-01 1204/week @ 2024-01-08 1082/week @ 2024-01-15 430/week @ 2024-01-22 350/week @ 2024-01-29 130/week @ 2024-02-05 145/week @ 2024-02-12 200/week @ 2024-02-19 202/week @ 2024-02-26 111/week @ 2024-03-04 288/week @ 2024-03-11 362/week @ 2024-03-18 96/week @ 2024-03-25 263/week @ 2024-04-01

1,039 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–18MB
~212K SLoC