63 releases

0.10.0 Dec 28, 2024
0.9.0 Oct 3, 2024
0.8.8 Jun 23, 2024
0.8.4 Mar 23, 2024
0.1.0-alpha Jun 28, 2020

#2109 in Web programming

Download history 127/week @ 2024-11-20 91/week @ 2024-11-27 136/week @ 2024-12-04 179/week @ 2024-12-11 53/week @ 2024-12-18 114/week @ 2024-12-25 59/week @ 2025-01-01 107/week @ 2025-01-08 62/week @ 2025-01-15 81/week @ 2025-01-22 68/week @ 2025-01-29 233/week @ 2025-02-05 161/week @ 2025-02-12 214/week @ 2025-02-19 170/week @ 2025-02-26 125/week @ 2025-03-05

695 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–16MB
~207K SLoC