Trying to cross compile for windows

When I try to cross-compile to Windows (the x86_64-pc-windows-gnu target), I get this error:

error[E0433]: failed to resolve: could not find `unix` in `os`
   --> /home/runner/Maze/.cargo/registry/src/index.crates.io-6f17d22bba15001f/termios-0.3.3/src/lib.rs:132:14
    |
132 | use std::os::unix::io::RawFd;
    |              ^^^^ could not find `unix` in `os`

error[E0432]: unresolved import `libc::pid_t`
   --> /home/runner/Maze/.cargo/registry/src/index.crates.io-6f17d22bba15001f/termios-0.3.3/src/lib.rs:134:18
    |
134 | use libc::{c_int,pid_t};
    |                  ^^^^^ no `pid_t` in the root

error[E0432]: unresolved import `os::target`
   --> /home/runner/Maze/.cargo/registry/src/index.crates.io-6f17d22bba15001f/termios-0.3.3/src/lib.rs:136:15
    |
136 | pub use ::os::target::{cc_t,speed_t,tcflag_t}; // types
    |               ^^^^^^ could not find `target` in `os`

error[E0432]: unresolved import `os::target`
   --> /home/runner/Maze/.cargo/registry/src/index.crates.io-6f17d22bba15001f/termios-0.3.3/src/lib.rs:137:15
    |
137 | pub use ::os::target::{VEOF,VEOL,VERASE,VINTR,VKILL,VMIN,VQUIT,VSTART,V...
    |               ^^^^^^ could not find `target` in `os`

error[E0432]: unresolved import `os::target`
   --> /home/runner/Maze/.cargo/registry/src/index.crates.io-6f17d22bba15001f/termios-0.3.3/src/lib.rs:138:15
    |
138 | pub use ::os::target::{BRKINT,ICRNL,IGNBRK,IGNCR,IGNPAR,INLCR,INPCK,IST...
    |               ^^^^^^ could not find `target` in `os`

error[E0432]: unresolved import `os::target`
   --> /home/runner/Maze/.cargo/registry/src/index.crates.io-6f17d22bba15001f/termios-0.3.3/src/lib.rs:139:15
    |
139 | pub use ::os::target::{OPOST,ONLCR,OCRNL,ONOCR,ONLRET}; // output modes
    |               ^^^^^^ could not find `target` in `os`

error[E0432]: unresolved import `os::target`
   --> /home/runner/Maze/.cargo/registry/src/index.crates.io-6f17d22bba15001f/termios-0.3.3/src/lib.rs:140:15
    |
140 | pub use ::os::target::{B0,B50,B75,B110,B134,B150,B200,B300,B600,B1200,B...
    |               ^^^^^^ could not find `target` in `os`

error[E0432]: unresolved import `os::target`
   --> /home/runner/Maze/.cargo/registry/src/index.crates.io-6f17d22bba15001f/termios-0.3.3/src/lib.rs:141:15
    |
141 | pub use ::os::target::{CSIZE,CS5,CS6,CS7,CS8,CSTOPB,CREAD,PARENB,PARODD...
    |               ^^^^^^ could not find `target` in `os`

error[E0432]: unresolved import `os::target`
   --> /home/runner/Maze/.cargo/registry/src/index.crates.io-6f17d22bba15001f/termios-0.3.3/src/lib.rs:142:15
    |
142 | pub use ::os::target::{ECHO,ECHOE,ECHOK,ECHONL,ICANON,IEXTEN,ISIG,NOFLS...
    |               ^^^^^^ could not find `target` in `os`

error[E0432]: unresolved import `os::target`
   --> /home/runner/Maze/.cargo/registry/src/index.crates.io-6f17d22bba15001f/termios-0.3.3/src/lib.rs:143:15
    |
143 | pub use ::os::target::{TCSANOW,TCSADRAIN,TCSAFLUSH}; // attribute selec...
    |               ^^^^^^ could not find `target` in `os`

error[E0432]: unresolved import `os::target`
   --> /home/runner/Maze/.cargo/registry/src/index.crates.io-6f17d22bba15001f/termios-0.3.3/src/lib.rs:144:15
    |
144 | pub use ::os::target::{TCIFLUSH,TCIOFLUSH,TCOFLUSH,TCIOFF,TCION,TCOOFF,...
    |               ^^^^^^ could not find `target` in `os`

error[E0432]: unresolved import `libc::pid_t`
 --> /home/runner/Maze/.cargo/registry/src/index.crates.io-6f17d22bba15001f/termios-0.3.3/src/ffi.rs:3:18
  |
3 | use libc::{c_int,pid_t};
  |                  ^^^^^ no `pid_t` in the root
  |
  = help: consider importing this unresolved item through its public re-export instead:
          pid_t

error[E0433]: failed to resolve: could not find `target` in `os`
 --> /home/runner/Maze/.cargo/registry/src/index.crates.io-6f17d22bba15001f/termios-0.3.3/src/ffi.rs:7:55
  |
7 | ...s_p: *mut ::os::target::termios) -> c_int;
  |                    ^^^^^^ could not find `target` in `os`

error[E0433]: failed to resolve: could not find `target` in `os`
 --> /home/runner/Maze/.cargo/registry/src/index.crates.io-6f17d22bba15001f/termios-0.3.3/src/ffi.rs:8:82
  |
8 | ...p: *const ::os::target::termios) -> c_int;
  |                    ^^^^^^ could not find `target` in `os`

error[E0433]: failed to resolve: could not find `target` in `os`
  --> /home/runner/Maze/.cargo/registry/src/index.crates.io-6f17d22bba15001f/termios-0.3.3/src/ffi.rs:14:44
   |
14 |     pub fn cfmakeraw(termios_p: *mut ::os::target::termios);
   |                                            ^^^^^^ could not find `target` in `os`

error[E0433]: failed to resolve: could not find `target` in `os`
  --> /home/runner/Maze/.cargo/registry/src/index.crates.io-6f17d22bba15001f/termios-0.3.3/src/ffi.rs:15:48
   |
15 | ...: *const ::os::target::termios) -> ::os::target::speed_t;
   |                   ^^^^^^ could not find `target` in `os`

error[E0433]: failed to resolve: could not find `target` in `os`
  --> /home/runner/Maze/.cargo/registry/src/index.crates.io-6f17d22bba15001f/termios-0.3.3/src/ffi.rs:15:74
   |
15 | ...mios) -> ::os::target::speed_t;
   |                   ^^^^^^ could not find `target` in `os`

error[E0433]: failed to resolve: could not find `target` in `os`
  --> /home/runner/Maze/.cargo/registry/src/index.crates.io-6f17d22bba15001f/termios-0.3.3/src/ffi.rs:16:48
   |
16 | ...: *const ::os::target::termios) -> ::os::target::speed_t;
   |                   ^^^^^^ could not find `target` in `os`

error[E0433]: failed to resolve: could not find `target` in `os`
  --> /home/runner/Maze/.cargo/registry/src/index.crates.io-6f17d22bba15001f/termios-0.3.3/src/ffi.rs:16:74
   |
16 | ...mios) -> ::os::target::speed_t;
   |                   ^^^^^^ could not find `target` in `os`

error[E0433]: failed to resolve: could not find `target` in `os`
  --> /home/runner/Maze/.cargo/registry/src/index.crates.io-6f17d22bba15001f/termios-0.3.3/src/ffi.rs:17:46
   |
17 | ..._p: *mut ::os::target::termios, speed: ::os::target::speed_t) -> c_int;
   |                   ^^^^^^ could not find `target` in `os`

error[E0433]: failed to resolve: could not find `target` in `os`
  --> /home/runner/Maze/.cargo/registry/src/index.crates.io-6f17d22bba15001f/termios-0.3.3/src/ffi.rs:17:76
   |
17 | ..., speed: ::os::target::speed_t) -> c_int;
   |                   ^^^^^^ could not find `target` in `os`

error[E0433]: failed to resolve: could not find `target` in `os`
  --> /home/runner/Maze/.cargo/registry/src/index.crates.io-6f17d22bba15001f/termios-0.3.3/src/ffi.rs:18:46
   |
18 | ..._p: *mut ::os::target::termios, speed: ::os::target::speed_t) -> c_int;
   |                   ^^^^^^ could not find `target` in `os`

error[E0433]: failed to resolve: could not find `target` in `os`
  --> /home/runner/Maze/.cargo/registry/src/index.crates.io-6f17d22bba15001f/termios-0.3.3/src/ffi.rs:18:76
   |
18 | ..., speed: ::os::target::speed_t) -> c_int;
   |                   ^^^^^^ could not find `target` in `os`

error[E0433]: failed to resolve: could not find `target` in `os`
  --> /home/runner/Maze/.cargo/registry/src/index.crates.io-6f17d22bba15001f/termios-0.3.3/src/ffi.rs:20:45
   |
20 | ..._p: *mut ::os::target::termios, speed: ::os::target::speed_t) -> c_int;
   |                   ^^^^^^ could not find `target` in `os`

error[E0433]: failed to resolve: could not find `target` in `os`
  --> /home/runner/Maze/.cargo/registry/src/index.crates.io-6f17d22bba15001f/termios-0.3.3/src/ffi.rs:20:75
   |
20 | ..., speed: ::os::target::speed_t) -> c_int;
   |                   ^^^^^^ could not find `target` in `os`

error[E0433]: failed to resolve: could not find `target` in `os`
   --> /home/runner/Maze/.cargo/registry/src/index.crates.io-6f17d22bba15001f/termios-0.3.3/src/lib.rs:187:18
    |
187 |     inner: ::os::target::termios
    |                  ^^^^^^ could not find `target` in `os`

error[E0433]: failed to resolve: could not find `target` in `os`
   --> /home/runner/Maze/.cargo/registry/src/index.crates.io-6f17d22bba15001f/termios-0.3.3/src/lib.rs:203:31
    |
203 |     fn inner(&self) -> &::os::target::termios {
    |                               ^^^^^^ could not find `target` in `os`

error[E0433]: failed to resolve: could not find `target` in `os`
   --> /home/runner/Maze/.cargo/registry/src/index.crates.io-6f17d22bba15001f/termios-0.3.3/src/lib.rs:207:43
    |
207 |     fn inner_mut(&mut self) -> &mut ::os::target::termios {
    |                                           ^^^^^^ could not find `target` in `os`

error[E0433]: failed to resolve: could not find `target` in `os`
   --> /home/runner/Maze/.cargo/registry/src/index.crates.io-6f17d22bba15001f/termios-0.3.3/src/lib.rs:213:25
    |
213 |     type Target = ::os::target::termios;
    |                         ^^^^^^ could not find `target` in `os`

error[E0433]: failed to resolve: could not find `target` in `os`
   --> /home/runner/Maze/.cargo/registry/src/index.crates.io-6f17d22bba15001f/termios-0.3.3/src/lib.rs:215:31
    |
215 |     fn deref(&self) -> &::os::target::termios {
    |                               ^^^^^^ could not find `target` in `os`

error[E0433]: failed to resolve: could not find `target` in `os`
   --> /home/runner/Maze/.cargo/registry/src/index.crates.io-6f17d22bba15001f/termios-0.3.3/src/lib.rs:221:43
    |
221 |     fn deref_mut(&mut self) -> &mut ::os::target::termios {
    |                                           ^^^^^^ could not find `target` in `os`

Some errors have detailed explanations: E0432, E0433.
For more information about an error, try `rustc --explain E0432`.
error: could not compile `termios` (lib) due to 31 previous errors

I cannot use cross, because I cannot install docker. What does it mean, and how do I fix it?

According to its documentation , the termios crate doesn't support Windows.

Yes, I looked at the docs soon after and saw that. I used a different crate instead.