3 unstable releases

0.2.0 Dec 14, 2023
0.1.0 Jul 18, 2022
0.1.0-alpha Jul 16, 2022

#183 in #async-http

31 downloads per month
Used in 2 crates

MIT license

9KB
97 lines

Viz

Macros for Viz

Macros

Macro Description
handler Extended Handler with Extractors

Example

use viz::{IntoResponse, Result, types::{Params}};
use viz_macros::handler;

#[handler]
fn about() -> impl IntoResponse {
}

#[handler]
async fn index() -> impl IntoResponse {
    ()
}

#[handler]
async fn get_user(Params(name): Params<String>) -> Result<impl IntoResponse> {
    Ok(name)
}

License

This project is licensed under the MIT license.

Author

Dependencies

~235–680KB
~16K SLoC