diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1e59d5a..0b6d03b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -65,12 +65,6 @@ jobs: # --no-self-update is necessary because the windows environment cannot self-update rustup.exe. run: rustup update ${{ matrix.rust }} --no-self-update && rustup default ${{ matrix.rust }} - run: rustup target add ${{ matrix.target }} - # https://github.com/rust-lang/rust/issues/49078 - - name: Fix windows-gnu rust-mingw - run : | - for i in crt2.o dllcrt2.o libmingwex.a libmsvcrt.a ; do - 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" - done - run: cargo build --target ${{ matrix.target }} --all --all-features --all-targets - run: cargo test --target ${{ matrix.target }} diff --git a/src/lib.rs b/src/lib.rs index da56eef..b04d1d9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1244,6 +1244,9 @@ unsafe impl IoSafe for std::io::StderrLock<'_> {} unsafe impl IoSafe for std::io::StdinLock<'_> {} unsafe impl IoSafe for std::io::StdoutLock<'_> {} unsafe impl IoSafe for std::net::TcpStream {} +unsafe impl IoSafe for std::process::ChildStdin {} +unsafe impl IoSafe for std::process::ChildStdout {} +unsafe impl IoSafe for std::process::ChildStderr {} #[cfg(unix)] unsafe impl IoSafe for std::os::unix::net::UnixStream {}