| Crates.io | vidi-macros |
| lib.rs | vidi-macros |
| version | 0.1.0 |
| created_at | 2025-12-06 20:21:00.189557+00 |
| updated_at | 2025-12-06 20:21:00.189557+00 |
| description | The proc macros for Vidi |
| homepage | https://vidi.viz.rs |
| repository | https://github.com/viz-rs/vidi |
| max_upload_size | |
| id | 1970710 |
| size | 36,676 |
Macros for Vidi
| Macro | Description |
|---|---|
| handler | Extended Handler with Extractors |
use vidi::{IntoResponse, Result, types::{Params}};
use vidi_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)
}
This project is licensed under the MIT license.