2021-11-30 21:46:13 +08:00
|
|
|
[package]
|
|
|
|
categories = ["asynchronous", "network-programming", "web-programming"]
|
|
|
|
description = "Core types and traits for axum"
|
2022-06-18 02:11:35 +08:00
|
|
|
edition = "2021"
|
2022-07-28 21:31:47 +08:00
|
|
|
rust-version = "1.56"
|
2021-11-30 21:46:13 +08:00
|
|
|
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"
|
2023-12-04 16:16:15 +08:00
|
|
|
version = "0.4.1" # remember to also bump the version that axum and axum-extra depend on
|
2021-11-30 21:46:13 +08:00
|
|
|
|
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"]
|
|
|
|
|
2021-11-30 21:46:13 +08:00
|
|
|
[dependencies]
|
2023-03-19 03:23:27 +08:00
|
|
|
async-trait = "0.1.67"
|
2021-11-30 21:46:13 +08:00
|
|
|
bytes = "1.0"
|
|
|
|
futures-util = { version = "0.3", default-features = false, features = ["alloc"] }
|
2023-11-23 19:03:03 +08:00
|
|
|
http = "1.0.0"
|
|
|
|
http-body = "1.0.0"
|
|
|
|
http-body-util = "0.1.0"
|
2021-11-30 21:46:13 +08:00
|
|
|
mime = "0.3.16"
|
2023-03-14 16:13:19 +08:00
|
|
|
pin-project-lite = "0.2.7"
|
|
|
|
sync_wrapper = "0.1.1"
|
2022-09-10 14:36:30 +08:00
|
|
|
tower-layer = "0.3"
|
|
|
|
tower-service = "0.3"
|
2021-11-30 21:46:13 +08:00
|
|
|
|
2023-03-12 18:15:58 +08:00
|
|
|
# optional dependencies
|
2023-11-23 19:03:03 +08:00
|
|
|
tower-http = { version = "0.5.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
|
|
|
|
2022-11-19 19:45:03 +08:00
|
|
|
[build-dependencies]
|
|
|
|
rustversion = "1.0.9"
|
|
|
|
|
2021-11-30 21:46:13 +08:00
|
|
|
[dev-dependencies]
|
2023-12-04 16:16:15 +08:00
|
|
|
axum = { path = "../axum", version = "0.7.2" }
|
2023-04-11 22:09:48 +08:00
|
|
|
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"] }
|
2023-11-23 19:03:03 +08:00
|
|
|
hyper = "1.0.0"
|
2023-02-28 01:40:03 +08:00
|
|
|
tokio = { version = "1.25.0", features = ["macros"] }
|
2023-11-23 19:03:03 +08:00
|
|
|
tower-http = { version = "0.5.0", features = ["limit"] }
|
2023-02-17 05:41:41 +08:00
|
|
|
|
|
|
|
[package.metadata.cargo-public-api-crates]
|
|
|
|
allowed = [
|
2023-11-27 18:53:05 +08:00
|
|
|
# not 1.0
|
2023-02-17 05:41:41 +08:00
|
|
|
"futures_core",
|
2023-11-27 18:53:05 +08:00
|
|
|
"tower_layer",
|
|
|
|
|
|
|
|
# >=1.0
|
2023-02-17 05:41:41 +08:00
|
|
|
"bytes",
|
2023-11-27 18:53:05 +08:00
|
|
|
"http",
|
2023-02-17 05:41:41 +08:00
|
|
|
"http_body",
|
|
|
|
]
|
2023-09-17 03:47:49 +08:00
|
|
|
|
|
|
|
[package.metadata.docs.rs]
|
|
|
|
all-features = true
|
|
|
|
rustdoc-args = ["--cfg", "docsrs"]
|