Add sentence I/O to blocking ConnectionStream

This commit is contained in:
Aram 🍐 2021-08-04 17:48:20 -04:00
parent ea96f433e6
commit a92500e67b
10 changed files with 343 additions and 18 deletions

62
Cargo.lock generated
View file

@ -52,6 +52,22 @@ version = "3.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9c59e7af012c713f529e7a3ee57ce9b31ddd858d4b512923602f74608b009631"
[[package]]
name = "byteorder"
version = "1.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610"
[[package]]
name = "bytes"
version = "0.4.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "206fdffcfa2df7cbe15601ef46c813fce0965eb3286db6b56c583b814b51c81c"
dependencies = [
"byteorder",
"iovec",
]
[[package]]
name = "bytes"
version = "1.0.1"
@ -85,6 +101,12 @@ dependencies = [
"vec_map",
]
[[package]]
name = "futures"
version = "0.1.31"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3a471a38ef8ed83cd6e40aa59c1ffe17db6855c18e3604d9c4ed8c08ebc28678"
[[package]]
name = "hermit-abi"
version = "0.1.19"
@ -94,6 +116,15 @@ dependencies = [
"libc",
]
[[package]]
name = "iovec"
version = "0.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b2b3ea6ff95e175473f8ffe6a7eb7c00d054240321b84c57051175fe3c1e075e"
dependencies = [
"libc",
]
[[package]]
name = "js-sys"
version = "0.3.51"
@ -152,6 +183,12 @@ dependencies = [
"winapi",
]
[[package]]
name = "mockstream"
version = "0.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "35bbe0c0c9d254b463b13734bc361d1423289547e052b1e77e5a77292496ba2e"
[[package]]
name = "ntapi"
version = "0.3.6"
@ -220,9 +257,11 @@ dependencies = [
name = "rups"
version = "0.5.2"
dependencies = [
"mockstream",
"rustls",
"shell-words",
"tokio",
"tokio-mockstream",
"tokio-rustls",
"webpki",
"webpki-roots",
@ -305,7 +344,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4b7b349f11a7047e6d1276853e612d152f5e8a352c61917887cc2169e2366b4c"
dependencies = [
"autocfg",
"bytes",
"bytes 1.0.1",
"libc",
"memchr",
"mio",
@ -315,6 +354,17 @@ dependencies = [
"winapi",
]
[[package]]
name = "tokio-io"
version = "0.1.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "57fc868aae093479e3131e3d165c93b1c7474109d13c90ec0dda2a1bbfff0674"
dependencies = [
"bytes 0.4.12",
"futures",
"log",
]
[[package]]
name = "tokio-macros"
version = "1.3.0"
@ -326,6 +376,16 @@ dependencies = [
"syn",
]
[[package]]
name = "tokio-mockstream"
version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "41bfc436ef8b7f60c19adf3df086330ae9992385e4d8c53b17a323cad288e155"
dependencies = [
"futures",
"tokio-io",
]
[[package]]
name = "tokio-rustls"
version = "0.22.0"