79 lines
1.6 KiB
TOML
79 lines
1.6 KiB
TOML
[package]
|
|
name = "crossterm"
|
|
version = "0.18.2"
|
|
authors = ["T. Post"]
|
|
description = "A crossplatform terminal library for manipulating terminals."
|
|
repository = "https://github.com/crossterm-rs/crossterm"
|
|
documentation = "https://docs.rs/crossterm/"
|
|
license = "MIT"
|
|
keywords = ["event", "color", "cli", "input", "terminal"]
|
|
exclude = ["target", "Cargo.lock"]
|
|
readme = "README.md"
|
|
edition = "2018"
|
|
categories = ["command-line-interface", "command-line-utilities"]
|
|
|
|
[lib]
|
|
name = "crossterm"
|
|
path = "src/lib.rs"
|
|
|
|
#
|
|
# Build documentation with all features -> EventStream is available
|
|
#
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
|
|
#
|
|
# Features
|
|
#
|
|
[features]
|
|
default = []
|
|
event-stream = ["futures-core"]
|
|
|
|
#
|
|
# Shared dependencies
|
|
#
|
|
[dependencies]
|
|
bitflags = "1.2"
|
|
lazy_static = "1.4"
|
|
parking_lot = "0.11"
|
|
futures-core = { version = "0.3", optional = true, default-features = false }
|
|
serde = { version = "1.0", features = ["derive"], optional = true }
|
|
|
|
#
|
|
# Windows dependencies
|
|
#
|
|
[target.'cfg(windows)'.dependencies.winapi]
|
|
version = "0.3.8"
|
|
features = ["winuser"]
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
crossterm_winapi = "0.6.2"
|
|
|
|
#
|
|
# UNIX dependencies
|
|
#
|
|
[target.'cfg(unix)'.dependencies]
|
|
libc = "0.2"
|
|
mio = { version="0.7", features=["os-poll"] }
|
|
signal-hook = { version = "0.1.15", features = ["mio-0_7-support"] }
|
|
|
|
#
|
|
# Dev dependencies (examples, ...)
|
|
#
|
|
[dev-dependencies]
|
|
tokio = { version = "0.2.11", features = ["full"] }
|
|
futures = "0.3"
|
|
futures-timer = "3.0"
|
|
async-std = "1.4"
|
|
|
|
#
|
|
# Examples
|
|
#
|
|
[[example]]
|
|
name = "event-stream-async-std"
|
|
required-features = ["event-stream"]
|
|
|
|
[[example]]
|
|
name = "event-stream-tokio"
|
|
required-features = ["event-stream"]
|