forked from Lutetium-Vanadium/requestty
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
60 lines (50 loc) · 1.79 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
[package]
name = "requestty"
version = "0.4.1"
authors = ["Lutetium Vanadium"]
edition = "2018"
description = "An easy-to-use collection of interactive cli prompts"
homepage="https://github.com/Lutetium-Vanadium/requestty#readme"
repository = "https://github.com/Lutetium-Vanadium/requestty"
documentation="https://docs.rs/requestty"
readme = "README.md"
license = "MIT"
keywords = ["interactive", "prompt", "cli", "inquirer", "enquirer"]
categories = ["command-line-interface", "command-line-utilities"]
exclude = ["/.github/*", "/assets", "/requestty-ui", "/requestty-macro", "*-snapshots"]
[workspace]
members = [
".",
"requestty-ui",
"requestty-macro",
]
[dependencies]
ui = { package = "requestty-ui", path = "./requestty-ui", version = "=0.4.1" }
macro = { package = "requestty-macro", path = "./requestty-macro", optional = true, version = "=0.4.1" }
tempfile = "3"
smallvec = { version = "1.8", optional = true }
[dev-dependencies]
trybuild = { version = "1.0.42", features = ["diff"] }
# remove color printing since it messes with the snapshot's colours
# restrict to 1.11 due to the change in the working of autogenerated names
# (https://github.com/mitsuhiko/insta/blob/master/CHANGELOG.md#1120)
insta = { version = "=1.11", default-features = false }
rand = "0.8"
rand_chacha = "0.3"
regex = "1.5" # examples/{prompt_module,macro}.rs
fuzzy-matcher = "0.3" # examples/file_auto_complete.rs
[features]
default = ["crossterm", "smallvec"]
crossterm = ["ui/crossterm"]
termion = ["ui/termion"]
# Hack to get around trybuild not considering 'optional = true' as features
macros = ["macro"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[[example]]
name = "macros"
required-features = ["macros"]
[[test]]
name = "macros"
required-features = ["macros"]