Skip to content

Commit

Permalink
Make tokio an optional dependency of axum-extra (#2236)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidpdrsn authored Sep 21, 2023
1 parent 786329d commit 3b3bbb2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions axum-extra/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning].
- **added:** `TypedHeader` which used to be in `axum` ([#1850])
- **added:** `Clone` implementation for `ErasedJson` ([#2142])
- **breaking:** Update to prost 0.12. Used for the `Protobuf` extractor
- **breaking:** Make `tokio` an optional dependency

[#1850]: https://github.com/tokio-rs/axum/pull/1850
[#2142]: https://github.com/tokio-rs/axum/pull/2142
Expand Down
7 changes: 4 additions & 3 deletions axum-extra/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ version = "0.7.4"
[features]
default = []

async-read-body = ["dep:tokio-util", "tokio-util?/io"]
async-read-body = ["dep:tokio-util", "tokio-util?/io", "dep:tokio"]
cookie = ["dep:cookie"]
cookie-private = ["cookie", "cookie?/private"]
cookie-signed = ["cookie", "cookie?/signed"]
Expand All @@ -26,7 +26,8 @@ json-lines = [
"dep:tokio-util",
"dep:tokio-stream",
"tokio-util?/io",
"tokio-stream?/io-util"
"tokio-stream?/io-util",
"dep:tokio",
]
multipart = ["dep:multer"]
protobuf = ["dep:prost"]
Expand All @@ -44,7 +45,6 @@ http-body = "0.4.4"
mime = "0.3"
pin-project-lite = "0.2"
serde = "1.0"
tokio = "1.19"
tower = { version = "0.4", default_features = false, features = ["util"] }
tower-layer = "0.3"
tower-service = "0.3"
Expand All @@ -59,6 +59,7 @@ percent-encoding = { version = "2.1", optional = true }
prost = { version = "0.12", optional = true }
serde_html_form = { version = "0.2.0", optional = true }
serde_json = { version = "1.0.71", optional = true }
tokio = { version = "1.19", optional = true }
tokio-stream = { version = "0.1.9", optional = true }
tokio-util = { version = "0.7", optional = true }

Expand Down

0 comments on commit 3b3bbb2

Please sign in to comment.