Skip to content

Commit 0fa21a2

Browse files
authored
Merge pull request #42 from Dushistov/update-websock-deps
update to current master tokio-tungstenite
2 parents ec6390b + 23afd4b commit 0fa21a2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ members = ["couchbase-lite-core-sys", "couchbase-lite", "chat-demo"]
33

44
[patch.'crates-io']
55
http = { git = "https://github.com/Dushistov/http", rev = "3ad3b825edc3a0d9048a6af5ab524f2fc51bde30" }
6-
tungstenite = { git = "https://github.com/Dushistov/tungstenite-rs", rev = "de80b9bced480d407665e46001fc2d7a6874d71e" }
6+
tokio-tungstenite = { git = "https://github.com/snapview/tokio-tungstenite", rev = "dff4d7209b5f8c4299a2e2be9f46bd79217fda48" }
77
couchbase-lite = { path = "couchbase-lite" }
88
couchbase-lite-core-sys = { path = "couchbase-lite-core-sys" }
99
cmake = { git = "https://github.com/Dushistov/cmake-rs", rev = "125fe65e123f9bd4ceaf91924b0a381d473f2d97" }

couchbase-lite/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ edition = "2018"
66

77
[features]
88
default = ["replication", "tls"]
9-
replication = ["tokio-tungstenite", "http", "tokio", "futures-util", "tokio-tls"]
9+
replication = ["tokio-tungstenite", "http", "tokio", "futures-util", "tokio-native-tls"]
1010
tls = ["tokio-tungstenite/tls"]
1111

1212
[dependencies]
@@ -23,7 +23,7 @@ tokio-tungstenite = { version = "0.10.1", optional = true }
2323
http = { version = "0.2.1", optional = true }
2424
tokio = { version = "0.2", default-features = false, features = ["sync", "macros"], optional = true }
2525
futures-util = { version = "0.3.5", optional = true }
26-
tokio-tls = { version = "0.3.1", optional = true }
26+
tokio-native-tls = { version = "0.1", optional = true }
2727

2828
[dev-dependencies]
2929
tempfile = "3.0"

couchbase-lite/src/repl_transport.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ pub fn use_web_sockets(handle: Handle) {
6262

6363
type WsWriter = futures_util::stream::SplitSink<
6464
tokio_tungstenite::WebSocketStream<
65-
tokio_tungstenite::stream::Stream<TcpStream, tokio_tls::TlsStream<TcpStream>>,
65+
tokio_tungstenite::stream::Stream<TcpStream, tokio_native_tls::TlsStream<TcpStream>>,
6666
>,
6767
Message,
6868
>;

0 commit comments

Comments
 (0)