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

#1900 in Web programming

Download history 70/week @ 2024-10-27 123/week @ 2024-11-03 115/week @ 2024-11-10 162/week @ 2024-11-17 101/week @ 2024-11-24 115/week @ 2024-12-01 217/week @ 2024-12-08 81/week @ 2024-12-15 83/week @ 2024-12-22 49/week @ 2024-12-29 99/week @ 2025-01-05 95/week @ 2025-01-12 73/week @ 2025-01-19 72/week @ 2025-01-26 169/week @ 2025-02-02 111/week @ 2025-02-09

428 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–16MB
~198K SLoC