ws subscription

This commit is contained in:
Aiden McClelland
2021-08-03 15:49:40 -06:00
committed by Aiden McClelland
parent e1c123c4e3
commit 0d9101841c
5 changed files with 286 additions and 5 deletions

79
appmgr/Cargo.lock generated
View File

@@ -791,6 +791,7 @@ dependencies = [
"futures",
"git-version",
"http",
"hyper-ws-listener",
"indexmap",
"itertools 0.10.1",
"jsonpath_lib",
@@ -823,6 +824,7 @@ dependencies = [
"tokio-compat-02",
"tokio-stream",
"tokio-tar",
"tokio-tungstenite",
"tokio-util",
"toml",
"torut",
@@ -1278,6 +1280,22 @@ dependencies = [
"tokio-native-tls",
]
[[package]]
name = "hyper-ws-listener"
version = "0.1.0"
source = "git+https://github.com/Start9Labs/hyper-ws-listener.git?branch=main#d5db3698d61293375384a5d8aa980c834d45028a"
dependencies = [
"anyhow",
"base64 0.13.0",
"env_logger",
"futures",
"hyper",
"log",
"sha-1",
"tokio 1.8.1",
"tokio-tungstenite",
]
[[package]]
name = "hyperlocal"
version = "0.8.0"
@@ -1319,6 +1337,15 @@ dependencies = [
"serde",
]
[[package]]
name = "input_buffer"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f97967975f448f1a7ddb12b0bc41069d09ed6a1c161a92687e057325db35d413"
dependencies = [
"bytes 1.0.1",
]
[[package]]
name = "instant"
version = "0.1.10"
@@ -2501,6 +2528,19 @@ dependencies = [
"yaml-rust",
]
[[package]]
name = "sha-1"
version = "0.9.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8c4cfa741c5832d0ef7fab46cabed29c2aae926db0b11bb2069edd8db5e64e16"
dependencies = [
"block-buffer 0.9.0",
"cfg-if 1.0.0",
"cpufeatures",
"digest 0.9.0",
"opaque-debug 0.3.0",
]
[[package]]
name = "sha1"
version = "0.6.0"
@@ -3137,6 +3177,19 @@ dependencies = [
"xattr",
]
[[package]]
name = "tokio-tungstenite"
version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1e96bb520beab540ab664bd5a9cfeaa1fcd846fa68c830b42e2c8963071251d2"
dependencies = [
"futures-util",
"log",
"pin-project",
"tokio 1.8.1",
"tungstenite",
]
[[package]]
name = "tokio-util"
version = "0.6.7"
@@ -3223,6 +3276,26 @@ version = "0.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "59547bce71d9c38b83d9c0e92b6066c4253371f15005def0c30d9657f50c7642"
[[package]]
name = "tungstenite"
version = "0.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5fe8dada8c1a3aeca77d6b51a4f1314e0f4b8e438b7b1b71e3ddaca8080e4093"
dependencies = [
"base64 0.13.0",
"byteorder",
"bytes 1.0.1",
"http",
"httparse",
"input_buffer",
"log",
"rand 0.8.3",
"sha-1",
"thiserror",
"url",
"utf-8",
]
[[package]]
name = "typed-builder"
version = "0.9.0"
@@ -3307,6 +3380,12 @@ dependencies = [
"serde",
]
[[package]]
name = "utf-8"
version = "0.7.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9"
[[package]]
name = "vcpkg"
version = "0.2.15"