Skip to content

Commit 16de786

Browse files
committed
feat(aide, axum-jsonschema, aide-axum-sqlx-tx): axum 0.7 support
1 parent c3087b8 commit 16de786

File tree

14 files changed

+218
-286
lines changed

14 files changed

+218
-286
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
[workspace]
22
members = ["crates/*", "examples/*"]
3+
resolver = "2"

crates/aide-axum-sqlx-tx/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "aide-axum-sqlx-tx"
3-
version = "0.12.0"
3+
version = "0.13.0"
44
edition = "2021"
55
resolver = "2"
66
authors = ["Wicpar"]
@@ -13,7 +13,7 @@ readme = "README.md"
1313
[dependencies]
1414
sqlx-06 = { package = "axum-sqlx-tx", version = "0.5.0", optional = true }
1515
sqlx-07 = { package = "axum-sqlx-tx", version = "0.6.0", optional = true }
16-
aide = { version = "0.12.0", path = "../aide" }
16+
aide = { version = "0.13.0", path = "../aide" }
1717

1818
[dev-dependencies]
1919
sqlx = { version = "^0.7", features = ["postgres"] }

crates/aide/Cargo.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "aide"
3-
version = "0.12.0"
3+
version = "0.13.0"
44
authors = ["tamasfe"]
55
edition = "2021"
66
keywords = ["generate", "api", "openapi", "documentation", "specification"]
@@ -10,8 +10,8 @@ description = "A code-first API documentation library"
1010
readme = "README.md"
1111

1212
[dependencies]
13-
indexmap = { version = "1", features = ["serde"] }
14-
schemars = { version = "0.8", features = ["impl_json_schema", "indexmap"] }
13+
indexmap = { version = "2.1", features = ["serde"] }
14+
schemars = { version = "0.8.16", features = ["impl_json_schema", "indexmap2"] }
1515
serde = "1"
1616
serde_json = "1"
1717
thiserror = "1"
@@ -20,26 +20,26 @@ aide-macros = { version = "0.7.0", path = "../aide-macros", optional = true }
2020
derive_more = "0.99.17"
2121

2222
bytes = { version = "1", optional = true }
23-
http = { version = "0.2", optional = true }
23+
http = { version = "1.0.0", optional = true }
2424

25-
axum = { version = "0.6.0", optional = true }
26-
axum-extra = { version = "0.7.3", optional = true }
25+
axum = { version = "0.7.1", optional = true }
26+
axum-extra = { version = "0.9.0", optional = true }
2727
tower-layer = { version = "0.3", optional = true }
2828
tower-service = { version = "0.3", optional = true }
2929
cfg-if = "1.0.0"
3030

3131

3232
# custom axum extractors
3333
serde_qs = { version = "0.12.0", optional = true }
34-
jwt-authorizer = { version = "0.10", default-features = false, optional = true }
34+
jwt-authorizer = { version = "0.13", default-features = false, optional = true }
3535

3636
[features]
3737
macros = ["dep:aide-macros"]
3838
redoc = []
3939
skip_serializing_defaults = []
4040

4141
axum = ["dep:axum", "bytes", "http", "dep:tower-layer", "dep:tower-service", "serde_qs?/axum"]
42-
axum-headers = ["axum/headers"]
42+
# axum-headers = ["axum/headers"]
4343
axum-ws = ["axum/ws"]
4444
axum-multipart = ["axum/multipart"]
4545
axum-extra = ["axum", "dep:axum-extra"]

crates/aide/src/axum/inputs.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@ use crate::{
66
},
77
operation::{add_parameters, set_body},
88
};
9-
use axum::extract::{
10-
BodyStream, ConnectInfo, Extension, Form, Host, Json, MatchedPath, OriginalUri, Path, Query,
11-
RawBody, RawQuery, State,
9+
use axum::{
10+
body::Body,
11+
extract::{
12+
ConnectInfo, Extension, Form, Host, Json, MatchedPath, OriginalUri, Path, Query, RawQuery,
13+
State,
14+
},
1215
};
1316
use indexmap::IndexMap;
1417
use schemars::{
@@ -24,11 +27,10 @@ use crate::{
2427

2528
impl<T> OperationInput for Extension<T> {}
2629
impl<T> OperationInput for State<T> {}
27-
impl OperationInput for BodyStream {}
2830
impl<T> OperationInput for ConnectInfo<T> {}
2931
impl OperationInput for MatchedPath {}
3032
impl OperationInput for OriginalUri {}
31-
impl OperationInput for RawBody {}
33+
impl OperationInput for Body {}
3234
impl OperationInput for RawQuery {}
3335
impl OperationInput for Host {}
3436

0 commit comments

Comments
 (0)