Samyak2 / toipe

yet another typing test, but crab flavoured
MIT License
592 stars 31 forks source link

Build failed from Cargo #56

Closed DeflateAwning closed 11 months ago

DeflateAwning commented 11 months ago
cargo install toipe
    Updating crates.io index
  Downloaded toipe v0.4.1
  Downloaded 1 crate (510.6 KB) in 0.99s
  Installing toipe v0.4.1
  Downloaded os_str_bytes v6.6.1
  Downloaded termcolor v1.4.0
  Downloaded clap_derive v3.2.25
  Downloaded clap v3.2.25
  Downloaded once_cell v1.18.0
  Downloaded termion v1.5.6
  Downloaded bisection v0.1.0
  Downloaded numtoa v0.1.0
  Downloaded libc v0.2.150
  Downloaded 9 crates (1.1 MB) in 1.50s
   Compiling version_check v0.9.4
   Compiling proc-macro2 v1.0.70
   Compiling unicode-ident v1.0.12
   Compiling winapi v0.3.9
   Compiling syn v1.0.109
   Compiling autocfg v1.1.0
   Compiling cfg-if v1.0.0
   Compiling libc v0.2.150
   Compiling getrandom v0.2.11
   Compiling rand_core v0.6.4
   Compiling ppv-lite86 v0.2.17
   Compiling proc-macro-error-attr v1.0.4
   Compiling proc-macro-error v1.0.4
   Compiling indexmap v1.9.3
   Compiling heck v0.4.1
   Compiling os_str_bytes v6.6.1
   Compiling hashbrown v0.12.3
   Compiling rand_chacha v0.3.1
   Compiling textwrap v0.16.0
   Compiling quote v1.0.33
   Compiling clap_lex v0.2.4
   Compiling bitflags v1.3.2
   Compiling once_cell v1.18.0
   Compiling numtoa v0.1.0
   Compiling strsim v0.10.0
   Compiling termion v1.5.6
   Compiling rand v0.8.5
error[E0433]: failed to resolve: maybe a missing crate `sys`?
  --> C:\Users\user\.cargo\registry\src\github.com-1ecc6299db9ec823\termion-1.5.6\src\lib.rs:24:9
   |
24 | pub use sys::size::terminal_size;
   |         ^^^ maybe a missing crate `sys`?
   |
   = help: consider adding `extern crate sys` to use the `sys` crate

error[E0433]: failed to resolve: maybe a missing crate `sys`?
  --> C:\Users\user\.cargo\registry\src\github.com-1ecc6299db9ec823\termion-1.5.6\src\lib.rs:27:9
   |
27 | pub use sys::tty::{is_tty, get_tty};
   |         ^^^ maybe a missing crate `sys`?
   |
   = help: consider adding `extern crate sys` to use the `sys` crate

error[E0433]: failed to resolve: maybe a missing crate `sys`?
 --> C:\Users\user\.cargo\registry\src\github.com-1ecc6299db9ec823\termion-1.5.6\src\async.rs:5:5
  |
5 | use sys::tty::get_tty;
  |     ^^^ maybe a missing crate `sys`?
  |
  = help: consider adding `extern crate sys` to use the `sys` crate

error[E0433]: failed to resolve: maybe a missing crate `sys`?
  --> C:\Users\user\.cargo\registry\src\github.com-1ecc6299db9ec823\termion-1.5.6\src\raw.rs:28:5
   |
28 | use sys::attr::{get_terminal_attr, raw_terminal_attr, set_terminal_attr};
   |     ^^^ maybe a missing crate `sys`?
   |
   = help: consider adding `extern crate sys` to use the `sys` crate

error[E0432]: unresolved import `sys`
  --> C:\Users\user\.cargo\registry\src\github.com-1ecc6299db9ec823\termion-1.5.6\src\raw.rs:29:5
   |
29 | use sys::Termios;
   |     ^^^ maybe a missing crate `sys`?
   |
   = help: consider adding `extern crate sys` to use the `sys` crate

   Compiling bisection v0.1.0
   Compiling winapi-util v0.1.6
   Compiling atty v0.2.14
   Compiling termcolor v1.4.0
Some errors have detailed explanations: E0432, E0433.
For more information about an error, try `rustc --explain E0432`.
error: could not compile `termion` due to 5 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile `toipe v0.4.1`, intermediate artifacts can be found at `C:\Users\user\AppData\Local\Temp\cargo-installLhhYfs`

Env; Windows 10

benliepert commented 11 months ago

See: https://github.com/Samyak2/toipe/issues/14

DeflateAwning commented 11 months ago

I guess it's just not supported for Windows, welp