-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathCargo.toml
More file actions
56 lines (50 loc) · 1.28 KB
/
Cargo.toml
File metadata and controls
56 lines (50 loc) · 1.28 KB
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
[package]
name = "termina"
version = "0.3.1"
authors = ["Michael Davis <mcarsondavis@gmail.com>"]
description = "A cross-platform VT manipulation library"
readme = "README.md"
repository = "https://github.com/helix-editor/termina"
edition = "2021"
license = "MIT OR MPL-2.0"
rust-version = "1.71"
[features]
default = []
event-stream = ["dep:futures-core"]
windows-legacy = [
"windows-sys/Win32_UI_Input_KeyboardAndMouse",
"windows-sys/Win32_UI_WindowsAndMessaging",
]
[dependencies]
parking_lot = "0.12"
bitflags = "2"
futures-core = { version = "0.3", optional = true }
[target.'cfg(unix)'.dependencies]
signal-hook = "0.3"
[target.'cfg(unix)'.dependencies.rustix]
version = "1"
default-features = false
features = [
"std",
"stdio",
"termios",
"event",
]
[target.'cfg(windows)'.dependencies.windows-sys]
# TODO: this could probably be loosened.
version = ">=0.60"
default-features = false
# https://microsoft.github.io/windows-rs/features/#/0.59.0/search
features = [
# Interaction with the legacy and modern console APIs.
"Win32_System_Console",
# Writing files (including console handles).
"Win32_Storage_FileSystem",
"Win32_System_IO",
# Polling for input.
"Win32_System_Threading",
"Win32_Security",
]
[[example]]
name = "event-read"
required-features = ["windows-legacy"]