forked from programatik29/axum-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
102 lines (90 loc) · 2.76 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
[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.7.1"
rust-version = "1.66"
[features]
default = []
tls-rustls = ["tls-rustls-no-provider", "rustls/ring"]
tls-rustls-aws = ["tls-rustls-no-provider", "rustls/aws-lc-rs"]
tls-rustls-no-provider = [
"arc-swap",
"rustls",
"rustls-pemfile",
"tokio/fs",
"tokio/time",
"tokio-rustls",
"rustls-pki-types",
"dep:pin-project-lite",
]
tls-openssl = ["arc-swap", "openssl", "tokio-openssl", "dep:pin-project-lite"]
[dependencies]
bytes = "1"
http = "1.1"
http-body = "1.0"
hyper = { version = "1.4", features = ["http1", "http2", "server"] }
tokio = { version = "1", features = ["macros", "net", "sync"] }
tower-service = "0.3"
hyper-util = { version = "0.1.2", features = [
"server-auto",
"service",
"tokio",
] }
# optional dependencies
## rustls
arc-swap = { version = "1", optional = true }
rustls = { version = "0.23", default-features = false, features = [
"tls12"
], optional = true }
rustls-pki-types = { version = "1.7", optional = true }
rustls-pemfile = { version = "2.1", optional = true }
tokio-rustls = { version = "0.26", default-features = false, optional = true }
## openssl
openssl = { version = "0.10", optional = true }
tokio-openssl = { version = "0.6", optional = true }
## rustls or openssl
pin-project-lite = { version = "0.2", optional = true }
[dev-dependencies]
serial_test = "3.1"
futures-util = { version = "0.3", default-features = false }
http-body-util = "0.1"
axum = "0.8.1"
hyper = { version = "1.4", features = ["full"] }
tokio = { version = "1", features = ["full"] }
tower = { version = "0.5", features = ["util"] }
tower-http = { version = "0.6.2", 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