Skip to content

Not support windows? #5

Description

@Paul-16098
error[E0433]: cannot find module or crate `sys` in the crate root
  --> C:\Users\pl816\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\termion-4.0.6\src\lib.rs:22:9
   |
22 | pub use sys::size::terminal_size;
   |         ^^^ use of unresolved module or unlinked crate `sys`
   |
note: found an item that was configured out
  --> C:\Users\pl816\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\termion-4.0.6\src\lib.rs:20:5
   |
18 | #[cfg(unix)]
   |       ---- the item is gated here
19 | #[path = "sys/unix/mod.rs"]
20 | mod sys;
   |     ^^^
help: if you wanted to use a crate named `sys`, use `cargo add sys` to add it to your `Cargo.toml` and import it in your code
   |
14 + extern crate sys;
   |

error[E0433]: cannot find module or crate `sys` in the crate root
  --> C:\Users\pl816\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\termion-4.0.6\src\lib.rs:25:9
   |
25 | pub use sys::tty::{get_tty, is_tty};
   |         ^^^ use of unresolved module or unlinked crate `sys`
   |
note: found an item that was configured out
  --> C:\Users\pl816\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\termion-4.0.6\src\lib.rs:20:5
   |
18 | #[cfg(unix)]
   |       ---- the item is gated here
19 | #[path = "sys/unix/mod.rs"]
20 | mod sys;
   |     ^^^
help: if you wanted to use a crate named `sys`, use `cargo add sys` to add it to your `Cargo.toml` and import it in your code
   |
14 + extern crate sys;
   |

error[E0433]: cannot find module or crate `sys` in the crate root
  --> C:\Users\pl816\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\termion-4.0.6\src\async.rs:5:5
   |
 5 | use sys::tty::get_tty;
   |     ^^^ use of unresolved module or unlinked crate `sys`
   |
note: found an item that was configured out
  --> C:\Users\pl816\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\termion-4.0.6\src\lib.rs:20:5
   |
18 | #[cfg(unix)]
   |       ---- the item is gated here
19 | #[path = "sys/unix/mod.rs"]
20 | mod sys;
   |     ^^^
help: if you wanted to use a crate named `sys`, use `cargo add sys` to add it to your `Cargo.toml` and import it in your code
  --> C:\Users\pl816\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\termion-4.0.6\src\lib.rs:14:1
   |
14 + extern crate sys;
   |

error[E0432]: unresolved import `std::os::fd`
   --> C:\Users\pl816\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\termion-4.0.6\src\input.rs:5:14
    |
  5 | use std::os::fd::AsFd;
    |              ^^ could not find `fd` in `os`
    |
note: found an item that was configured out
   --> C:\Users\pl816\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib/rustlib/src/rust\library\std\src\os\mod.rs:195:9
    |
187 |   #[cfg(any(
    |  __________-
188 | |     unix,
189 | |     target_os = "hermit",
190 | |     target_os = "trusty",
...   |
193 | |     doc
194 | | ))]
    | |_- the item is gated here
195 |   pub mod fd;
    |           ^^

error[E0433]: cannot find module or crate `sys` in the crate root
  --> C:\Users\pl816\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\termion-4.0.6\src\raw.rs:29:5
   |
29 | use sys::attr::{get_terminal_attr, raw_terminal_attr, set_terminal_attr};
   |     ^^^ use of unresolved module or unlinked crate `sys`
   |
note: found an item that was configured out
  --> C:\Users\pl816\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\termion-4.0.6\src\lib.rs:20:5
   |
18 | #[cfg(unix)]
   |       ---- the item is gated here
19 | #[path = "sys/unix/mod.rs"]
20 | mod sys;
   |     ^^^
help: if you wanted to use a crate named `sys`, use `cargo add sys` to add it to your `Cargo.toml` and import it in your code
  --> C:\Users\pl816\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\termion-4.0.6\src\lib.rs:14:1
   |
14 + extern crate sys;
   |

error[E0432]: unresolved import `std::os::fd`
   --> C:\Users\pl816\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\termion-4.0.6\src\raw.rs:26:9
    |
 26 |     os::fd::AsFd,
    |         ^^ could not find `fd` in `os`
    |
note: found an item that was configured out
   --> C:\Users\pl816\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib/rustlib/src/rust\library\std\src\os\mod.rs:195:9
    |
187 |   #[cfg(any(
    |  __________-
188 | |     unix,
189 | |     target_os = "hermit",
190 | |     target_os = "trusty",
...   |
193 | |     doc
194 | | ))]
    | |_- the item is gated here
195 |   pub mod fd;
    |           ^^

error[E0432]: unresolved import `sys`
  --> C:\Users\pl816\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\termion-4.0.6\src\raw.rs:30:5
   |
30 | use sys::Termios;
   |     ^^^ use of unresolved module or unlinked crate `sys`
   |
note: found an item that was configured out
  --> C:\Users\pl816\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\termion-4.0.6\src\lib.rs:20:5
   |
18 | #[cfg(unix)]
   |       ---- the item is gated here
19 | #[path = "sys/unix/mod.rs"]
20 | mod sys;
   |     ^^^
help: if you wanted to use a crate named `sys`, use `cargo add sys` to add it to your `Cargo.toml` and import it in your code
  --> C:\Users\pl816\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\termion-4.0.6\src\lib.rs:14:1
   |
14 + extern crate sys;
   |

Some errors have detailed explanations: E0432, E0433.
For more information about an error, try `rustc --explain E0432`.
error: could not compile `termion` (lib) due to 7 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile `blaze-keys v0.3.0 (https://github.com/enhanced-primate/blaze-keys#a264f419)`, intermediate artifacts can be found at `C:\Users\pl816\AppData\Local\Temp\cargo-installm8U5VH`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_BUILD_BUILD_DIR` to that path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions