console-lib 0.2.0

A very simple TUI library for Linux (ncurses) and Windows (Win-API)
Documentation
1
2
3
4
5
6
7
8
9
10
11
fn main() {
    let dst = cmake::build("consoleLib");
    println!("cargo:rustc-link-search=native={}", dst.display());
    println!("cargo:rustc-link-lib=static=ConsoleLib");

    if let Some(target_family) = std::env::var_os("CARGO_CFG_TARGET_FAMILY") {
        if target_family == "unix" {
            println!("cargo:rustc-link-lib=dylib=ncurses");
        }
    }
}