forked from programatik29/axum-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
81 lines (70 loc) · 2.42 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
[package]
authors = ["Programatik <[email protected]>", "Adi Salimgereev <[email protected]>"]
categories = ["asynchronous", "network-programming", "web-programming"]
description = "High level server designed to be used with axum framework."
edition = "2021"
homepage = "https://github.com/programatik29/axum-server"
keywords = ["http", "https", "web", "server"]
license = "MIT"
name = "axum-server"
readme = "README.md"
repository = "https://github.com/programatik29/axum-server"
version = "0.6.0"
[features]
default = []
tls-rustls = ["arc-swap", "rustls", "rustls-pemfile", "tokio/fs", "tokio/time", "tokio-rustls"]
tls-openssl = ["arc-swap", "openssl", "tokio-openssl"]
[dependencies]
bytes = "1"
futures-util = { version = "0.3", default-features = false, features = [
"alloc",
] }
http = "1.0.0"
http-body = "1.0.0"
hyper = { version = "1.0.1", features = ["http1", "http2", "server"] }
tokio = { version = "1", features = ["macros", "net", "sync"] }
tower-service = "0.3"
http-body-util = "0.1.0"
hyper-util = { version = "0.1.1", features = ["server-auto", "tokio"] }
pin-project-lite = "0.2"
tower = { version = "0.4", features = ["util"] }
# optional dependencies
## rustls
arc-swap = { version = "1", optional = true }
rustls = { version = "0.21", features = ["dangerous_configuration"], optional = true }
rustls-pemfile = { version = "2.0.0", optional = true }
tokio-rustls = { version = "0.24", optional = true }
## openssl
openssl = { version = "0.10", optional = true }
tokio-openssl = { version = "0.6", optional = true }
[dev-dependencies]
serial_test = "2.0"
axum = "0.7"
hyper = { version = "1.0.1", features = ["full"] }
tokio = { version = "1", features = ["full"] }
tower = { version = "0.4", features = ["util"] }
tower-http = { version = "0.5.0", features = ["add-extension"] }
[package.metadata.docs.rs]
all-features = true
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
rustdoc-args = ["--cfg", "docsrs"]
[[example]]
name = "from_std_listener_rustls"
required-features = ["tls-rustls"]
doc-scrape-examples = true
[[example]]
name = "http_and_https"
required-features = ["tls-rustls"]
doc-scrape-examples = true
[[example]]
name = "rustls_reload"
required-features = ["tls-rustls"]
doc-scrape-examples = true
[[example]]
name = "rustls_server"
required-features = ["tls-rustls"]
doc-scrape-examples = true
[[example]]
name = "rustls_session"
required-features = ["tls-rustls"]
doc-scrape-examples = true