axum/axum-core/Cargo.toml

64 lines
1.7 KiB
TOML
Raw Permalink Normal View History

[package]
categories = ["asynchronous", "network-programming", "web-programming"]
description = "Core types and traits for axum"
edition = "2021"
rust-version = "1.57"
homepage = "https://github.com/tokio-rs/axum"
keywords = ["http", "web", "framework"]
license = "MIT"
name = "axum-core"
readme = "README.md"
repository = "https://github.com/tokio-rs/axum"
2024-09-21 03:17:41 +08:00
version = "0.4.4" # remember to also bump the version that axum and axum-extra depend on
2023-03-12 18:15:58 +08:00
[features]
2023-04-11 22:57:49 +08:00
tracing = ["dep:tracing"]
# Required for intra-doc links to resolve correctly
2023-03-12 18:15:58 +08:00
__private_docs = ["dep:tower-http"]
[dependencies]
2023-03-19 03:23:27 +08:00
async-trait = "0.1.67"
bytes = "1.2"
futures-util = { version = "0.3", default-features = false, features = ["alloc"] }
http = "1.0.0"
http-body = "1.0.0"
http-body-util = "0.1.0"
mime = "0.3.16"
2023-03-14 16:13:19 +08:00
pin-project-lite = "0.2.7"
rustversion = "1.0.9"
sync_wrapper = "1.0.0"
tower-layer = "0.3"
tower-service = "0.3"
2023-03-12 18:15:58 +08:00
# optional dependencies
2024-09-21 01:43:38 +08:00
tower-http = { version = "0.6.0", optional = true, features = ["limit"] }
2023-04-11 22:57:49 +08:00
tracing = { version = "0.1.37", default-features = false, optional = true }
2023-03-12 18:15:58 +08:00
[dev-dependencies]
2023-12-04 16:16:15 +08:00
axum = { path = "../axum", version = "0.7.2" }
axum-extra = { path = "../axum-extra", features = ["typed-header"] }
2023-03-19 03:23:27 +08:00
futures-util = { version = "0.3", default-features = false, features = ["alloc"] }
hyper = "1.0.0"
tokio = { version = "1.25.0", features = ["macros"] }
2024-09-21 01:43:38 +08:00
tower-http = { version = "0.6.0", features = ["limit"] }
[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
rustdoc-args = ["--cfg", "docsrs"]