facet-axum
facet-axum
Axum integration for Facet - extractors and responses using Facet's serialization.
This crate provides Axum extractors and response types that use Facet's serialization instead of serde. This allows you to use Facet-derived types directly in your Axum handlers without needing serde derives.
Quick start
use ;
use Facet;
use ;
async
async
let app = new
.route
.route;
Feature flags
json(default): EnablesJson<T>extractor/response usingfacet-jsonform(default): EnablesForm<T>andQuery<T>extractors usingfacet-urlencodedyaml: EnablesYaml<T>extractor/response usingfacet-yamltoml: EnablesToml<T>extractor/response usingfacet-tomlxml: EnablesXml<T>extractor/response usingfacet-xmlmsgpack: EnablesMsgPack<T>extractor/response usingfacet-msgpackpostcard: EnablesPostcard<T>extractor/response usingfacet-postcardall: Enables all format features
Sponsors
Thanks to all individual sponsors:
...along with corporate sponsors:
...without whom this work could not exist.
Special thanks
The facet logo was drawn by Misiasart.
License
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.