forked from crossterm-rs/crossterm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
81 lines (70 loc) · 1.69 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
[package]
name = "crossterm"
version = "0.20.0"
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"
parking_lot = "0.11"
# optional deps only added when requested
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.9"
features = ["winuser"]
[target.'cfg(windows)'.dependencies]
crossterm_winapi = "0.8"
#
# UNIX dependencies
#
[target.'cfg(unix)'.dependencies]
libc = "0.2"
mio = { version="0.7", features=["os-poll"] }
signal-hook = { version = "0.3.8" }
signal-hook-mio = { version = "0.2.1", features = ["support-v0_7"] }
#
# Dev dependencies (examples, ...)
#
[dev-dependencies]
tokio = { version = "1.5", features = ["full"] }
futures = "0.3"
futures-timer = "3.0"
async-std = "1.9"
serde_json = "1.0.45"
#
# Examples
#
[[example]]
name = "event-stream-async-std"
required-features = ["event-stream"]
[[example]]
name = "event-stream-tokio"
required-features = ["event-stream"]