summaryrefslogtreecommitdiff
path: root/ext/io/lib.rs
diff options
context:
space:
mode:
authorMatt Mastracci <matthew@mastracci.com>2024-02-21 18:00:57 -0700
committerGitHub <noreply@github.com>2024-02-22 01:00:57 +0000
commit27579f6fcb51661524ded70145c7f2dd67000bc2 (patch)
treedeb0eea0e470ebf698a36b5eb5103328de3c2d2b /ext/io/lib.rs
parentd29fb911f6eee81d1ae40e9c34166f0e64d69744 (diff)
chore(io): Add a cross-platform unidirectional pipe implementation (#22522)
Currently useful for `deno test` and internal tests, but could potentially be exposed at a later time as a `Deno` API.
Diffstat (limited to 'ext/io/lib.rs')
-rw-r--r--ext/io/lib.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/ext/io/lib.rs b/ext/io/lib.rs
index c85696f64..e0d649e0a 100644
--- a/ext/io/lib.rs
+++ b/ext/io/lib.rs
@@ -50,6 +50,15 @@ use winapi::um::processenv::GetStdHandle;
use winapi::um::winbase;
pub mod fs;
+mod pipe;
+#[cfg(windows)]
+mod winpipe;
+
+pub use pipe::pipe;
+pub use pipe::AsyncPipeRead;
+pub use pipe::AsyncPipeWrite;
+pub use pipe::PipeRead;
+pub use pipe::PipeWrite;
// Store the stdio fd/handles in global statics in order to keep them
// alive for the duration of the application since the last handle/fd