axum-wasm-macros
A macro to ensure async axum routes can compile to WASM
Why?
Axum handlers return a Send
future. However, JS types do not return a Send
future. wasm_compat
will provide compatability between the return types.
Example
use wasm_compat;
use Router;
use get;
pub async