Reorder some TOML sections (#3360)

This commit is contained in:
Jonas Platte
2025-05-25 08:46:05 +02:00
committed by GitHub
parent dd8d4a47cb
commit d0aff24c85
7 changed files with 113 additions and 105 deletions
+38 -39
View File
@@ -11,6 +11,34 @@ license = "MIT"
readme = "README.md"
repository = "https://github.com/tokio-rs/axum"
[package.metadata.docs.rs]
all-features = true
[package.metadata.playground]
features = ["http1", "http2", "json", "multipart", "ws"]
[package.metadata.cargo-public-api-crates]
allowed = [
# our crates
"axum_core",
"axum_macros",
# not 1.0
"futures_core",
"futures_sink",
"futures_util",
"pin_project_lite",
"tower_layer",
"tower_service",
# >=1.0
"bytes",
"http",
"http_body",
"serde",
"tokio",
# for the `__private` feature
"reqwest",
]
[features]
default = [
"form",
@@ -32,7 +60,14 @@ matched-path = []
multipart = ["dep:multer"]
original-uri = []
query = ["dep:form_urlencoded", "dep:serde_urlencoded", "dep:serde_path_to_error"]
tokio = ["dep:hyper-util", "dep:tokio", "tokio/net", "tokio/rt", "tower/make", "tokio/macros"]
tokio = [
"dep:hyper-util",
"dep:tokio",
"tokio/net",
"tokio/rt",
"tower/make",
"tokio/macros",
]
tower-log = ["tower/log"]
tracing = ["dep:tracing", "axum-core/tracing"]
ws = ["dep:hyper", "tokio", "dep:tokio-tungstenite", "dep:sha1", "dep:base64"]
@@ -42,7 +77,8 @@ __private_docs = [
# but they need the same sort of treatment as below to be complete
"axum-core/__private_docs",
# Enables upstream things linked to in docs
"tower/full", "dep:tower-http",
"tower/full",
"dep:tower-http",
]
# This feature is used to enable private test helper usage
@@ -187,43 +223,6 @@ features = [
[lints]
workspace = true
[package.metadata.docs.rs]
all-features = true
[package.metadata.playground]
features = [
"http1",
"http2",
"json",
"multipart",
"ws",
]
[package.metadata.cargo-public-api-crates]
allowed = [
# our crates
"axum_core",
"axum_macros",
# not 1.0
"futures_core",
"futures_sink",
"futures_util",
"pin_project_lite",
"tower_layer",
"tower_service",
# >=1.0
"bytes",
"http",
"http_body",
"serde",
"tokio",
# for the `__private` feature
"reqwest",
]
[[bench]]
name = "benches"
harness = false
-1
View File
@@ -686,5 +686,4 @@ logs, enable the `tracing` feature for axum (enabled by default) and the
[customize-extractor-error]: https://github.com/tokio-rs/axum/blob/main/examples/customize-extractor-error/src/main.rs
[`HeaderMap`]: https://docs.rs/http/latest/http/header/struct.HeaderMap.html
[`Request`]: https://docs.rs/http/latest/http/struct.Request.html
[`RequestParts::body_mut`]: crate::extract::RequestParts::body_mut
[`JsonRejection::JsonDataError`]: rejection::JsonRejection::JsonDataError