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"
|
2023-11-23 12:03:03 +01:00
|
|
|
rust-version = "1.66"
|
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"
|
2024-09-20 21:17:41 +02:00
|
|
|
version = "0.9.4"
|
2021-11-17 21:00:32 +01:00
|
|
|
|
2021-11-17 22:54:02 +01:00
|
|
|
[features]
|
2024-09-28 21:40:52 +02:00
|
|
|
default = ["tracing", "multipart"]
|
2022-06-08 11:02:42 +02:00
|
|
|
|
2023-09-21 09:33:40 +02:00
|
|
|
async-read-body = ["dep:tokio-util", "tokio-util?/io", "dep:tokio"]
|
2024-06-19 14:28:15 +02:00
|
|
|
attachment = ["dep:tracing"]
|
2022-08-09 18:43:02 +02:00
|
|
|
cookie = ["dep:cookie"]
|
|
|
|
cookie-private = ["cookie", "cookie?/private"]
|
|
|
|
cookie-signed = ["cookie", "cookie?/signed"]
|
2022-09-28 22:06:56 +02:00
|
|
|
cookie-key-expansion = ["cookie", "cookie?/key-expansion"]
|
2024-10-06 21:01:10 +02:00
|
|
|
erased-json = ["dep:serde_json", "dep:typed-json"]
|
2023-04-09 14:23:13 +02:00
|
|
|
form = ["dep:serde_html_form"]
|
2023-12-29 12:06:47 +01:00
|
|
|
json-deserializer = ["dep:serde_json", "dep:serde_path_to_error"]
|
2022-08-09 18:43:02 +02:00
|
|
|
json-lines = [
|
|
|
|
"dep:serde_json",
|
|
|
|
"dep:tokio-util",
|
|
|
|
"dep:tokio-stream",
|
|
|
|
"tokio-util?/io",
|
2023-09-21 09:33:40 +02:00
|
|
|
"tokio-stream?/io-util",
|
|
|
|
"dep:tokio",
|
2022-08-09 18:43:02 +02:00
|
|
|
]
|
2024-09-28 21:40:52 +02:00
|
|
|
multipart = ["dep:multer", "dep:fastrand"]
|
2022-08-10 17:14:42 +02:00
|
|
|
protobuf = ["dep:prost"]
|
2023-04-09 14:23:13 +02:00
|
|
|
query = ["dep:serde_html_form"]
|
2024-09-25 09:44:35 +02:00
|
|
|
tracing = ["axum-core/tracing", "axum/tracing"]
|
2023-04-11 16:09:48 +02:00
|
|
|
typed-header = ["dep:headers"]
|
2023-04-09 14:23:13 +02:00
|
|
|
typed-routing = ["dep:axum-macros", "dep:percent-encoding", "dep:serde_html_form", "dep:form_urlencoded"]
|
2021-11-17 22:54:02 +01:00
|
|
|
|
2021-11-17 21:00:32 +01:00
|
|
|
[dependencies]
|
2024-09-27 21:30:11 +02:00
|
|
|
axum = { path = "../axum", version = "0.7.7", default-features = false }
|
|
|
|
axum-core = { path = "../axum-core", version = "0.4.5" }
|
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"] }
|
2023-11-23 12:03:03 +01:00
|
|
|
http = "1.0.0"
|
|
|
|
http-body = "1.0.0"
|
|
|
|
http-body-util = "0.1.0"
|
2021-11-25 09:31:30 +01:00
|
|
|
mime = "0.3"
|
2021-12-27 14:01:26 +01:00
|
|
|
pin-project-lite = "0.2"
|
2023-04-09 14:23:13 +02:00
|
|
|
serde = "1.0"
|
2024-09-20 19:43:38 +02:00
|
|
|
tower = { version = "0.5.1", default-features = false, features = ["util"] }
|
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
|
2024-09-20 21:17:41 +02:00
|
|
|
axum-macros = { path = "../axum-macros", version = "0.4.2", optional = true }
|
2023-11-24 12:40:12 +01:00
|
|
|
cookie = { package = "cookie", version = "0.18.0", features = ["percent-encode"], optional = true }
|
2024-09-28 21:40:52 +02:00
|
|
|
fastrand = { version = "2.1.0", optional = true }
|
2023-02-11 23:10:07 +01:00
|
|
|
form_urlencoded = { version = "1.1.0", optional = true }
|
2023-11-25 09:47:57 +01:00
|
|
|
headers = { version = "0.4.0", optional = true }
|
2023-12-17 12:31:38 +01:00
|
|
|
multer = { version = "3.0.0", optional = true }
|
2022-06-08 11:02:42 +02:00
|
|
|
percent-encoding = { version = "2.1", optional = true }
|
2023-09-14 15:19:23 +02:00
|
|
|
prost = { version = "0.12", optional = true }
|
2023-02-12 00:36:40 +01:00
|
|
|
serde_html_form = { version = "0.2.0", optional = true }
|
2022-06-08 11:02:42 +02:00
|
|
|
serde_json = { version = "1.0.71", optional = true }
|
2023-12-29 12:06:47 +01:00
|
|
|
serde_path_to_error = { version = "0.1.8", optional = true }
|
2023-09-21 09:33:40 +02:00
|
|
|
tokio = { version = "1.19", 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 }
|
2024-03-16 22:34:18 +01:00
|
|
|
tracing = { version = "0.1.37", default-features = false, optional = true }
|
2024-10-06 21:01:10 +02:00
|
|
|
typed-json = { version = "0.1.1", optional = true }
|
2021-11-17 23:31:43 +01:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2024-10-06 21:01:10 +02:00
|
|
|
axum = { path = "../axum", features = ["macros"] }
|
|
|
|
axum-macros = { path = "../axum-macros", features = ["__private"] }
|
2023-11-23 12:03:03 +01:00
|
|
|
hyper = "1.0.0"
|
2024-03-29 08:34:56 +01:00
|
|
|
reqwest = { version = "0.12", default-features = false, features = ["json", "stream", "multipart"] }
|
2022-02-18 14:13:56 +01:00
|
|
|
serde = { version = "1.0", features = ["derive"] }
|
2023-01-03 21:14:24 +01:00
|
|
|
serde_json = "1.0.71"
|
2021-11-17 23:31:43 +01:00
|
|
|
tokio = { version = "1.14", features = ["full"] }
|
2024-09-20 19:43:38 +02:00
|
|
|
tower = { version = "0.5.1", features = ["util"] }
|
|
|
|
tower-http = { version = "0.6.0", features = ["map-response-body", "timeout"] }
|
2021-12-27 18:12:46 +01:00
|
|
|
|
|
|
|
[package.metadata.docs.rs]
|
|
|
|
all-features = true
|
2022-07-01 13:35:52 +02:00
|
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
2023-02-16 22:41:41 +01:00
|
|
|
|
|
|
|
[package.metadata.cargo-public-api-crates]
|
|
|
|
allowed = [
|
|
|
|
"axum",
|
|
|
|
"axum_core",
|
2023-03-27 17:12:19 +02:00
|
|
|
"axum_macros",
|
2023-02-16 22:41:41 +01:00
|
|
|
"bytes",
|
|
|
|
"cookie",
|
|
|
|
"futures_core",
|
|
|
|
"futures_util",
|
2023-04-11 16:09:48 +02:00
|
|
|
"headers",
|
|
|
|
"headers_core",
|
2023-02-16 22:41:41 +01:00
|
|
|
"http",
|
|
|
|
"http_body",
|
|
|
|
"prost",
|
|
|
|
"serde",
|
|
|
|
"tokio",
|
|
|
|
"tower_layer",
|
|
|
|
"tower_service",
|
|
|
|
]
|