forked from denoland/fastwebsockets
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
76 lines (69 loc) · 1.99 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
[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"
[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"
tokio-uring = "0.4.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-uring = "0.4.0"
tokio-uring-rustls = "0.3.1"
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"
# 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"]