Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/altair-bueno/axum-garde
https://github.com/altair-bueno/axum-garde
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/altair-bueno/axum-garde
- Owner: Altair-Bueno
- Created: 2023-03-31T18:22:57.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-04-02T19:48:07.000Z (over 1 year ago)
- Last Synced: 2024-10-12T07:47:23.296Z (2 months ago)
- Language: Rust
- Size: 27.3 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# axum-garde
Provide [garde](https://github.com/jprochazk/garde) validation on your
[axum](https://github.com/tokio-rs/axum) application.# Getting started
The most important element on this library is [`WithValidation`], a composable
[`extractor`] that performs validation over some payload contents.# Features
| Feature | Description | Default? |
| --------------------- | ---------------------------------------------------------------------------------------------- | -------- |
| `json` | Enables support for [`axum::extract::Json`] | ✅ |
| `form` | Enables support for [`axum::extract::Form`] | ✅ |
| `query` | Enables support for [`axum::extract::Query`] | ✅ |
| `axum-extra` | Enables support for [`axum_extra::extract::WithRejection`] and [`axum_extra::extract::Cached`] | ❌ |
| `axum-extra-protobuf` | Enables support for [`axum_extra::protobuf::Protobuf`] | ❌ |
| `axum-extra-query` | Enables support for [`axum_extra::extract::Query`] | ❌ |
| `axum-yaml` | Enables support for [`axum_yaml::Yaml`] | ❌ |
| `axum-msgpack` | Enables support for [`axum_msgpack::MsgPack`] and [`axum_msgpack::MsgPackRaw`] | ❌ |# Useful links
[`withvalidation`]: crate::WithValidation
[`extractor`]: axum::extract