Skip to content

Commit db47b2c

Browse files
committed
axum-extra: Enable query feature
This alternative `Query` extractor can be used to deserialize into e.g. `Vec<String>` if multiple fields with the same name exist. This is needed to support `ids[]=foo&ids[]=bar&ids[]=baz` query parameter strings.
1 parent b48db5e commit db47b2c

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

Cargo.lock

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ aws-ip-ranges = "=0.953.0"
4949
aws-sdk-cloudfront = "=1.55.0"
5050
aws-sdk-sqs = "=1.50.0"
5151
axum = { version = "=0.7.9", features = ["macros", "matched-path"] }
52-
axum-extra = { version = "=0.9.6", features = ["cookie-signed", "erased-json", "typed-header"] }
52+
axum-extra = { version = "=0.9.6", features = ["cookie-signed", "erased-json", "query", "typed-header"] }
5353
base64 = "=0.22.1"
5454
bigdecimal = { version = "=0.4.7", features = ["serde"] }
5555
bon = "=3.3.0"

0 commit comments

Comments
 (0)