feat: add STDIN and STDOUT support (#39)

* feat: add STDIN and STDOUT support

also avoid keeping files data in memory, after calculating the outboard data

* Update src/server.rs

Co-authored-by: Floris Bruynooghe <flub@devork.be>

* Update src/server.rs

Co-authored-by: Floris Bruynooghe <flub@devork.be>

Co-authored-by: Floris Bruynooghe <flub@devork.be>
This commit is contained in:
Friedel ZiegelmayerandFloris Bruynooghe authored and GitHub committed 2023-01-23 13:26:10 +01:00
1 parent 03e1f9377d
commit c121094de2
6 files changed
+168 -72

No files matched your search

Generated
+42
View File
@@ -496,6 +496,15 @@ dependencies = [
"libc",
]
[[package]]
name = "fastrand"
version = "1.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a7a407cfaa3385c4ae6b23e84623d48c2798d06e3e6a1878f7f59f17b3f86499"
dependencies = [
"instant",
]
[[package]]
name = "fnv"
version = "1.0.7"
@@ -684,6 +693,15 @@ dependencies = [
"unicode-width",
]
[[package]]
name = "instant"
version = "0.1.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c"
dependencies = [
"cfg-if",
]
[[package]]
name = "intrusive-collections"
version = "0.9.4"
@@ -1210,6 +1228,15 @@ version = "0.6.28"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "456c603be3e8d448b072f410900c09faf164fbce2d480456f50eea6e25f9c848"
[[package]]
name = "remove_dir_all"
version = "0.5.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3acd125665422973a33ac9d3dd2df85edad0f4ae9b00dafb1a05e43a9f5ef8e7"
dependencies = [
"winapi",
]
[[package]]
name = "ring"
version = "0.16.20"
@@ -1448,6 +1475,7 @@ dependencies = [
"rustls",
"s2n-quic",
"serde",
"tempfile",
"testdir",
"thiserror",
"tokio",
@@ -1613,6 +1641,20 @@ dependencies = [
"winapi",
]
[[package]]
name = "tempfile"
version = "3.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5cdb1ef4eaeeaddc8fbd371e5017057064af0911902ef36b39801f67cc6d79e4"
dependencies = [
"cfg-if",
"fastrand",
"libc",
"redox_syscall",
"remove_dir_all",
"winapi",
]
[[package]]
name = "termcolor"
version = "1.1.3"