requestty/Cargo.toml

67 lines
1.9 KiB
TOML
Raw Permalink Normal View History

2021-03-27 13:02:42 +00:00
[package]
2021-07-15 11:06:59 +00:00
name = "requestty"
2022-09-01 13:19:34 +00:00
version = "0.5.0"
authors = ["Lutetium Vanadium"]
2021-03-27 13:02:42 +00:00
edition = "2018"
2021-07-17 12:45:08 +00:00
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"]
2021-03-27 13:02:42 +00:00
[workspace]
members = [
".",
2021-07-15 11:06:59 +00:00
"requestty-ui",
"requestty-macro",
]
2021-03-27 13:02:42 +00:00
[dependencies]
2022-09-01 13:19:34 +00:00
ui = { package = "requestty-ui", path = "./requestty-ui", version = "=0.5.0" }
macro = { package = "requestty-macro", path = "./requestty-macro", optional = true, version = "=0.5.0" }
2022-01-18 11:06:56 +00:00
tempfile = "3"
2021-04-20 14:03:07 +00:00
2022-05-11 12:19:07 +00:00
smallvec = { version = "1.8", optional = true }
[target.'cfg(unix)'.dependencies]
shell-words = "1.1"
[target.'cfg(windows)'.dependencies]
winsplit = "0.1"
[dev-dependencies]
2021-05-29 09:22:37 +00:00
trybuild = { version = "1.0.42", features = ["diff"] }
2021-06-27 11:27:38 +00:00
# remove color printing since it messes with the snapshot's colours
2022-05-11 12:19:07 +00:00
# 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"
2021-07-13 14:34:21 +00:00
regex = "1.5" # examples/{prompt_module,macro}.rs
2021-07-16 05:18:48 +00:00
fuzzy-matcher = "0.3" # examples/file_auto_complete.rs
2021-04-20 14:03:07 +00:00
[features]
default = ["crossterm", "smallvec"]
2021-04-29 08:09:49 +00:00
crossterm = ["ui/crossterm"]
2021-04-29 14:50:54 +00:00
termion = ["ui/termion"]
# Hack to get around trybuild not considering 'optional = true' as features
macros = ["macro"]
2021-07-14 13:01:08 +00:00
[package.metadata.docs.rs]
all-features = true
2021-07-17 13:05:33 +00:00
rustdoc-args = ["--cfg", "docsrs"]
2021-07-16 14:25:41 +00:00
[[example]]
name = "macros"
required-features = ["macros"]
[[test]]
name = "macros"
required-features = ["macros"]