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