Files
axum/axum-extra/Cargo.toml
T

157 lines
4.7 KiB
TOML
Raw Normal View History

2021-11-17 21:00:32 +01:00
[package]
categories = ["asynchronous", "network-programming", "web-programming"]
description = "Extra utilities for axum"
edition = "2021"
2024-09-28 21:21:41 +00:00
rust-version = { workspace = true }
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"
2025-11-14 20:44:55 +01:00
version = "0.12.2"
2021-11-17 21:00:32 +01:00
2025-05-25 08:46:05 +02:00
[package.metadata.docs.rs]
all-features = true
[package.metadata.cargo-public-api-crates]
allowed = [
"axum",
"axum_core",
"axum_macros",
"bytes",
"cookie",
"futures_core",
"futures_util",
"headers",
"headers_core",
"http",
"http_body",
"pin_project_lite",
"prost",
"serde_core",
2025-05-25 08:46:05 +02:00
"tokio",
"tokio_util",
"tower_layer",
"tower_service",
]
2021-11-17 22:54:02 +01:00
[features]
default = ["tracing"]
2022-06-08 11:02:42 +02:00
async-read-body = ["dep:tokio-util", "tokio-util?/io", "dep:tokio"]
cached = ["dep:axum"]
2025-05-25 08:46:05 +02:00
file-stream = [
"dep:tokio-util",
"tokio-util?/io",
"dep:tokio",
"tokio?/fs",
"tokio?/io-util",
]
attachment = ["dep:tracing"]
error-response = ["dep:tracing", "tracing/std"]
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"]
erased-json = ["dep:serde_core", "dep:serde_json", "dep:typed-json"]
form = [
"dep:axum",
"dep:form_urlencoded",
"dep:serde_core",
"dep:serde_html_form",
"dep:serde_path_to_error",
]
handler = ["dep:axum"]
json-deserializer = ["dep:serde_core", "dep:serde_json", "dep:serde_path_to_error"]
json-lines = [
"dep:serde_core",
"dep:serde_json",
"dep:tokio-util",
"dep:tokio-stream",
"tokio-util?/io",
"tokio-stream?/io-util",
"dep:tokio",
]
middleware = ["dep:axum"]
multipart = ["dep:multer", "dep:fastrand"]
optional-path = ["dep:axum", "dep:serde_core"]
protobuf = ["dep:prost"]
routing = ["axum/original-uri", "dep:rustversion"]
2024-10-20 00:04:24 +02:00
scheme = []
query = [
"dep:form_urlencoded",
"dep:serde_core",
"dep:serde_html_form",
"dep:serde_path_to_error",
]
tracing = ["axum-core/tracing", "axum/tracing", "dep:tracing"]
2023-04-11 16:09:48 +02:00
typed-header = ["dep:headers"]
2025-05-25 08:46:05 +02:00
typed-routing = [
"routing",
2025-05-25 08:46:05 +02:00
"dep:axum-macros",
"dep:percent-encoding",
"dep:serde_core",
2025-05-25 08:46:05 +02:00
"dep:serde_html_form",
"dep:form_urlencoded",
]
with-rejection = ["dep:axum"]
2021-11-17 22:54:02 +01:00
2025-01-21 06:45:56 -05:00
# Enabled by docs.rs because it uses all-features
# Enables upstream things linked to in docs
__private_docs = ["axum/json", "dep:serde", "dep:tower"]
2025-01-21 06:45:56 -05:00
2021-11-17 21:00:32 +01:00
[dependencies]
2025-09-30 12:03:26 +02:00
axum-core = { path = "../axum-core", version = "0.5.5" }
2021-12-28 10:41:21 +00:00
bytes = "1.1.0"
2025-05-25 09:39:35 +02:00
futures-core = "0.3"
futures-util = { version = "0.3", default-features = false, features = ["alloc"] }
http = "1.0.0"
http-body = "1.0.0"
http-body-util = "0.1.0"
mime = "0.3"
pin-project-lite = "0.2"
tower-layer = "0.3"
2021-11-17 23:31:43 +01:00
tower-service = "0.3"
# optional dependencies
2025-11-14 20:44:55 +01:00
axum = { path = "../axum", version = "0.8.7", default-features = false, optional = true }
2024-12-25 20:49:53 +01:00
axum-macros = { path = "../axum-macros", version = "0.5.0", optional = true }
2023-11-24 12:40:12 +01:00
cookie = { package = "cookie", version = "0.18.0", features = ["percent-encode"], optional = true }
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 16:47:57 +08: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 }
2025-10-09 01:03:51 -04:00
prost = { version = "0.14", optional = true }
rustversion = { version = "1.0.9", optional = true }
serde_core = { version = "1.0.221", 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 }
serde_path_to_error = { version = "0.1.8", optional = true }
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 }
tracing = { version = "0.1.37", default-features = false, optional = true }
2024-10-06 20:01:10 +01:00
typed-json = { version = "0.1.1", optional = true }
2021-11-17 23:31:43 +01:00
# doc dependencies
serde = { version = "1.0.221", optional = true }
tower = { version = "0.5.2", default-features = false, features = ["util"], optional = true }
2021-11-17 23:31:43 +01:00
[dev-dependencies]
2024-12-27 18:24:50 +01:00
axum = { path = "../axum", features = ["macros", "__private"] }
2024-10-06 20:01:10 +01:00
axum-macros = { path = "../axum-macros", features = ["__private"] }
hyper = "1.0.0"
2024-03-29 15:34:56 +08:00
reqwest = { version = "0.12", default-features = false, features = ["json", "stream", "multipart"] }
serde = { version = "1.0.221", features = ["derive"] }
serde_json = "1.0.71"
tempfile = "3.23.0"
2021-11-17 23:31:43 +01:00
tokio = { version = "1.14", features = ["full"] }
tower = { version = "0.5.2", features = ["util"] }
2024-09-20 19:43:38 +02:00
tower-http = { version = "0.6.0", features = ["map-response-body", "timeout"] }
tracing-subscriber = "0.3.20"
2024-11-30 16:53:48 +01:00
[lints]
workspace = true