2018-01-04 00:43:54 +11:00
|
|
|
[package]
|
|
|
|
name = "crossterm"
|
2022-07-03 05:39:25 +10:00
|
|
|
version = "0.24.0"
|
2018-08-25 20:00:39 +10:00
|
|
|
authors = ["T. Post"]
|
2020-11-10 22:09:32 +11:00
|
|
|
description = "A crossplatform terminal library for manipulating terminals."
|
2019-09-25 03:45:59 +10:00
|
|
|
repository = "https://github.com/crossterm-rs/crossterm"
|
2018-07-16 07:08:10 +10:00
|
|
|
documentation = "https://docs.rs/crossterm/"
|
2018-01-19 09:10:44 +11:00
|
|
|
license = "MIT"
|
2020-05-19 02:51:51 +10:00
|
|
|
keywords = ["event", "color", "cli", "input", "terminal"]
|
2018-01-19 09:10:44 +11:00
|
|
|
exclude = ["target", "Cargo.lock"]
|
2018-05-20 22:44:14 +10:00
|
|
|
readme = "README.md"
|
2022-02-07 00:21:19 +11:00
|
|
|
edition = "2021"
|
2019-11-05 04:43:30 +11:00
|
|
|
categories = ["command-line-interface", "command-line-utilities"]
|
2018-01-04 00:43:54 +11:00
|
|
|
|
2019-11-19 07:50:57 +11:00
|
|
|
[lib]
|
|
|
|
name = "crossterm"
|
|
|
|
path = "src/lib.rs"
|
|
|
|
|
2019-11-21 00:03:22 +11:00
|
|
|
#
|
|
|
|
# Build documentation with all features -> EventStream is available
|
|
|
|
#
|
2019-11-19 07:50:57 +11:00
|
|
|
[package.metadata.docs.rs]
|
|
|
|
all-features = true
|
|
|
|
|
2019-11-21 00:03:22 +11:00
|
|
|
#
|
|
|
|
# Features
|
|
|
|
#
|
2019-01-28 07:16:14 +11:00
|
|
|
[features]
|
2019-11-21 00:03:22 +11:00
|
|
|
default = []
|
2020-09-08 16:42:41 +10:00
|
|
|
event-stream = ["futures-core"]
|
2019-01-28 07:16:14 +11:00
|
|
|
|
2019-11-21 00:03:22 +11:00
|
|
|
#
|
|
|
|
# Shared dependencies
|
|
|
|
#
|
2019-01-28 07:16:14 +11:00
|
|
|
[dependencies]
|
2021-10-19 19:19:16 +11:00
|
|
|
bitflags = "1.3"
|
2022-02-07 00:21:19 +11:00
|
|
|
parking_lot = "0.12"
|
2020-12-28 21:02:16 +11:00
|
|
|
|
|
|
|
# optional deps only added when requested
|
2020-09-08 16:42:41 +10:00
|
|
|
futures-core = { version = "0.3", optional = true, default-features = false }
|
2020-03-25 08:00:23 +11:00
|
|
|
serde = { version = "1.0", features = ["derive"], optional = true }
|
2019-11-21 00:03:22 +11:00
|
|
|
|
|
|
|
#
|
|
|
|
# Windows dependencies
|
|
|
|
#
|
|
|
|
[target.'cfg(windows)'.dependencies.winapi]
|
2020-12-28 21:02:16 +11:00
|
|
|
version = "0.3.9"
|
2022-02-07 00:21:19 +11:00
|
|
|
features = ["winuser", "winerror"]
|
2019-10-23 01:33:38 +11:00
|
|
|
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
2021-10-19 19:19:16 +11:00
|
|
|
crossterm_winapi = "0.9"
|
2019-10-23 01:33:38 +11:00
|
|
|
|
2019-11-21 00:03:22 +11:00
|
|
|
#
|
|
|
|
# UNIX dependencies
|
|
|
|
#
|
2019-10-23 01:33:38 +11:00
|
|
|
[target.'cfg(unix)'.dependencies]
|
2020-01-13 17:46:51 +11:00
|
|
|
libc = "0.2"
|
2022-04-03 02:58:03 +10:00
|
|
|
mio = { version = "0.8", features = ["os-poll"] }
|
2022-02-07 00:21:19 +11:00
|
|
|
signal-hook = { version = "0.3.13" }
|
2022-04-03 02:58:03 +10:00
|
|
|
signal-hook-mio = { version = "0.2.3", features = ["support-v0_8"] }
|
2018-03-04 01:40:51 +11:00
|
|
|
|
2019-11-21 00:03:22 +11:00
|
|
|
#
|
|
|
|
# Dev dependencies (examples, ...)
|
|
|
|
#
|
2019-11-19 07:50:57 +11:00
|
|
|
[dev-dependencies]
|
2022-02-07 00:21:19 +11:00
|
|
|
tokio = { version = "1.16", features = ["full"] }
|
2019-11-19 07:50:57 +11:00
|
|
|
futures = "0.3"
|
2020-01-29 17:38:22 +11:00
|
|
|
futures-timer = "3.0"
|
2022-02-07 00:21:19 +11:00
|
|
|
async-std = "1.10"
|
|
|
|
serde_json = "1.0"
|
2020-08-03 16:06:09 +10:00
|
|
|
|
|
|
|
#
|
|
|
|
# Examples
|
|
|
|
#
|
|
|
|
[[example]]
|
|
|
|
name = "event-stream-async-std"
|
|
|
|
required-features = ["event-stream"]
|
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "event-stream-tokio"
|
|
|
|
required-features = ["event-stream"]
|