Skip to content

Commit 9e53e6e

Browse files
authored
async-tungstenite: Make TLS features optional (#222)
* async-tungstenite: Make TLS features optional The included TLS features are only required for wss connections to the mailbox server which not required by the protocol and only really useful for wasm builds. Closes #216
1 parent 2fa0944 commit 9e53e6e

File tree

2 files changed

+137
-6
lines changed

2 files changed

+137
-6
lines changed

Cargo.lock

+131-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+6-4
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,7 @@ tar = { version = "0.4.33", optional = true }
6363
[target.'cfg(not(target_family = "wasm"))'.dependencies]
6464
libc = "0.2.101"
6565
async-std = { version = "1.12.0", features = ["attributes", "unstable"] }
66-
async-tungstenite = { version = "0.25", features = [
67-
"async-std-runtime",
68-
"async-tls",
69-
] }
66+
async-tungstenite = { version = "0.25", features = ["async-std-runtime"] }
7067
async-io = "2.2.0"
7168

7269
# Transit
@@ -103,6 +100,11 @@ forwarding = ["transit", "rmp-serde"]
103100
default = ["transit", "transfer"]
104101
all = ["default", "forwarding"]
105102

103+
# TLS implementations for websocket connections via async-tungstenite
104+
# required for optional wss connection to the mailbox server
105+
tls = ["async-tungstenite/async-tls"]
106+
native-tls = ["async-tungstenite/async-native-tls"]
107+
106108
[profile.release]
107109
overflow-checks = true
108110
strip = "debuginfo"

0 commit comments

Comments
 (0)