axum/axum-extra/Cargo.toml

62 lines
2.2 KiB
TOML
Raw Normal View History

[package]
categories = ["asynchronous", "network-programming", "web-programming"]
description = "Extra utilities for axum"
edition = "2021"
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"
[features]
default = []
async-read-body = ["tokio-util/io"]
cookie = ["cookie-lib"]
cookie-private = ["cookie", "cookie-lib/private"]
cookie-signed = ["cookie", "cookie-lib/signed"]
erased-json = ["serde_json", "serde"]
form = ["serde", "serde_html_form"]
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"]
typed-routing = ["axum-macros", "serde", "percent-encoding"]
[dependencies]
axum = { path = "../axum", version = "0.5", default-features = false }
2021-12-28 11:41:21 +01:00
bytes = "1.1.0"
futures-util = { version = "0.3", default-features = false, features = ["alloc"] }
http = "0.2"
mime = "0.3"
pin-project-lite = "0.2"
tokio = "1.19"
tower = { version = "0.4", default_features = false, features = ["util"] }
tower-http = { version = "0.3", features = ["map-response-body"] }
tower-layer = "0.3"
2021-11-17 23:31:43 +01:00
tower-service = "0.3"
# optional dependencies
axum-macros = { path = "../axum-macros", version = "0.2.2", optional = true }
cookie-lib = { package = "cookie", version = "0.16", features = ["percent-encode"], optional = true }
percent-encoding = { version = "2.1", optional = true }
serde = { version = "1.0", optional = true }
serde_html_form = { version = "0.1", optional = true }
serde_json = { version = "1.0.71", optional = true }
tokio-stream = { version = "0.1.9", optional = true }
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"] }
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"] }
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"] }
[package.metadata.docs.rs]
all-features = true
rustdocflags = ["--cfg", "docsrs"]