Add draft for euph room connection

This commit is contained in:
Joscha 2022-06-21 00:51:41 +02:00
parent a57e15c9f3
commit 21010fc48a
5 changed files with 167 additions and 15 deletions

52
Cargo.lock generated
View file

@ -160,7 +160,7 @@ dependencies = [
"thiserror",
"tokio",
"tokio-stream",
"tokio-tungstenite",
"tokio-tungstenite 0.16.1",
]
[[package]]
@ -177,7 +177,7 @@ dependencies = [
"thiserror",
"tokio",
"tokio-stream",
"tokio-tungstenite",
"tokio-tungstenite 0.16.1",
]
[[package]]
@ -190,11 +190,13 @@ dependencies = [
"crossterm",
"directories",
"edit",
"futures",
"parking_lot",
"rusqlite",
"serde",
"serde_json",
"tokio",
"tokio-tungstenite 0.17.1",
"toss",
]
@ -973,6 +975,17 @@ dependencies = [
"opaque-debug",
]
[[package]]
name = "sha-1"
version = "0.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "028f48d513f9678cda28f6e4064755b3fbb2af6acd672f2c209b62323f7aea0f"
dependencies = [
"cfg-if",
"cpufeatures",
"digest 0.10.3",
]
[[package]]
name = "sha2"
version = "0.10.2"
@ -1187,10 +1200,22 @@ dependencies = [
"rustls-native-certs",
"tokio",
"tokio-rustls",
"tungstenite",
"tungstenite 0.16.0",
"webpki",
]
[[package]]
name = "tokio-tungstenite"
version = "0.17.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "06cda1232a49558c46f8a504d5b93101d42c0bf7f911f12a105ba48168f821ae"
dependencies = [
"futures-util",
"log",
"tokio",
"tungstenite 0.17.2",
]
[[package]]
name = "toss"
version = "0.1.0"
@ -1216,13 +1241,32 @@ dependencies = [
"log",
"rand",
"rustls",
"sha-1",
"sha-1 0.9.8",
"thiserror",
"url",
"utf-8",
"webpki",
]
[[package]]
name = "tungstenite"
version = "0.17.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d96a2dea40e7570482f28eb57afbe42d97551905da6a9400acc5c328d24004f5"
dependencies = [
"base64",
"byteorder",
"bytes",
"http",
"httparse",
"log",
"rand",
"sha-1 0.10.0",
"thiserror",
"url",
"utf-8",
]
[[package]]
name = "typenum"
version = "1.15.0"