Skip to content

Commit 9d015dc

Browse files
authored
feat: Implement IoSafe for the child process stdio types
Implement IoSafe for the child process stdio types
2 parents 7e89eec + ef3e9c6 commit 9d015dc

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,6 @@ jobs:
6565
# --no-self-update is necessary because the windows environment cannot self-update rustup.exe.
6666
run: rustup update ${{ matrix.rust }} --no-self-update && rustup default ${{ matrix.rust }}
6767
- run: rustup target add ${{ matrix.target }}
68-
# https://github.com/rust-lang/rust/issues/49078
69-
- name: Fix windows-gnu rust-mingw
70-
run : |
71-
for i in crt2.o dllcrt2.o libmingwex.a libmsvcrt.a ; do
72-
cp -f "/C/ProgramData/Chocolatey/lib/mingw/tools/install/mingw64/x86_64-w64-mingw32/lib/$i" "`rustc --print sysroot`/lib/rustlib/x86_64-pc-windows-gnu/lib"
73-
done
7468
- run: cargo build --target ${{ matrix.target }} --all --all-features --all-targets
7569
- run: cargo test --target ${{ matrix.target }}
7670

src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1244,6 +1244,9 @@ unsafe impl IoSafe for std::io::StderrLock<'_> {}
12441244
unsafe impl IoSafe for std::io::StdinLock<'_> {}
12451245
unsafe impl IoSafe for std::io::StdoutLock<'_> {}
12461246
unsafe impl IoSafe for std::net::TcpStream {}
1247+
unsafe impl IoSafe for std::process::ChildStdin {}
1248+
unsafe impl IoSafe for std::process::ChildStdout {}
1249+
unsafe impl IoSafe for std::process::ChildStderr {}
12471250

12481251
#[cfg(unix)]
12491252
unsafe impl IoSafe for std::os::unix::net::UnixStream {}

0 commit comments

Comments
 (0)