2018-01-04 00:43:54 +11:00
|
|
|
[package]
|
|
|
|
name = "crossterm"
|
2023-02-27 02:47:25 +11:00
|
|
|
version = "0.26.1"
|
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]
|
2023-04-08 01:09:15 +10:00
|
|
|
default = ["bracketed-paste", "windows", "events"]
|
2023-04-01 22:07:46 +11:00
|
|
|
windows = ["winapi", "crossterm_winapi"]
|
2022-08-10 17:16:56 +10:00
|
|
|
bracketed-paste = []
|
2023-04-08 01:09:15 +10:00
|
|
|
event-stream = ["futures-core", "events"]
|
2023-01-12 06:15:32 +11:00
|
|
|
use-dev-tty = ["filedescriptor"]
|
2023-04-08 01:09:15 +10:00
|
|
|
events = ["mio", "signal-hook", "signal-hook-mio"]
|
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"]
|
2023-04-01 22:07:46 +11:00
|
|
|
optional = true
|
2019-10-23 01:33:38 +11:00
|
|
|
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
2023-04-01 22:07:46 +11:00
|
|
|
crossterm_winapi = { version = "0.9", optional = true }
|
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"
|
2023-04-08 01:09:15 +10:00
|
|
|
signal-hook = { version = "0.3.13", optional = true }
|
2023-01-12 06:15:32 +11:00
|
|
|
filedescriptor = { version = "0.8", optional = true }
|
2023-04-08 01:09:15 +10:00
|
|
|
mio = { version = "0.8", features = ["os-poll"], optional = true }
|
|
|
|
signal-hook-mio = { version = "0.2.3", features = ["support-v0_8"], optional = true }
|
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]
|
2023-02-27 02:47:25 +11:00
|
|
|
tokio = { version = "1.25", 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"
|
2023-02-27 02:47:25 +11:00
|
|
|
async-std = "1.12"
|
2022-02-07 00:21:19 +11:00
|
|
|
serde_json = "1.0"
|
2020-08-03 16:06:09 +10:00
|
|
|
|
|
|
|
#
|
|
|
|
# Examples
|
|
|
|
#
|
2022-08-10 17:16:56 +10:00
|
|
|
[[example]]
|
|
|
|
name = "event-read"
|
2023-04-08 01:09:15 +10:00
|
|
|
required-features = ["bracketed-paste", "events"]
|
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "event-match-modifiers"
|
|
|
|
required-features = ["bracketed-paste", "events"]
|
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "event-poll-read"
|
|
|
|
required-features = ["bracketed-paste", "events"]
|
2022-08-10 17:16:56 +10:00
|
|
|
|
2020-08-03 16:06:09 +10:00
|
|
|
[[example]]
|
|
|
|
name = "event-stream-async-std"
|
2023-04-08 01:09:15 +10:00
|
|
|
required-features = ["event-stream", "events"]
|
2020-08-03 16:06:09 +10:00
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "event-stream-tokio"
|
2023-04-08 01:09:15 +10:00
|
|
|
required-features = ["event-stream", "events"]
|
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "event-read-char-line"
|
|
|
|
required-features = ["events"]
|
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "stderr"
|
|
|
|
required-features = ["events"]
|