mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-07 00:00:12 +02:00
Reorder some TOML sections (#3360)
This commit is contained in:
+17
-18
@@ -11,6 +11,23 @@ readme = "README.md"
|
|||||||
repository = "https://github.com/tokio-rs/axum"
|
repository = "https://github.com/tokio-rs/axum"
|
||||||
version = "0.5.2" # remember to bump the version that axum and axum-extra depend on
|
version = "0.5.2" # remember to bump the version that axum and axum-extra depend on
|
||||||
|
|
||||||
|
[package.metadata.cargo-public-api-crates]
|
||||||
|
allowed = [
|
||||||
|
# not 1.0
|
||||||
|
"futures_core",
|
||||||
|
"tower_layer",
|
||||||
|
# >=1.0
|
||||||
|
"bytes",
|
||||||
|
"http",
|
||||||
|
"http_body",
|
||||||
|
]
|
||||||
|
|
||||||
|
[package.metadata.cargo-machete]
|
||||||
|
ignored = ["tower-http"] # See __private_docs feature
|
||||||
|
|
||||||
|
[package.metadata.docs.rs]
|
||||||
|
all-features = true
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
tracing = ["dep:tracing"]
|
tracing = ["dep:tracing"]
|
||||||
|
|
||||||
@@ -44,21 +61,3 @@ tower-http = { version = "0.6.0", features = ["limit"] }
|
|||||||
|
|
||||||
[lints]
|
[lints]
|
||||||
workspace = true
|
workspace = true
|
||||||
|
|
||||||
[package.metadata.cargo-public-api-crates]
|
|
||||||
allowed = [
|
|
||||||
# not 1.0
|
|
||||||
"futures_core",
|
|
||||||
"tower_layer",
|
|
||||||
|
|
||||||
# >=1.0
|
|
||||||
"bytes",
|
|
||||||
"http",
|
|
||||||
"http_body",
|
|
||||||
]
|
|
||||||
|
|
||||||
[package.metadata.cargo-machete]
|
|
||||||
ignored = ["tower-http"] # See __private_docs feature
|
|
||||||
|
|
||||||
[package.metadata.docs.rs]
|
|
||||||
all-features = true
|
|
||||||
|
|||||||
+38
-27
@@ -11,11 +11,42 @@ readme = "README.md"
|
|||||||
repository = "https://github.com/tokio-rs/axum"
|
repository = "https://github.com/tokio-rs/axum"
|
||||||
version = "0.10.1"
|
version = "0.10.1"
|
||||||
|
|
||||||
|
[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",
|
||||||
|
]
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["tracing"]
|
default = ["tracing"]
|
||||||
|
|
||||||
async-read-body = ["dep:tokio-util", "tokio-util?/io", "dep:tokio"]
|
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"]
|
file-stream = [
|
||||||
|
"dep:tokio-util",
|
||||||
|
"tokio-util?/io",
|
||||||
|
"dep:tokio",
|
||||||
|
"tokio?/fs",
|
||||||
|
"tokio?/io-util",
|
||||||
|
]
|
||||||
attachment = ["dep:tracing"]
|
attachment = ["dep:tracing"]
|
||||||
error-response = ["dep:tracing", "tracing/std"]
|
error-response = ["dep:tracing", "tracing/std"]
|
||||||
cookie = ["dep:cookie"]
|
cookie = ["dep:cookie"]
|
||||||
@@ -39,7 +70,12 @@ scheme = []
|
|||||||
query = ["dep:form_urlencoded", "dep:serde_html_form", "dep:serde_path_to_error"]
|
query = ["dep:form_urlencoded", "dep:serde_html_form", "dep:serde_path_to_error"]
|
||||||
tracing = ["axum-core/tracing", "axum/tracing", "dep:tracing"]
|
tracing = ["axum-core/tracing", "axum/tracing", "dep:tracing"]
|
||||||
typed-header = ["dep:headers"]
|
typed-header = ["dep:headers"]
|
||||||
typed-routing = ["dep:axum-macros", "dep:percent-encoding", "dep:serde_html_form", "dep:form_urlencoded"]
|
typed-routing = [
|
||||||
|
"dep:axum-macros",
|
||||||
|
"dep:percent-encoding",
|
||||||
|
"dep:serde_html_form",
|
||||||
|
"dep:form_urlencoded",
|
||||||
|
]
|
||||||
|
|
||||||
# Enabled by docs.rs because it uses all-features
|
# Enabled by docs.rs because it uses all-features
|
||||||
__private_docs = [
|
__private_docs = [
|
||||||
@@ -95,28 +131,3 @@ tracing-subscriber = "0.3.19"
|
|||||||
|
|
||||||
[lints]
|
[lints]
|
||||||
workspace = true
|
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",
|
|
||||||
]
|
|
||||||
|
|||||||
@@ -11,13 +11,19 @@ readme = "README.md"
|
|||||||
repository = "https://github.com/tokio-rs/axum"
|
repository = "https://github.com/tokio-rs/axum"
|
||||||
version = "0.5.0" # remember to also bump the version that axum and axum-extra depends on
|
version = "0.5.0" # remember to also bump the version that axum and axum-extra depends on
|
||||||
|
|
||||||
[features]
|
[package.metadata.cargo-public-api-crates]
|
||||||
default = []
|
allowed = []
|
||||||
__private = ["syn/visit-mut"]
|
|
||||||
|
[package.metadata.docs.rs]
|
||||||
|
all-features = true
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
proc-macro = true
|
proc-macro = true
|
||||||
|
|
||||||
|
[features]
|
||||||
|
default = []
|
||||||
|
__private = ["syn/visit-mut"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
proc-macro2 = "1.0"
|
proc-macro2 = "1.0"
|
||||||
quote = "1.0"
|
quote = "1.0"
|
||||||
@@ -40,9 +46,3 @@ trybuild = "1.0.63"
|
|||||||
|
|
||||||
[lints]
|
[lints]
|
||||||
workspace = true
|
workspace = true
|
||||||
|
|
||||||
[package.metadata.cargo-public-api-crates]
|
|
||||||
allowed = []
|
|
||||||
|
|
||||||
[package.metadata.docs.rs]
|
|
||||||
all-features = true
|
|
||||||
|
|||||||
+38
-39
@@ -11,6 +11,34 @@ license = "MIT"
|
|||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
repository = "https://github.com/tokio-rs/axum"
|
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]
|
[features]
|
||||||
default = [
|
default = [
|
||||||
"form",
|
"form",
|
||||||
@@ -32,7 +60,14 @@ matched-path = []
|
|||||||
multipart = ["dep:multer"]
|
multipart = ["dep:multer"]
|
||||||
original-uri = []
|
original-uri = []
|
||||||
query = ["dep:form_urlencoded", "dep:serde_urlencoded", "dep:serde_path_to_error"]
|
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"]
|
tower-log = ["tower/log"]
|
||||||
tracing = ["dep:tracing", "axum-core/tracing"]
|
tracing = ["dep:tracing", "axum-core/tracing"]
|
||||||
ws = ["dep:hyper", "tokio", "dep:tokio-tungstenite", "dep:sha1", "dep:base64"]
|
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
|
# but they need the same sort of treatment as below to be complete
|
||||||
"axum-core/__private_docs",
|
"axum-core/__private_docs",
|
||||||
# Enables upstream things linked to in 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
|
# This feature is used to enable private test helper usage
|
||||||
@@ -187,43 +223,6 @@ features = [
|
|||||||
[lints]
|
[lints]
|
||||||
workspace = true
|
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]]
|
[[bench]]
|
||||||
name = "benches"
|
name = "benches"
|
||||||
harness = false
|
harness = false
|
||||||
|
|||||||
@@ -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
|
[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
|
[`HeaderMap`]: https://docs.rs/http/latest/http/header/struct.HeaderMap.html
|
||||||
[`Request`]: https://docs.rs/http/latest/http/struct.Request.html
|
[`Request`]: https://docs.rs/http/latest/http/struct.Request.html
|
||||||
[`RequestParts::body_mut`]: crate::extract::RequestParts::body_mut
|
|
||||||
[`JsonRejection::JsonDataError`]: rejection::JsonRejection::JsonDataError
|
[`JsonRejection::JsonDataError`]: rejection::JsonRejection::JsonDataError
|
||||||
|
|||||||
@@ -4,6 +4,9 @@ version = "0.1.0"
|
|||||||
edition = "2018"
|
edition = "2018"
|
||||||
publish = false
|
publish = false
|
||||||
|
|
||||||
|
[package.metadata.cargo-machete]
|
||||||
|
ignored = ["axum-extra"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
# `default-features = false` to not depend on tokio features which don't support wasm
|
# `default-features = false` to not depend on tokio features which don't support wasm
|
||||||
# you can still pull in tokio manually and only add features that tokio supports for wasm
|
# you can still pull in tokio manually and only add features that tokio supports for wasm
|
||||||
@@ -14,6 +17,3 @@ axum-extra = { path = "../../axum-extra", default-features = false }
|
|||||||
futures-executor = "0.3.21"
|
futures-executor = "0.3.21"
|
||||||
http = "1.0.0"
|
http = "1.0.0"
|
||||||
tower-service = "0.3.1"
|
tower-service = "0.3.1"
|
||||||
|
|
||||||
[package.metadata.cargo-machete]
|
|
||||||
ignored = ["axum-extra"]
|
|
||||||
|
|||||||
@@ -4,6 +4,14 @@ version = "0.1.0"
|
|||||||
edition = "2021"
|
edition = "2021"
|
||||||
publish = false
|
publish = false
|
||||||
|
|
||||||
|
[[bin]]
|
||||||
|
name = "example-websockets"
|
||||||
|
path = "src/main.rs"
|
||||||
|
|
||||||
|
[[bin]]
|
||||||
|
name = "example-client"
|
||||||
|
path = "src/client.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
axum = { path = "../../axum", features = ["ws"] }
|
axum = { path = "../../axum", features = ["ws"] }
|
||||||
axum-extra = { path = "../../axum-extra", features = ["typed-header"] }
|
axum-extra = { path = "../../axum-extra", features = ["typed-header"] }
|
||||||
@@ -15,11 +23,3 @@ tokio-tungstenite = "0.26.0"
|
|||||||
tower-http = { version = "0.6.1", features = ["fs", "trace"] }
|
tower-http = { version = "0.6.1", features = ["fs", "trace"] }
|
||||||
tracing = "0.1"
|
tracing = "0.1"
|
||||||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||||
|
|
||||||
[[bin]]
|
|
||||||
name = "example-websockets"
|
|
||||||
path = "src/main.rs"
|
|
||||||
|
|
||||||
[[bin]]
|
|
||||||
name = "example-client"
|
|
||||||
path = "src/client.rs"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user