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

#2163 in Web programming

Download history 453/week @ 2024-01-21 352/week @ 2024-01-28 123/week @ 2024-02-04 150/week @ 2024-02-11 193/week @ 2024-02-18 205/week @ 2024-02-25 88/week @ 2024-03-03 305/week @ 2024-03-10 355/week @ 2024-03-17 113/week @ 2024-03-24 260/week @ 2024-03-31 18/week @ 2024-04-07 118/week @ 2024-04-14 630/week @ 2024-04-21 28/week @ 2024-04-28 50/week @ 2024-05-05

829 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–19MB
~218K SLoC