• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1[package]
2categories = ["asynchronous", "network-programming", "web-programming"]
3description = "Core types and traits for axum"
4edition = "2021"
5rust-version = "1.56"
6homepage = "https://github.com/tokio-rs/axum"
7keywords = ["http", "web", "framework"]
8license = "MIT"
9name = "axum-core"
10readme = "README.md"
11repository = "https://github.com/tokio-rs/axum"
12version = "0.3.4" # remember to also bump the version that axum and axum-extra depend on
13
14[features]
15tracing = ["dep:tracing"]
16
17# Required for intra-doc links to resolve correctly
18__private_docs = ["dep:tower-http"]
19
20[dependencies]
21async-trait = "0.1.67"
22bytes = "1.0"
23futures-util = { version = "0.3", default-features = false, features = ["alloc"] }
24http = "0.2.7"
25http-body = "0.4.5"
26mime = "0.3.16"
27tower-layer = "0.3"
28tower-service = "0.3"
29
30# optional dependencies
31tower-http = { version = "0.4", optional = true, features = ["limit"] }
32tracing = { version = "0.1.37", default-features = false, optional = true }
33
34[build-dependencies]
35rustversion = "1.0.9"
36
37[dev-dependencies]
38axum = { path = "../axum", version = "0.6.0", features = ["headers"] }
39futures-util = { version = "0.3", default-features = false, features = ["alloc"] }
40hyper = "0.14.24"
41tokio = { version = "1.25.0", features = ["macros"] }
42tower-http = { version = "0.4", features = ["limit"] }
43
44[package.metadata.cargo-public-api-crates]
45allowed = [
46    "futures_core",
47    "http",
48    "bytes",
49    "http_body",
50    "tower_layer",
51]
52