[package] name = "console" description = "A terminal and console abstraction for Rust" version = "0.16.4" keywords = ["cli", "terminal", "colors", "console", "ansi"] license = "MIT" edition = "2021" homepage = "https://github.com/console-rs/console" repository = "https://github.com/console-rs/console" documentation = "https://docs.rs/console" readme = "README.md" rust-version = "1.71" include = ["CHANGELOG.md", "Cargo.toml", "LICENSE", "README.md", "src/**/*.rs"] [features] default = ["unicode-width", "ansi-parsing", "std"] std = ["dep:libc", "alloc"] alloc = [] windows-console-colors = ["ansi-parsing"] ansi-parsing = [] [dependencies] libc = { version = "0.2.99", optional = true } unicode-width = { version = "0.2", optional = true } [target.'cfg(windows)'.dependencies] encode_unicode = "1" [target.'cfg(windows)'.dependencies.windows-sys] version = "0.61" features = [ "Win32_Foundation", "Win32_System_Console", "Win32_Storage_FileSystem", "Win32_UI_Input_KeyboardAndMouse", ] [dev-dependencies] # Pick a setup for proptest that works with wasi proptest = { version = "1.0.0", default-features = false, features = [ "std", "bit-set", "break-dead-code", ] } regex = "1.4.2" [[example]] name = "colors" required-features = ["std"] [[example]] name = "colors256" required-features = ["std"] [[example]] name = "cursor_at" required-features = ["std"] [[example]] name = "keyboard" required-features = ["std"] [[example]] name = "term" required-features = ["std"] ## These are currently disabled. If you want to play around with the benchmarks ## uncommit this. #criterion = "0.3.5" #[[bench]] #name = "ansi_parser" #harness = false