| Crates.io | qsync |
| lib.rs | qsync |
| version | 1.0.1 |
| created_at | 2023-02-19 00:47:55.04046+00 |
| updated_at | 2024-01-15 23:47:29.148111+00 |
| description | Generate react-query hooks for your rust backend (see https://github.com/Wulf/create-rust-app) |
| homepage | |
| repository | |
| max_upload_size | |
| id | 788570 |
| size | 41,859 |
Generated reat-query hooks for your services in actix-web, poem, axum, you-name-it.
Makes many assumptions!
fetch(..).json() should work)#[qsync] above your method names.#[qsync(return_type="string[]")] or whether it's a mutation or not (#[qsync(mutate)]).actix_web, make sure to declare the qsync attribute above above #[get("..")] or similar attributes which denote the endpoint's method and path. Rust evaluates macros from outer-most to the inner-most which means order is important!