2021-11-17 21:00:32 +01:00
|
|
|
[package]
|
|
|
|
categories = ["asynchronous", "network-programming", "web-programming"]
|
|
|
|
description = "Extra utilities for axum"
|
2022-06-17 20:11:35 +02:00
|
|
|
edition = "2021"
|
2021-11-17 21:00:32 +01:00
|
|
|
homepage = "https://github.com/tokio-rs/axum"
|
|
|
|
keywords = ["http", "web", "framework"]
|
|
|
|
license = "MIT"
|
|
|
|
name = "axum-extra"
|
|
|
|
readme = "README.md"
|
|
|
|
repository = "https://github.com/tokio-rs/axum"
|
2022-06-27 21:08:12 +02:00
|
|
|
version = "0.3.5"
|
2021-11-17 21:00:32 +01:00
|
|
|
|
2021-11-17 22:54:02 +01:00
|
|
|
[features]
|
2022-02-18 14:13:56 +01:00
|
|
|
default = []
|
2022-06-08 11:02:42 +02:00
|
|
|
|
|
|
|
async-read-body = ["tokio-util/io"]
|
2022-03-04 10:53:36 +01:00
|
|
|
cookie = ["cookie-lib"]
|
2022-04-27 10:11:16 +02:00
|
|
|
cookie-private = ["cookie", "cookie-lib/private"]
|
2022-06-08 11:02:42 +02:00
|
|
|
cookie-signed = ["cookie", "cookie-lib/signed"]
|
|
|
|
erased-json = ["serde_json", "serde"]
|
2022-05-15 17:17:45 +02:00
|
|
|
form = ["serde", "serde_html_form"]
|
2022-06-20 20:49:18 +02:00
|
|
|
json-lines = ["serde_json", "serde", "tokio-util/io", "tokio-stream/io-util"]
|
2022-05-17 20:19:24 +02:00
|
|
|
query = ["serde", "serde_html_form"]
|
2022-04-03 18:29:37 +02:00
|
|
|
spa = ["tower-http/fs"]
|
2022-06-08 11:02:42 +02:00
|
|
|
typed-routing = ["axum-macros", "serde", "percent-encoding"]
|
2021-11-17 22:54:02 +01:00
|
|
|
|
2021-11-17 21:00:32 +01:00
|
|
|
[dependencies]
|
2022-04-07 10:24:01 +02:00
|
|
|
axum = { path = "../axum", version = "0.5", default-features = false }
|
2021-12-28 11:41:21 +01:00
|
|
|
bytes = "1.1.0"
|
2022-06-20 20:49:18 +02:00
|
|
|
futures-util = { version = "0.3", default-features = false, features = ["alloc"] }
|
2021-11-25 11:14:31 +01:00
|
|
|
http = "0.2"
|
2021-11-25 09:31:30 +01:00
|
|
|
mime = "0.3"
|
2021-12-27 14:01:26 +01:00
|
|
|
pin-project-lite = "0.2"
|
2022-06-08 11:02:42 +02:00
|
|
|
tokio = "1.19"
|
2021-12-27 23:28:58 +01:00
|
|
|
tower = { version = "0.4", default_features = false, features = ["util"] }
|
2022-04-25 16:59:16 +02:00
|
|
|
tower-http = { version = "0.3", features = ["map-response-body"] }
|
2021-12-27 14:01:26 +01:00
|
|
|
tower-layer = "0.3"
|
2021-11-17 23:31:43 +01:00
|
|
|
tower-service = "0.3"
|
|
|
|
|
|
|
|
# optional dependencies
|
2022-05-18 20:29:49 +02:00
|
|
|
axum-macros = { path = "../axum-macros", version = "0.2.2", optional = true }
|
2022-04-27 10:11:16 +02:00
|
|
|
cookie-lib = { package = "cookie", version = "0.16", features = ["percent-encode"], optional = true }
|
2022-06-08 11:02:42 +02:00
|
|
|
percent-encoding = { version = "2.1", optional = true }
|
|
|
|
serde = { version = "1.0", optional = true }
|
2022-05-15 17:17:45 +02:00
|
|
|
serde_html_form = { version = "0.1", optional = true }
|
2022-06-08 11:02:42 +02:00
|
|
|
serde_json = { version = "1.0.71", optional = true }
|
2022-06-25 12:26:37 +02:00
|
|
|
tokio-stream = { version = "0.1.9", optional = true }
|
2022-06-08 11:02:42 +02:00
|
|
|
tokio-util = { version = "0.7", optional = true }
|
2021-11-17 23:31:43 +01:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2022-03-31 20:48:17 +02:00
|
|
|
axum = { path = "../axum", version = "0.5", features = ["headers"] }
|
2022-06-20 20:49:18 +02:00
|
|
|
futures = "0.3"
|
2021-11-17 23:31:43 +01:00
|
|
|
hyper = "0.14"
|
2022-04-03 18:29:37 +02:00
|
|
|
reqwest = { version = "0.11", default-features = false, features = ["json", "stream", "multipart"] }
|
2022-02-18 14:13:56 +01:00
|
|
|
serde = { version = "1.0", features = ["derive"] }
|
2021-11-17 23:31:43 +01:00
|
|
|
tokio = { version = "1.14", features = ["full"] }
|
|
|
|
tower = { version = "0.4", features = ["util"] }
|
2021-12-27 18:12:46 +01:00
|
|
|
|
|
|
|
[package.metadata.docs.rs]
|
|
|
|
all-features = true
|
|
|
|
rustdocflags = ["--cfg", "docsrs"]
|