2 releases

0.1.1 Feb 26, 2024
0.1.0 Feb 23, 2024

#1134 in Encoding

MIT license

6KB
114 lines


#[derive(Deserialize)]
struct MyRequest {
...
}

#[derive(Serialize)]
struct MyResponse {
...
}

async fn my_handler(axum_bson::Bson(request): axum_bson::Bson<MyRequest>) -> axum_bson::Bson<MyResponse> {
    ...
    MyResponse {...}
}

Dependencies

~8MB
~156K SLoC