error[E0433]: failed to resolve: you might be missing crate `sys`
--> D:\asd\.cargo\registry\src\index.crates.io-6f17d22bba15001f\termion-1.5.6\src\lib.rs:24:9
|
24 | pub use sys::size::terminal_size;
| ^^^ you might be missing crate `sys`
|
note: found an item that was configured out
--> D:\asd\.cargo\registry\src\index.crates.io-6f17d22bba15001f\termion-1.5.6\src\lib.rs:18:5
|
18 | mod sys;
| ^^^
note: the item is gated behind the `redox` feature
--> D:\asd\.cargo\registry\src\index.crates.io-6f17d22bba15001f\termion-1.5.6\src\lib.rs:16:7
|
16 | #[cfg(target_os = "redox")]
| ^^^^^^^^^^^^^^^^^^^
note: found an item that was configured out
--> D:\asd\.cargo\registry\src\index.crates.io-6f17d22bba15001f\termion-1.5.6\src\lib.rs:22:5
|
22 | mod sys;
| ^^^
note: the item is gated here
--> D:\asd\.cargo\registry\src\index.crates.io-6f17d22bba15001f\termion-1.5.6\src\lib.rs:20:1
|
20 | #[cfg(all(unix, not(target_os = "redox")))]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
help: consider importing the `sys` crate
|
14 + extern crate sys;
|
error[E0433]: failed to resolve: you might be missing crate `sys`
--> D:\asd\.cargo\registry\src\index.crates.io-6f17d22bba15001f\termion-1.5.6\src\lib.rs:27:9
|
27 | pub use sys::tty::{is_tty, get_tty};
| ^^^ you might be missing crate `sys`
|
note: found an item that was configured out
--> D:\asd\.cargo\registry\src\index.crates.io-6f17d22bba15001f\termion-1.5.6\src\lib.rs:18:5
|
18 | mod sys;
| ^^^
note: the item is gated behind the `redox` feature
--> D:\asd\.cargo\registry\src\index.crates.io-6f17d22bba15001f\termion-1.5.6\src\lib.rs:16:7
|
16 | #[cfg(target_os = "redox")]
| ^^^^^^^^^^^^^^^^^^^
note: found an item that was configured out
--> D:\asd\.cargo\registry\src\index.crates.io-6f17d22bba15001f\termion-1.5.6\src\lib.rs:22:5
|
22 | mod sys;
| ^^^
note: the item is gated here
--> D:\asd\.cargo\registry\src\index.crates.io-6f17d22bba15001f\termion-1.5.6\src\lib.rs:20:1
|
20 | #[cfg(all(unix, not(target_os = "redox")))]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
help: consider importing the `sys` crate
|
14 + extern crate sys;
|
error[E0433]: failed to resolve: you might be missing crate `sys`
--> D:\asd\.cargo\registry\src\index.crates.io-6f17d22bba15001f\termion-1.5.6\src\async.rs:5:5
|
5 | use sys::tty::get_tty;
| ^^^ you might be missing crate `sys`
|
note: found an item that was configured out
--> D:\asd\.cargo\registry\src\index.crates.io-6f17d22bba15001f\termion-1.5.6\src\lib.rs:18:5
|
18 | mod sys;
| ^^^
note: the item is gated behind the `redox` feature
--> D:\asd\.cargo\registry\src\index.crates.io-6f17d22bba15001f\termion-1.5.6\src\lib.rs:16:7
|
16 | #[cfg(target_os = "redox")]
| ^^^^^^^^^^^^^^^^^^^
note: found an item that was configured out
--> D:\asd\.cargo\registry\src\index.crates.io-6f17d22bba15001f\termion-1.5.6\src\lib.rs:22:5
|
22 | mod sys;
| ^^^
note: the item is gated here
--> D:\asd\.cargo\registry\src\index.crates.io-6f17d22bba15001f\termion-1.5.6\src\lib.rs:20:1
|
20 | #[cfg(all(unix, not(target_os = "redox")))]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
help: consider importing the `sys` crate
--> D:\asd\.cargo\registry\src\index.crates.io-6f17d22bba15001f\termion-1.5.6\src\lib.rs:14:1
|
14 + extern crate sys;
|
error[E0433]: failed to resolve: you might be missing crate `sys`
--> D:\asd\.cargo\registry\src\index.crates.io-6f17d22bba15001f\termion-1.5.6\src\raw.rs:28:5
|
28 | use sys::attr::{get_terminal_attr, raw_terminal_attr, set_terminal_attr};
| ^^^ you might be missing crate `sys`
|
note: found an item that was configured out
--> D:\asd\.cargo\registry\src\index.crates.io-6f17d22bba15001f\termion-1.5.6\src\lib.rs:18:5
|
18 | mod sys;
| ^^^
note: the item is gated behind the `redox` feature
--> D:\asd\.cargo\registry\src\index.crates.io-6f17d22bba15001f\termion-1.5.6\src\lib.rs:16:7
|
16 | #[cfg(target_os = "redox")]
| ^^^^^^^^^^^^^^^^^^^
note: found an item that was configured out
--> D:\asd\.cargo\registry\src\index.crates.io-6f17d22bba15001f\termion-1.5.6\src\lib.rs:22:5
|
22 | mod sys;
| ^^^
note: the item is gated here
--> D:\asd\.cargo\registry\src\index.crates.io-6f17d22bba15001f\termion-1.5.6\src\lib.rs:20:1
|
20 | #[cfg(all(unix, not(target_os = "redox")))]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
help: consider importing the `sys` crate
--> D:\asd\.cargo\registry\src\index.crates.io-6f17d22bba15001f\termion-1.5.6\src\lib.rs:14:1
|
14 + extern crate sys;
|
error[E0432]: unresolved import `sys`
--> D:\asd\.cargo\registry\src\index.crates.io-6f17d22bba15001f\termion-1.5.6\src\raw.rs:29:5
|
29 | use sys::Termios;
| ^^^ you might be missing crate `sys`
|
note: found an item that was configured out
--> D:\asd\.cargo\registry\src\index.crates.io-6f17d22bba15001f\termion-1.5.6\src\lib.rs:18:5
|
18 | mod sys;
| ^^^
note: the item is gated behind the `redox` feature
--> D:\asd\.cargo\registry\src\index.crates.io-6f17d22bba15001f\termion-1.5.6\src\lib.rs:16:7
|
16 | #[cfg(target_os = "redox")]
| ^^^^^^^^^^^^^^^^^^^
note: found an item that was configured out
--> D:\asd\.cargo\registry\src\index.crates.io-6f17d22bba15001f\termion-1.5.6\src\lib.rs:22:5
|
22 | mod sys;
| ^^^
note: the item is gated here
--> D:\asd\.cargo\registry\src\index.crates.io-6f17d22bba15001f\termion-1.5.6\src\lib.rs:20:1
|
20 | #[cfg(all(unix, not(target_os = "redox")))]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
help: consider importing the `sys` crate
--> D:\asd\.cargo\registry\src\index.crates.io-6f17d22bba15001f\termion-1.5.6\src\lib.rs:14:1
|
14 + extern crate sys;
according to the docs
the crate termion
supports
Redox, Mac OS X, and Linux (or, in general, ANSI terminals)
The error you are getting might be from trying to use it on a different platform such as Windows.
Yes, what should Windows use cargo.toml for
Maybe you want to use crossterm
, which has Windows support, instead of termion
.