1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
//! # vld-web — HTTP integrations for the `vld` validation library
//!
//! Extractors, filters and error responses that validate request data with
//! `vld` schemas, one module per web framework. Every module is behind its
//! feature; none is on by default:
//!
//! ```toml
//! vld-web = { version = "0.8", features = ["axum"] }
//! ```
//!
//! | Module | Feature | Framework |
//! |---|---|---|
//! | [`common`] | — | framework-agnostic parsing helpers and the shared error type, for custom adapters |
//! | `axum` | `axum` | axum 0.8 extractors |
//! | `actix` | `actix` | actix-web 4 extractors |
//! | `ntex3` / `ntex4` | `ntex-3` / `ntex-4` (+ `ntex-compress`) | ntex 3 / ntex 4 extractors |
//! | `poem` | `poem` | poem 3 extractors |
//! | `rocket` | `rocket` | Rocket 0.5 data guards, request guards and catchers |
//! | `salvo` | `salvo` | salvo 1 extractors |
//! | `warp` | `warp` | warp 0.3 – 0.4 filters |
//! | `rama` | `rama` | rama 0.4 extractors and a validation layer |
//! | `tower` | `tower` | a Tower layer validating JSON bodies (any Tower-based framework) |
//! | `tonic` | `tonic` | tonic 0.12 – 0.14 message and metadata validation |
//! | `async_graphql` | `async-graphql` | async-graphql 7 input validator and errors with `extensions.issues` |
//! | `tungstenite` | `tungstenite` | tungstenite 0.26 – 0.30 WebSocket messages (also tokio-/async-tungstenite) |
//! | `axum::ws` | `axum-ws` | axum WebSocket messages |
//! | `lambda` | `lambda` | AWS Lambda: `lambda_http` 1 requests and raw `lambda_runtime` events |
//! | `rmcp` | `rmcp` | MCP tools (rmcp 3): vld-validated arguments, `isError` results with model feedback |
//! | `rig` | `rig` | rig 0.47 tools: vld-validated arguments, schema per LLM provider |
//!
//! Every HTTP module answers with the same error bodies (422 / 413 / 415,
//! see [`common#error-bodies`](common#error-bodies)) and parses query
//! strings, forms, paths, headers and cookies by the same rules.
//!
//! ```ignore
//! use vld_web::axum::{VldJson, VldQuery};
//! ```
//!
//! Some features need a newer compiler than the crate's `rust-version`
//! (see MSRV.md); cargo reports the framework's `rust-version` then.
/// Implement `Deref`/`DerefMut` to the inner value for tuple extractors
/// `Name<T>(pub T)`.
pub use impl_deref;