返回 CodeWhale
Cargo.toml
1 # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
2 #
3 # When uploading crates to the registry Cargo will automatically
4 # "normalize" Cargo.toml files for maximal compatibility
5 # with all versions of Cargo and also rewrite `path` dependencies
6 # to registry (e.g., crates.io) dependencies.
7 #
8 # If you are reading this file be aware that the original Cargo.toml
9 # will likely look very different (and much more reasonable).
10 # See Cargo.toml.orig for the original contents.
11
12 [package]
13 edition = "2021"
14 rust-version = "1.63.0"
15 name = "crossterm"
16 version = "0.29.0"
17 authors = ["T. Post"]
18 build = false
19 exclude = [
20 "target",
21 "Cargo.lock",
22 ]
23 autolib = false
24 autobins = false
25 autoexamples = false
26 autotests = false
27 autobenches = false
28 description = "A crossplatform terminal library for manipulating terminals."
29 documentation = "https://docs.rs/crossterm/"
30 keywords = [
31 "event",
32 "color",
33 "cli",
34 "input",
35 "terminal",
36 ]
37 categories = [
38 "command-line-interface",
39 "command-line-utilities",
40 ]
41 license = "MIT"
42 repository = "https://github.com/crossterm-rs/crossterm"
43
44 [package.metadata.docs.rs]
45 all-features = true
46
47 [features]
48 bracketed-paste = []
49 default = [
50 "bracketed-paste",
51 "events",
52 "windows",
53 "derive-more",
54 ]
55 derive-more = ["dep:derive_more"]
56 event-stream = [
57 "dep:futures-core",
58 "events",
59 ]
60 events = [
61 "filedescriptor",
62 "dep:mio",
63 "dep:signal-hook",
64 "dep:signal-hook-mio",
65 ]
66 osc52 = ["dep:base64"]
67 serde = [
68 "dep:serde",
69 "bitflags/serde",
70 ]
71 use-dev-tty = [
72 "filedescriptor",
73 "rustix/process",
74 ]
75 windows = [
76 "dep:winapi",
77 "dep:crossterm_winapi",
78 ]
79
80 [lib]
81 name = "crossterm"
82 path = "src/lib.rs"
83
84 [dependencies.base64]
85 version = "0.22"
86 optional = true
87
88 [dependencies.bitflags]
89 version = "2.9"
90
91 [dependencies.derive_more]
92 version = "2.0.0"
93 features = ["is_variant"]
94 optional = true
95
96 [dependencies.document-features]
97 version = "0.2.11"
98
99 [dependencies.futures-core]
100 version = "0.3"
101 optional = true
102 default-features = false
103
104 [dependencies.parking_lot]
105 version = "0.12"
106
107 [dependencies.serde]
108 version = "1.0"
109 features = ["derive"]
110 optional = true
111
112 [dev-dependencies.async-std]
113 version = "1.13"
114
115 [dev-dependencies.futures]
116 version = "0.3"
117
118 [dev-dependencies.futures-timer]
119 version = "3.0"
120
121 [dev-dependencies.serde_json]
122 version = "1.0"
123
124 [dev-dependencies.serial_test]
125 version = "3.0.0"
126
127 [dev-dependencies.temp-env]
128 version = "0.3.6"
129
130 [dev-dependencies.tokio]
131 version = "1.44"
132 features = ["full"]
133
134 [target."cfg(unix)".dependencies.filedescriptor]
135 version = "0.8"
136 optional = true
137
138 [target."cfg(unix)".dependencies.libc]
139 version = "0.2"
140 optional = true
141 default-features = false
142
143 [target."cfg(unix)".dependencies.mio]
144 version = "1.0"
145 features = ["os-poll"]
146 optional = true
147
148 [target."cfg(unix)".dependencies.rustix]
149 version = "1"
150 features = [
151 "std",
152 "stdio",
153 "termios",
154 ]
155 default-features = false
156
157 [target."cfg(unix)".dependencies.signal-hook]
158 version = "0.3.17"
159 optional = true
160
161 [target."cfg(unix)".dependencies.signal-hook-mio]
162 version = "0.2.4"
163 features = ["support-v1_0"]
164 optional = true
165
166 [target."cfg(windows)".dependencies.crossterm_winapi]
167 version = "0.9.1"
168 optional = true
169
170 [target."cfg(windows)".dependencies.winapi]
171 version = "0.3.9"
172 features = [
173 "winuser",
174 "winerror",
175 ]
176 optional = true
177
177 lines TOML