diff --git a/crossterm_utils/Cargo.toml b/crossterm_utils/Cargo.toml index 9689abe..4a10a00 100644 --- a/crossterm_utils/Cargo.toml +++ b/crossterm_utils/Cargo.toml @@ -1,12 +1,12 @@ [package] name = "crossterm_utils" -version = "0.2.0" +version = "0.2.1" authors = ["T. Post"] description = "Common logic used by the crossterm crates." repository = "https://github.com/TimonPost/crossterm" documentation = "https://docs.rs/crossterm_utils/" license = "MIT" -keywords = ["winapi", "abstractions", "crossterm", "windows", "screen_buffer"] +keywords = ["terminal", "abstractions", "crossterm", "windows", "screen_buffer"] exclude = ["target", "Cargo.lock"] readme = "README.md" diff --git a/crossterm_utils/src/lib.rs b/crossterm_utils/src/lib.rs index fa2cae3..cb6bb17 100644 --- a/crossterm_utils/src/lib.rs +++ b/crossterm_utils/src/lib.rs @@ -1,3 +1,5 @@ +#[cfg(unix)] +extern crate libc; #[cfg(windows)] extern crate crossterm_winapi; #[cfg(windows)] diff --git a/crossterm_utils/src/sys/unix.rs b/crossterm_utils/src/sys/unix.rs index 12e86c5..8c8a7f5 100644 --- a/crossterm_utils/src/sys/unix.rs +++ b/crossterm_utils/src/sys/unix.rs @@ -1,6 +1,6 @@ //! This module contains all `unix` specific terminal related logic. -pub use libc::{self, c_int, termios as Termios}; +pub use libc::{c_int, termios as Termios}; use std::{io, mem};