axum/axum-extra/Cargo.toml

116 lines
3.9 KiB
TOML
Raw Normal View History

[package]
categories = ["asynchronous", "network-programming", "web-programming"]
description = "Extra utilities for axum"
edition = "2021"
rust-version = { workspace = true }
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-12-17 23:47:42 +01:00
version = "0.10.0-rc.1"
[features]
default = ["tracing"]
async-read-body = ["dep:tokio-util", "tokio-util?/io", "dep:tokio"]
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"]
cookie-key-expansion = ["cookie", "cookie?/key-expansion"]
2024-10-06 21:01:10 +02:00
erased-json = ["dep:serde_json", "dep:typed-json"]
form = ["dep:form_urlencoded", "dep:serde_html_form", "dep:serde_path_to_error"]
json-deserializer = ["dep:serde_json", "dep:serde_path_to_error"]
json-lines = [
"dep:serde_json",
"dep:tokio-util",
"dep:tokio-stream",
"tokio-util?/io",
"tokio-stream?/io-util",
"dep:tokio",
]
multipart = ["dep:multer", "dep:fastrand"]
protobuf = ["dep:prost"]
2024-10-20 00:04:24 +02:00
scheme = []
query = ["dep:form_urlencoded", "dep:serde_html_form", "dep:serde_path_to_error"]
tracing = ["axum-core/tracing", "axum/tracing"]
typed-header = ["dep:headers"]
typed-routing = ["dep:axum-macros", "dep:percent-encoding", "dep:serde_html_form", "dep:form_urlencoded"]
[dependencies]
2024-12-17 23:47:42 +01:00
axum = { path = "../axum", version = "0.8.0-rc.1", default-features = false, features = ["original-uri"] }
axum-core = { path = "../axum-core", version = "0.5.0-rc.1" }
2021-12-28 11:41:21 +01:00
bytes = "1.1.0"
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"
serde = "1.0"
2024-09-20 19:43:38 +02:00
tower = { version = "0.5.1", default-features = false, features = ["util"] }
tower-layer = "0.3"
2021-11-17 23:31:43 +01:00
tower-service = "0.3"
# optional dependencies
async-stream = { version = "0.3", optional = true }
2024-12-17 23:47:42 +01:00
axum-macros = { path = "../axum-macros", version = "0.5.0-rc.1", optional = true }
cookie = { package = "cookie", version = "0.18.0", features = ["percent-encode"], optional = true }
fastrand = { version = "2.1.0", optional = true }
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 }
percent-encoding = { version = "2.1", optional = true }
2024-09-20 21:06:41 +02:00
prost = { version = "0.13", optional = true }
2023-02-12 00:36:40 +01:00
serde_html_form = { version = "0.2.0", optional = true }
serde_json = { version = "1.0.71", optional = true }
serde_path_to_error = { version = "0.1.8", optional = true }
tokio = { version = "1.19", optional = true }
tokio-stream = { version = "0.1.9", optional = true }
tokio-util = { version = "0.7", optional = true }
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"] }
hyper = "1.0.0"
reqwest = { version = "0.12", default-features = false, features = ["json", "stream", "multipart"] }
serde = { version = "1.0", features = ["derive"] }
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"] }
2024-11-30 16:53:48 +01:00
[lints]
workspace = true
[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",
"tokio",
"tokio_util",
"tower_layer",
"tower_service",
]