2021-05-29 21:13:06 +02:00
|
|
|
[package]
|
2021-09-10 18:01:14 +02:00
|
|
|
name = "axum"
|
2021-10-19 22:37:57 +02:00
|
|
|
version = "0.3.0"
|
2021-05-29 21:13:06 +02:00
|
|
|
authors = ["David Pedersen <david.pdrsn@gmail.com>"]
|
2021-07-30 15:56:01 +02:00
|
|
|
categories = ["asynchronous", "network-programming", "web-programming"]
|
2021-06-12 20:18:21 +02:00
|
|
|
description = "Web framework that focuses on ergonomics and modularity"
|
2021-05-29 21:13:06 +02:00
|
|
|
edition = "2018"
|
2021-07-22 19:39:08 +02:00
|
|
|
homepage = "https://github.com/tokio-rs/axum"
|
2021-06-12 20:18:21 +02:00
|
|
|
keywords = ["http", "web", "framework"]
|
|
|
|
license = "MIT"
|
|
|
|
readme = "README.md"
|
2021-07-22 19:39:08 +02:00
|
|
|
repository = "https://github.com/tokio-rs/axum"
|
2021-05-29 21:13:06 +02:00
|
|
|
|
2021-08-18 00:49:01 +02:00
|
|
|
[workspace]
|
|
|
|
members = ["examples/*"]
|
|
|
|
|
2021-06-12 20:50:30 +02:00
|
|
|
[features]
|
2021-10-02 15:46:33 +02:00
|
|
|
default = ["http1", "json", "tower-log"]
|
|
|
|
http1 = ["hyper/http1"]
|
2021-08-27 10:58:50 +02:00
|
|
|
http2 = ["hyper/http2"]
|
2021-10-08 16:51:22 +02:00
|
|
|
json = ["serde_json", "mime"]
|
2021-07-14 16:53:37 +02:00
|
|
|
multipart = ["multer", "mime"]
|
2021-08-20 13:41:28 +02:00
|
|
|
tower-log = ["tower/log"]
|
2021-08-27 10:58:50 +02:00
|
|
|
ws = ["tokio-tungstenite", "sha-1", "base64"]
|
2021-06-12 20:50:30 +02:00
|
|
|
|
2021-05-29 21:13:06 +02:00
|
|
|
[dependencies]
|
2021-10-06 20:46:10 +02:00
|
|
|
async-trait = "0.1.43"
|
2021-08-07 23:05:53 +02:00
|
|
|
bitflags = "1.0"
|
2021-05-29 21:13:06 +02:00
|
|
|
bytes = "1.0"
|
2021-08-10 20:08:44 +02:00
|
|
|
futures-util = { version = "0.3", default-features = false, features = ["alloc"] }
|
2021-05-29 21:13:06 +02:00
|
|
|
http = "0.2"
|
2021-11-01 22:37:16 +01:00
|
|
|
http-body = "0.4.4"
|
|
|
|
hyper = { version = "0.14.14", features = ["server", "tcp", "stream"] }
|
2021-10-26 01:35:33 +02:00
|
|
|
matchit = "0.4.4"
|
2021-10-02 16:04:29 +02:00
|
|
|
percent-encoding = "2.1"
|
2021-08-03 09:33:00 +02:00
|
|
|
pin-project-lite = "0.2.7"
|
2021-05-29 21:13:06 +02:00
|
|
|
serde = "1.0"
|
2021-05-30 01:11:18 +02:00
|
|
|
serde_urlencoded = "0.7"
|
2021-10-02 16:04:29 +02:00
|
|
|
sync_wrapper = "0.1.1"
|
2021-06-08 22:27:38 +02:00
|
|
|
tokio = { version = "1", features = ["time"] }
|
2021-07-05 16:18:39 +02:00
|
|
|
tokio-util = "0.6"
|
2021-11-01 14:15:34 +01:00
|
|
|
tower = { version = "0.4.10", default-features = false, features = ["util", "buffer", "make"] }
|
2021-06-12 23:59:18 +02:00
|
|
|
tower-http = { version = "0.1", features = ["add-extension", "map-response-body"] }
|
2021-10-02 16:04:29 +02:00
|
|
|
tower-layer = "0.3"
|
|
|
|
tower-service = "0.3"
|
2021-05-29 21:13:06 +02:00
|
|
|
|
2021-06-12 20:50:30 +02:00
|
|
|
# optional dependencies
|
|
|
|
base64 = { optional = true, version = "0.13" }
|
2021-06-15 21:27:21 +02:00
|
|
|
headers = { optional = true, version = "0.3" }
|
2021-07-14 16:53:37 +02:00
|
|
|
mime = { optional = true, version = "0.3" }
|
2021-10-02 16:04:29 +02:00
|
|
|
multer = { optional = true, version = "2.0.0" }
|
|
|
|
serde_json = { version = "1.0", optional = true }
|
|
|
|
sha-1 = { optional = true, version = "0.9.6" }
|
|
|
|
tokio-tungstenite = { optional = true, version = "0.15" }
|
2021-06-12 20:50:30 +02:00
|
|
|
|
2021-05-29 21:13:06 +02:00
|
|
|
[dev-dependencies]
|
2021-06-19 12:50:33 +02:00
|
|
|
futures = "0.3"
|
2021-05-31 12:22:16 +02:00
|
|
|
reqwest = { version = "0.11", features = ["json", "stream"] }
|
2021-05-29 21:13:06 +02:00
|
|
|
serde = { version = "1.0", features = ["derive"] }
|
2021-10-02 15:46:33 +02:00
|
|
|
serde_json = "1.0"
|
2021-08-01 08:32:47 +02:00
|
|
|
tokio = { version = "1.6.1", features = ["macros", "rt", "rt-multi-thread", "net"] }
|
2021-08-18 09:48:36 +02:00
|
|
|
tokio-stream = "0.1"
|
2021-10-25 23:38:29 +02:00
|
|
|
tracing = "0.1"
|
2021-10-24 15:22:49 +02:00
|
|
|
uuid = { version = "0.8", features = ["serde", "v4"] }
|
2021-11-01 22:13:37 +01:00
|
|
|
anyhow = "1.0"
|
2021-08-04 12:10:20 +02:00
|
|
|
|
2021-06-12 20:50:30 +02:00
|
|
|
[dev-dependencies.tower]
|
2021-08-21 15:01:30 +02:00
|
|
|
package = "tower"
|
2021-11-01 14:15:34 +01:00
|
|
|
version = "0.4.10"
|
2021-06-12 20:50:30 +02:00
|
|
|
features = [
|
|
|
|
"util",
|
|
|
|
"timeout",
|
|
|
|
"limit",
|
|
|
|
"load-shed",
|
|
|
|
"steer",
|
|
|
|
"filter",
|
|
|
|
]
|
|
|
|
|
2021-06-01 11:23:56 +02:00
|
|
|
[dev-dependencies.tower-http]
|
|
|
|
version = "0.1"
|
2021-06-19 12:50:33 +02:00
|
|
|
features = ["full"]
|
2021-06-12 20:18:21 +02:00
|
|
|
|
|
|
|
[package.metadata.docs.rs]
|
|
|
|
all-features = true
|
|
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
|
|
|
|
[package.metadata.playground]
|
2021-10-02 16:04:29 +02:00
|
|
|
features = [
|
|
|
|
"http1",
|
|
|
|
"http2",
|
|
|
|
"json",
|
|
|
|
"multipart",
|
|
|
|
"tower",
|
|
|
|
"ws",
|
|
|
|
]
|