-
Notifications
You must be signed in to change notification settings - Fork 68
/
Cargo.toml
123 lines (106 loc) · 2.83 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
[package]
name = "fastwebsockets"
description = "A fast RFC6455 WebSocket server implementation"
version = "0.8.0"
authors = ["Divy Srivastava <[email protected]>"]
license = "Apache-2.0"
edition = "2021"
repository = "https://github.com/denoland/fastwebsockets"
[[example]]
name = "echo_server"
path = "examples/echo_server.rs"
required-features = ["upgrade"]
[[example]]
name = "autobahn_client"
path = "examples/autobahn_client.rs"
required-features = ["upgrade"]
[[example]]
name = "tls_client"
path = "examples/tls_client.rs"
required-features = ["upgrade"]
[[example]]
name = "tls_server"
path = "examples/tls_server.rs"
required-features = ["upgrade"]
[[example]]
name = "axum"
path = "examples/axum.rs"
required-features = ["upgrade", "with_axum"]
[[example]]
name = "echo_server_split"
path = "examples/echo_server_split.rs"
required-features = ["upgrade"]
[dependencies]
tokio = { version = "1.25.0", default-features = false, features = ["io-util"] }
simdutf8 = { version = "0.1.4", optional = true }
hyper-util = { version = "0.1.0", features = ["tokio"], optional = true }
http-body-util = { version = "0.1.0", optional = true }
hyper = { version = "1", features = [
"http1",
"server",
"client",
], optional = true }
pin-project = { version = "1.0.8", optional = true }
base64 = { version = "0.21.0", optional = true }
sha1 = { version = "0.10.5", optional = true }
utf-8 = "0.7.5"
rand = "0.8.4"
thiserror = "1.0.40"
bytes = "1.5.0"
# Axum integration
axum-core = { version = "0.4.3", optional = true }
http = { version = "1", optional = true }
async-trait = { version = "0.1", optional = true }
[features]
default = ["simd"]
simd = ["simdutf8/aarch64_neon"]
upgrade = [
"hyper",
"pin-project",
"base64",
"sha1",
"hyper-util",
"http-body-util",
]
unstable-split = []
# Axum integration
with_axum = ["axum-core", "http", "async-trait"]
[dev-dependencies]
tokio = { version = "1.25.0", features = ["full", "macros"] }
tokio-rustls = "0.24.0"
rustls-pemfile = "1.0"
hyper-util = { version = "0.1.0", features = ["tokio"] }
http-body-util = { version = "0.1.0" }
hyper = { version = "1", features = ["http1", "server", "client"] }
assert2 = "0.3.4"
trybuild = "1.0.80"
criterion = "0.4.0"
anyhow = "1.0.71"
webpki-roots = "0.23.0"
bytes = "1.4.0"
axum = "0.7.4"
[[test]]
name = "upgrade"
path = "tests/upgrade.rs"
required-features = ["upgrade"]
[[test]]
name = "split"
path = "tests/split.rs"
required-features = ["upgrade"]
[[test]]
name = "concurrency"
path = "tests/concurrency.rs"
required-features = ["upgrade"]
[[bench]]
name = "unmask"
harness = false
# Build release with debug symbols: cargo build --profile=release-with-debug
[profile.release-with-debug]
inherits = "release"
debug = true
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
[package.metadata.docs.rs]
features = ["upgrade", "with_axum"]