-
Notifications
You must be signed in to change notification settings - Fork 236
/
Cargo.toml
109 lines (89 loc) · 3 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
[package]
name = "tokio-tungstenite"
description = "Tokio binding for Tungstenite, the Lightweight stream-based WebSocket implementation"
categories = ["web-programming::websocket", "network-programming", "asynchronous", "concurrency"]
keywords = ["websocket", "io", "web"]
license = "MIT"
homepage = "https://github.com/snapview/tokio-tungstenite"
documentation = "https://docs.rs/tokio-tungstenite/0.24.0"
repository = "https://github.com/snapview/tokio-tungstenite"
version = "0.24.0"
edition = "2018"
rust-version = "1.63"
include = ["examples/**/*", "src/**/*", "LICENSE", "README.md", "CHANGELOG.md"]
[package.metadata.docs.rs]
all-features = true
[features]
default = ["connect", "handshake"]
connect = ["stream", "tokio/net", "handshake"]
handshake = ["tungstenite/handshake"]
native-tls = ["native-tls-crate", "tokio-native-tls", "stream", "tungstenite/native-tls", "handshake"]
native-tls-vendored = ["native-tls", "native-tls-crate/vendored", "tungstenite/native-tls-vendored"]
rustls-tls-native-roots = ["__rustls-tls", "rustls-native-certs"]
rustls-tls-webpki-roots = ["__rustls-tls", "webpki-roots"]
__rustls-tls = ["rustls", "rustls-pki-types", "tokio-rustls", "stream", "tungstenite/__rustls-tls", "handshake"]
stream = []
url = ["tungstenite/url"]
[dependencies]
log = "0.4.17"
futures-util = { version = "0.3.28", default-features = false, features = ["sink", "std"] }
tokio = { version = "1.0.0", default-features = false, features = ["io-util"] }
[dependencies.tungstenite]
version = "0.24.0"
default-features = false
[dependencies.native-tls-crate]
optional = true
package = "native-tls"
version = "0.2.11"
[dependencies.rustls]
optional = true
version = "0.23.0"
default-features = false
[dependencies.rustls-pki-types]
optional = true
version = "1.0"
[dependencies.rustls-native-certs]
optional = true
version = "0.8.0"
[dependencies.tokio-native-tls]
optional = true
version = "0.3.1"
[dependencies.tokio-rustls]
optional = true
version = "0.26.0"
default-features = false
[dependencies.webpki-roots]
optional = true
version = "0.26.0"
[dev-dependencies]
futures-channel = "0.3.28"
hyper = { version = "1.0", default-features = false, features = ["http1", "server"] }
hyper-util = { version = "0.1", features = ["tokio"] }
http-body-util = "0.1"
tokio = { version = "1.27.0", default-features = false, features = ["io-std", "macros", "net", "rt-multi-thread", "time"] }
env_logger = "0.10.0"
[[example]]
name = "autobahn-client"
required-features = ["connect"]
[[example]]
name = "autobahn-server"
required-features = ["handshake"]
[[example]]
name = "client"
required-features = ["connect"]
[[example]]
name = "echo-server"
required-features = ["handshake"]
[[example]]
name = "server-custom-accept"
required-features = ["handshake"]
[[example]]
name = "server"
required-features = ["handshake"]
[[example]]
name = "server-headers"
required-features = ["handshake"]
[[example]]
name = "interval-server"
required-features = ["handshake"]