mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-22 23:30:29 +01:00
94 lines
2.9 KiB
TOML
94 lines
2.9 KiB
TOML
[package]
|
|
categories = ["asynchronous", "network-programming", "web-programming"]
|
|
description = "Extra utilities for axum"
|
|
edition = "2021"
|
|
rust-version = "1.60"
|
|
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"
|
|
version = "0.6.0"
|
|
|
|
[features]
|
|
default = []
|
|
|
|
async-read-body = ["dep:tokio-util", "tokio-util?/io"]
|
|
cookie = ["dep:cookie"]
|
|
cookie-private = ["cookie", "cookie?/private"]
|
|
cookie-signed = ["cookie", "cookie?/signed"]
|
|
cookie-key-expansion = ["cookie", "cookie?/key-expansion"]
|
|
erased-json = ["dep:serde_json", "dep:serde"]
|
|
form = ["dep:serde", "dep:serde_html_form"]
|
|
json-lines = [
|
|
"dep:serde_json",
|
|
"dep:serde",
|
|
"dep:tokio-util",
|
|
"dep:tokio-stream",
|
|
"tokio-util?/io",
|
|
"tokio-stream?/io-util"
|
|
]
|
|
protobuf = ["dep:prost"]
|
|
query = ["dep:serde", "dep:serde_html_form"]
|
|
spa = ["tower-http/fs"]
|
|
typed-routing = ["dep:axum-macros", "dep:serde", "dep:percent-encoding", "dep:serde_html_form", "dep:form_urlencoded"]
|
|
|
|
[dependencies]
|
|
axum = { path = "../axum", version = "0.6.9", default-features = false }
|
|
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.4", features = ["map-response-body"] }
|
|
tower-layer = "0.3"
|
|
tower-service = "0.3"
|
|
|
|
# optional dependencies
|
|
axum-macros = { path = "../axum-macros", version = "0.3.4", optional = true }
|
|
cookie = { package = "cookie", version = "0.17", features = ["percent-encode"], optional = true }
|
|
form_urlencoded = { version = "1.1.0", optional = true }
|
|
percent-encoding = { version = "2.1", optional = true }
|
|
prost = { version = "0.11", optional = true }
|
|
serde = { version = "1.0", optional = true }
|
|
serde_html_form = { version = "0.2.0", 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 }
|
|
|
|
[dev-dependencies]
|
|
axum = { path = "../axum", version = "0.6.0", features = ["headers"] }
|
|
futures = "0.3"
|
|
hyper = "0.14"
|
|
reqwest = { version = "0.11", default-features = false, features = ["json", "stream", "multipart"] }
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0.71"
|
|
tokio = { version = "1.14", features = ["full"] }
|
|
tower = { version = "0.4", features = ["util"] }
|
|
tower-http = { version = "0.4", features = ["map-response-body", "timeout"] }
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
[package.metadata.cargo-public-api-crates]
|
|
allowed = [
|
|
"axum",
|
|
"axum_core",
|
|
"bytes",
|
|
"cookie",
|
|
"futures_core",
|
|
"futures_util",
|
|
"http",
|
|
"http_body",
|
|
"hyper",
|
|
"percent_encoding",
|
|
"prost",
|
|
"serde",
|
|
"tokio",
|
|
"tower_layer",
|
|
"tower_service",
|
|
]
|