[package] name = "termit" version = "0.7.0" authors = ["jocutajar "] edition = '2021' description = "Terminal UI over crossterm" license = "MIT" homepage = "https://gitlab.com/BrightOpen/BackYard/termit" repository = "https://gitlab.com/BrightOpen/BackYard/termit" keywords = ["tty", "color", "terminal", "emulator", "tui"] [features] default = ["temu", "sys", "parser"] temu = ["ransid"] sys = ["windows-sys", "rustix", "is-terminal"] parser = ["ansitok"] [dependencies] log = "0.4" crossterm = { version = "0.26", default-features = false, optional = true } futures-lite = { version = "1", default-features = false } async-channel = { version = "1" } unicode-segmentation = "1" unicode-width = "0.1" smol-timeout = "0.6" memmapix = "0.7" # temu ransid = { version = "0.5", optional = true } # parser ansitok = { version = "0.2", optional = true } # sys is-terminal = { version = "0.4", optional = true } [target.'cfg(unix)'.dependencies] rustix = { version = "0.38", optional = true, features = ["termios"] } [target.'cfg(windows)'.dependencies] windows-sys = { version = "0.48", optional = true, features = [ "Win32_System_Console", "Win32_Foundation", "Win32_Security", "Win32_Storage_FileSystem", ] } [dev-dependencies] async-std = { version = "1", features = ["attributes"] } chrono = "0.4" env_logger = "0.10" portable-pty = "0.8" [[example]] name = "temu" required-features = ["temu"] [package.metadata.docs.rs] # document all features all-features = true # defines the configuration attribute `docsrs` rustdoc-args = ["--cfg", "docsrs"] # test locally with RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --all-features