axum-msgpack
axum-msgpack
adds MessagePack features to axum.
More information about this crate can be found in the crate documentation.
Features
- Serialize, Deserialize MessagePack from request/response
Usage example
use MsgPack;
use ;
// axum handler | MsgPack
async
// axum handler | MsgPack
async
// axum handler | MsgPackRaw
async
// axum handler | MsgPackRaw
async
Dependencies for serializing/deserializing MsgPack
= { = "1.0", = ["derive"] }
= "0.11"
In order to pack arrays correct remember to add #[serde(with = "serde_bytes")]
to the struct member.
Safety
This crate uses #![forbid(unsafe_code)] to ensure everything is implemented in 100% safe Rust.
License
This project is licensed under the MIT license.