348 lines
6.1 KiB
TOML
348 lines
6.1 KiB
TOML
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
|
|
#
|
|
# When uploading crates to the registry Cargo will automatically
|
|
# "normalize" Cargo.toml files for maximal compatibility
|
|
# with all versions of Cargo and also rewrite `path` dependencies
|
|
# to registry (e.g., crates.io) dependencies.
|
|
#
|
|
# If you are reading this file be aware that the original Cargo.toml
|
|
# will likely look very different (and much more reasonable).
|
|
# See Cargo.toml.orig for the original contents.
|
|
|
|
[package]
|
|
edition = "2021"
|
|
rust-version = "1.78"
|
|
name = "axum-extra"
|
|
version = "0.10.3"
|
|
build = false
|
|
autolib = false
|
|
autobins = false
|
|
autoexamples = false
|
|
autotests = false
|
|
autobenches = false
|
|
description = "Extra utilities for axum"
|
|
homepage = "https://github.com/tokio-rs/axum"
|
|
readme = "README.md"
|
|
keywords = [
|
|
"http",
|
|
"web",
|
|
"framework",
|
|
]
|
|
categories = [
|
|
"asynchronous",
|
|
"network-programming",
|
|
"web-programming",
|
|
]
|
|
license = "MIT"
|
|
repository = "https://github.com/tokio-rs/axum"
|
|
|
|
[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",
|
|
"tokio",
|
|
"tokio_util",
|
|
"tower_layer",
|
|
"tower_service",
|
|
]
|
|
|
|
[features]
|
|
__private_docs = [
|
|
"axum/json",
|
|
"dep:serde",
|
|
"dep:tower",
|
|
]
|
|
async-read-body = [
|
|
"dep:tokio-util",
|
|
"tokio-util?/io",
|
|
"dep:tokio",
|
|
]
|
|
async-stream = []
|
|
attachment = ["dep:tracing"]
|
|
cookie = ["dep:cookie"]
|
|
cookie-key-expansion = [
|
|
"cookie",
|
|
"cookie?/key-expansion",
|
|
]
|
|
cookie-private = [
|
|
"cookie",
|
|
"cookie?/private",
|
|
]
|
|
cookie-signed = [
|
|
"cookie",
|
|
"cookie?/signed",
|
|
]
|
|
default = ["tracing"]
|
|
erased-json = [
|
|
"dep:serde_json",
|
|
"dep:typed-json",
|
|
]
|
|
error-response = [
|
|
"dep:tracing",
|
|
"tracing/std",
|
|
]
|
|
file-stream = [
|
|
"dep:tokio-util",
|
|
"tokio-util?/io",
|
|
"dep:tokio",
|
|
"tokio?/fs",
|
|
"tokio?/io-util",
|
|
]
|
|
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"]
|
|
query = [
|
|
"dep:form_urlencoded",
|
|
"dep:serde_html_form",
|
|
"dep:serde_path_to_error",
|
|
]
|
|
scheme = []
|
|
tracing = [
|
|
"axum-core/tracing",
|
|
"axum/tracing",
|
|
"dep:tracing",
|
|
]
|
|
typed-header = ["dep:headers"]
|
|
typed-routing = [
|
|
"dep:axum-macros",
|
|
"dep:percent-encoding",
|
|
"dep:serde_html_form",
|
|
"dep:form_urlencoded",
|
|
]
|
|
|
|
[lib]
|
|
name = "axum_extra"
|
|
path = "src/lib.rs"
|
|
|
|
[dependencies.axum]
|
|
version = "0.8.6"
|
|
features = ["original-uri"]
|
|
default-features = false
|
|
|
|
[dependencies.axum-core]
|
|
version = "0.5.5"
|
|
|
|
[dependencies.axum-macros]
|
|
version = "0.5.0"
|
|
optional = true
|
|
|
|
[dependencies.bytes]
|
|
version = "1.1.0"
|
|
|
|
[dependencies.cookie]
|
|
version = "0.18.0"
|
|
features = ["percent-encode"]
|
|
optional = true
|
|
package = "cookie"
|
|
|
|
[dependencies.fastrand]
|
|
version = "2.1.0"
|
|
optional = true
|
|
|
|
[dependencies.form_urlencoded]
|
|
version = "1.1.0"
|
|
optional = true
|
|
|
|
[dependencies.futures-util]
|
|
version = "0.3"
|
|
features = ["alloc"]
|
|
default-features = false
|
|
|
|
[dependencies.headers]
|
|
version = "0.4.0"
|
|
optional = true
|
|
|
|
[dependencies.http]
|
|
version = "1.0.0"
|
|
|
|
[dependencies.http-body]
|
|
version = "1.0.0"
|
|
|
|
[dependencies.http-body-util]
|
|
version = "0.1.0"
|
|
|
|
[dependencies.mime]
|
|
version = "0.3"
|
|
|
|
[dependencies.multer]
|
|
version = "3.0.0"
|
|
optional = true
|
|
|
|
[dependencies.percent-encoding]
|
|
version = "2.1"
|
|
optional = true
|
|
|
|
[dependencies.pin-project-lite]
|
|
version = "0.2"
|
|
|
|
[dependencies.prost]
|
|
version = "0.13"
|
|
optional = true
|
|
|
|
[dependencies.rustversion]
|
|
version = "1.0.9"
|
|
|
|
[dependencies.serde]
|
|
version = "1.0.221"
|
|
optional = true
|
|
|
|
[dependencies.serde_core]
|
|
version = "1.0.221"
|
|
|
|
[dependencies.serde_html_form]
|
|
version = "0.2.0"
|
|
optional = true
|
|
|
|
[dependencies.serde_json]
|
|
version = "1.0.71"
|
|
optional = true
|
|
|
|
[dependencies.serde_path_to_error]
|
|
version = "0.1.8"
|
|
optional = true
|
|
|
|
[dependencies.tokio]
|
|
version = "1.19"
|
|
optional = true
|
|
|
|
[dependencies.tokio-stream]
|
|
version = "0.1.9"
|
|
optional = true
|
|
|
|
[dependencies.tokio-util]
|
|
version = "0.7"
|
|
optional = true
|
|
|
|
[dependencies.tower]
|
|
version = "0.5.2"
|
|
features = ["util"]
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.tower-layer]
|
|
version = "0.3"
|
|
|
|
[dependencies.tower-service]
|
|
version = "0.3"
|
|
|
|
[dependencies.tracing]
|
|
version = "0.1.37"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.typed-json]
|
|
version = "0.1.1"
|
|
optional = true
|
|
|
|
[dev-dependencies.hyper]
|
|
version = "1.0.0"
|
|
|
|
[dev-dependencies.reqwest]
|
|
version = "0.12"
|
|
features = [
|
|
"json",
|
|
"stream",
|
|
"multipart",
|
|
]
|
|
default-features = false
|
|
|
|
[dev-dependencies.serde]
|
|
version = "1.0.221"
|
|
features = ["derive"]
|
|
|
|
[dev-dependencies.serde_json]
|
|
version = "1.0.71"
|
|
|
|
[dev-dependencies.tokio]
|
|
version = "1.14"
|
|
features = ["full"]
|
|
|
|
[dev-dependencies.tower]
|
|
version = "0.5.2"
|
|
features = ["util"]
|
|
|
|
[dev-dependencies.tower-http]
|
|
version = "0.6.0"
|
|
features = [
|
|
"map-response-body",
|
|
"timeout",
|
|
]
|
|
|
|
[dev-dependencies.tracing-subscriber]
|
|
version = "0.3.19"
|
|
|
|
[lints.clippy]
|
|
await_holding_lock = "warn"
|
|
dbg_macro = "warn"
|
|
empty_enum = "warn"
|
|
enum_glob_use = "warn"
|
|
exit = "warn"
|
|
filter_map_next = "warn"
|
|
fn_params_excessive_bools = "warn"
|
|
if_let_mutex = "warn"
|
|
imprecise_flops = "warn"
|
|
inefficient_to_string = "warn"
|
|
linkedlist = "warn"
|
|
lossy_float_literal = "warn"
|
|
macro_use_imports = "warn"
|
|
match_wildcard_for_single_variants = "warn"
|
|
mem_forget = "warn"
|
|
must_use_candidate = "warn"
|
|
needless_borrow = "warn"
|
|
needless_continue = "warn"
|
|
option_option = "warn"
|
|
rest_pat_in_fully_bound_structs = "warn"
|
|
return_self_not_must_use = "warn"
|
|
str_to_string = "warn"
|
|
suboptimal_flops = "warn"
|
|
todo = "warn"
|
|
type_complexity = "allow"
|
|
uninlined_format_args = "warn"
|
|
unnested_or_patterns = "warn"
|
|
unused_self = "warn"
|
|
verbose_file_reads = "warn"
|
|
|
|
[lints.rust]
|
|
missing_debug_implementations = "warn"
|
|
missing_docs = "warn"
|
|
unreachable_pub = "warn"
|
|
unsafe_code = "forbid"
|
|
|
|
[lints.rust.rust_2018_idioms]
|
|
level = "warn"
|
|
priority = -1
|