-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathCargo.toml
102 lines (93 loc) · 3.12 KB
/
Cargo.toml
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
101
102
[package]
name = "axum-valid"
version = "0.22.0"
description = "Provides validation extractors for your Axum application, allowing you to validate data using validator, garde, validify or all of them."
authors = ["GengTeng <[email protected]>"]
license = "MIT"
homepage = "https://github.com/gengteng/axum-valid"
repository = "https://github.com/gengteng/axum-valid"
documentation = "https://docs.rs/axum-valid"
keywords = [
"axum",
"validator",
"extractor",
"garde",
"validify",
]
categories = [
"asynchronous",
"network-programming",
"web-programming",
]
edition = "2021"
[package.metadata.docs.rs]
features = ["full", "aide"]
[dependencies]
axum = { version = "0.8", default-features = false }
garde = { version = "0.22.0", optional = true }
validator = { version = "0.20.0", optional = true }
validify = { version = "1.4.0", optional = true }
[dependencies.axum-extra]
version = "0.10"
default-features = false
optional = true
[dependencies.axum-serde]
version = "0.8.1"
optional = true
[dependencies.axum_typed_multipart]
version = "0.15.1"
optional = true
[dependencies.serde]
version = "1.0.217"
optional = true
[dependencies.aide]
version = "0.14.0"
optional = true
[dev-dependencies]
anyhow = "1.0.87"
axum = { version = "0.8", features = ["macros"] }
tokio = { version = "1.43.0", features = ["full"] }
reqwest = { version = "0.12.3", features = ["json", "multipart"] }
serde = { version = "1.0.195", features = ["derive"] }
validator = { version = "0.20.0", features = ["derive"] }
garde = { version = "0.22.0", features = ["serde", "derive"] }
serde_json = "1.0.108"
serde_yaml = "0.9.33"
quick-xml = { version = "0.37.1", features = ["serialize"] }
ciborium = { version = "0.2.2" }
toml = "0.8.14"
mime = "0.3.17"
prost = "0.13.4"
once_cell = "1.20.2"
rmp-serde = "1.3.0"
[features]
default = ["basic", "validator"]
basic = ["json", "form", "query"]
garde = ["dep:garde"]
validator = ["dep:validator"]
validify = ["dep:validify"]
json = ["axum/json"]
form = ["axum/form"]
query = ["axum/query"]
typed_header = ["extra", "axum-extra/typed-header"]
msgpack = ["dep:axum-serde", "axum-serde/msgpack"]
yaml = ["dep:axum-serde", "axum-serde/yaml"]
xml = ["dep:axum-serde", "axum-serde/xml"]
toml = ["dep:axum-serde", "axum-serde/toml"]
sonic = ["dep:axum-serde", "axum-serde/sonic"]
cbor = ["dep:axum-serde", "axum-serde/cbor"]
typed_multipart = ["dep:axum_typed_multipart"]
into_json = ["json", "dep:serde", "garde?/serde"]
422 = []
extra = ["dep:axum-extra"]
extra_typed_path = ["extra", "axum-extra/typed-routing"]
extra_query = ["extra", "axum-extra/query"]
extra_form = ["extra", "axum-extra/form"]
extra_protobuf = ["extra", "axum-extra/protobuf"]
all_extra_types = ["extra", "typed_header", "extra_typed_path", "extra_query", "extra_form", "extra_protobuf"]
all_types = ["json", "form", "query", "msgpack", "yaml", "xml", "toml", "sonic", "cbor", "all_extra_types", "typed_multipart"]
full_validator = ["validator", "all_types", "422", "into_json"]
full_garde = ["garde", "all_types", "422", "into_json"]
full_validify = ["validify", "all_types", "422", "into_json"]
full = ["full_validator", "full_garde", "full_validify"]
aide = ["dep:aide"]