diff --git a/Cargo.lock b/Cargo.lock index 0d2a778..b0acea5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5,3 +5,35 @@ version = 3 [[package]] name = "bibliofile" version = "0.1.0" +dependencies = [ + "ncurses", +] + +[[package]] +name = "cc" +version = "1.0.79" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50d30906286121d95be3d479533b458f87493b30a4b5f79a607db8f5d11aa91f" + +[[package]] +name = "libc" +version = "0.2.140" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "99227334921fae1a979cf0bfdfcc6b3e5ce376ef57e16fb6fb3ea2ed6095f80c" + +[[package]] +name = "ncurses" +version = "5.101.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e2c5d34d72657dc4b638a1c25d40aae81e4f1c699062f72f467237920752032" +dependencies = [ + "cc", + "libc", + "pkg-config", +] + +[[package]] +name = "pkg-config" +version = "0.3.26" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ac9a59f73473f1b8d852421e59e64809f025994837ef743615c6d0c5b305160" diff --git a/Cargo.toml b/Cargo.toml index 857cd99..867731b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,3 +6,4 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] +ncurses = "5.101.0" \ No newline at end of file diff --git a/src/main.rs b/src/main.rs index 9bbe29b..e4b5daa 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,6 +1,7 @@ use std::fs::File; use std::io::prelude::*; use std::env; +use ncurses; fn main() -> std::io::Result<()> { let args: Vec = env::args().collect();