3 unstable releases
0.2.0 | Dec 14, 2023 |
---|---|
0.1.0 | Jul 18, 2022 |
0.1.0-alpha | Jul 16, 2022 |
#173 in #async-http
24 downloads per month
Used in 2 crates
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
~260–710KB
~17K SLoC