• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
2#
3# When uploading crates to the registry Cargo will automatically
4# "normalize" Cargo.toml files for maximal compatibility
5# with all versions of Cargo and also rewrite `path` dependencies
6# to registry (e.g., crates.io) dependencies.
7#
8# If you are reading this file be aware that the original Cargo.toml
9# will likely look very different (and much more reasonable).
10# See Cargo.toml.orig for the original contents.
11
12[package]
13edition = "2018"
14rust-version = "1.63"
15name = "tungstenite"
16version = "0.24.0"
17authors = [
18    "Alexey Galakhov",
19    "Daniel Abramov",
20]
21build = false
22include = [
23    "benches/**/*",
24    "src/**/*",
25    "examples/**/*",
26    "LICENSE-*",
27    "README.md",
28    "CHANGELOG.md",
29]
30autobins = false
31autoexamples = false
32autotests = false
33autobenches = false
34description = "Lightweight stream-based WebSocket implementation"
35homepage = "https://github.com/snapview/tungstenite-rs"
36documentation = "https://docs.rs/tungstenite/0.24.0"
37readme = "README.md"
38keywords = [
39    "websocket",
40    "io",
41    "web",
42]
43categories = [
44    "web-programming::websocket",
45    "network-programming",
46]
47license = "MIT OR Apache-2.0"
48repository = "https://github.com/snapview/tungstenite-rs"
49
50[package.metadata.docs.rs]
51all-features = true
52
53[lib]
54name = "tungstenite"
55path = "src/lib.rs"
56
57[[example]]
58name = "autobahn-client"
59path = "examples/autobahn-client.rs"
60required-features = ["handshake"]
61
62[[example]]
63name = "autobahn-server"
64path = "examples/autobahn-server.rs"
65required-features = ["handshake"]
66
67[[example]]
68name = "callback-error"
69path = "examples/callback-error.rs"
70required-features = ["handshake"]
71
72[[example]]
73name = "client"
74path = "examples/client.rs"
75required-features = ["handshake"]
76
77[[example]]
78name = "server"
79path = "examples/server.rs"
80required-features = ["handshake"]
81
82[[example]]
83name = "srv_accept_unmasked_frames"
84path = "examples/srv_accept_unmasked_frames.rs"
85required-features = ["handshake"]
86
87[[bench]]
88name = "buffer"
89path = "benches/buffer.rs"
90harness = false
91
92[[bench]]
93name = "write"
94path = "benches/write.rs"
95harness = false
96
97[dependencies.byteorder]
98version = "1.3.2"
99
100[dependencies.bytes]
101version = "1.0"
102
103[dependencies.data-encoding]
104version = "2"
105optional = true
106
107[dependencies.http]
108version = "1.0"
109optional = true
110
111[dependencies.httparse]
112version = "1.3.4"
113optional = true
114
115[dependencies.log]
116version = "0.4.8"
117
118[dependencies.native-tls-crate]
119version = "0.2.3"
120optional = true
121package = "native-tls"
122
123[dependencies.rand]
124version = "0.8.0"
125
126[dependencies.rustls]
127version = "0.23.0"
128features = ["std"]
129optional = true
130default-features = false
131
132[dependencies.rustls-native-certs]
133version = "0.7.0"
134optional = true
135
136[dependencies.rustls-pki-types]
137version = "1.0"
138optional = true
139
140[dependencies.sha1]
141version = "0.10"
142optional = true
143
144[dependencies.thiserror]
145version = "1.0.23"
146
147[dependencies.url]
148version = "2.1.0"
149optional = true
150
151[dependencies.utf-8]
152version = "0.7.5"
153
154[dependencies.webpki-roots]
155version = "0.26"
156optional = true
157
158[dev-dependencies.criterion]
159version = "0.5.0"
160
161[dev-dependencies.env_logger]
162version = "0.10.0"
163
164[dev-dependencies.input_buffer]
165version = "0.5.0"
166
167[dev-dependencies.rand]
168version = "0.8.4"
169
170[dev-dependencies.socket2]
171version = "0.5.5"
172
173[features]
174__rustls-tls = [
175    "rustls",
176    "rustls-pki-types",
177]
178default = ["handshake"]
179handshake = [
180    "data-encoding",
181    "http",
182    "httparse",
183    "sha1",
184]
185native-tls = ["native-tls-crate"]
186native-tls-vendored = [
187    "native-tls",
188    "native-tls-crate/vendored",
189]
190rustls-tls-native-roots = [
191    "__rustls-tls",
192    "rustls-native-certs",
193]
194rustls-tls-webpki-roots = [
195    "__rustls-tls",
196    "webpki-roots",
197]
198url = ["dep:url"]
199