forked from Caiooooo/fastwebsockets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
80 lines (67 loc) · 2.09 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
[package]
name = "fastwebsockets"
description = "A fast RFC6455 WebSocket server implementation"
version = "0.4.4"
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 = "monoio_server"
path = "examples/monoio_server.rs"
required-features = ["upgrade"]
[[example]]
name = "monoio_tlsclient"
path = "examples/monoio_tlsclient.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"]
[dependencies]
tokio = { version = "1.25.0", default-features = false, features = ["io-util"] }
simdutf8 = { version = "0.1.4", optional = true }
hyper = { version = "0.14.26", 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"
[features]
default = ["simd"]
simd = ["simdutf8/aarch64_neon"]
upgrade = ["hyper", "pin-project", "base64", "sha1"]
[dev-dependencies]
tokio = { version = "1.25.0", features = ["full", "macros"] }
tokio-rustls = "0.24.0"
rustls-pemfile = "1.0"
hyper = { version = "0.14.26", features = ["http1", "server", "client", "tcp"] }
assert2 = "0.3.4"
trybuild = "1.0.80"
criterion = "0.4.0"
anyhow = "1.0.71"
webpki-roots = "0.23.0"
monoio = { version = "0.1.9", default-features = false, features = ["async-cancel", "sync", "bytes", "legacy", "macros", "utils", "tokio-compat"] }
monoio-compat = { version = "0.1.2" }
[[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"]