[package]
name = "rustyline"
version = "15.0.0"
authors = ["Katsu Kawakami <kkawa1570@gmail.com>"]
edition = "2021"
description = "Rustyline, a readline implementation based on Antirez's Linenoise"
documentation = "https://docs.rs/rustyline"
repository = "https://github.com/kkawakam/rustyline"
readme = "README.md"
keywords = ["readline"]
license = "MIT"
categories = ["command-line-interface"]
exclude = ["/.github/*", "/rustfmt.toml"]
[badges]
maintenance = { status = "actively-developed" }
[workspace]
members = ["rustyline-derive"]
[dependencies]
bitflags = "2.6"
cfg-if = "1.0"
home = { version = "0.5.4", optional = true }
fd-lock = { version = "4.0.0", optional = true }
rusqlite = { version = "0.32.0", optional = true, default-features = false, features = [
"bundled",
"backup",
] }
libc = "0.2.155"
log = "0.4.22"
unicode-width = "0.2.0"
unicode-segmentation = "1.0"
memchr = "2.7"
radix_trie = { version = "0.2", optional = true }
regex = { version = "1.10", optional = true }
rustyline-derive = { version = "0.11.0", optional = true, path = "rustyline-derive" }
[target.'cfg(unix)'.dependencies]
nix = { version = "0.29", default-features = false, features = [
"fs",
"ioctl",
"poll",
"signal",
"term",
] }
utf8parse = "0.2"
skim = { version = "0.10", optional = true, default-features = false }
signal-hook = { version = "0.3", optional = true, default-features = false }
termios = { version = "0.3.3", optional = true }
buffer-redux = { version = "1.0", optional = true, default-features = false }
[target.'cfg(windows)'.dependencies]
windows-sys = { version = "0.59.0", features = [
"Win32_Foundation",
"Win32_System_Console",
"Win32_Security",
"Win32_System_Threading",
"Win32_UI_Input_KeyboardAndMouse",
] }
clipboard-win = "5.0"
[dev-dependencies]
doc-comment = "0.3"
env_logger = { version = "0.11", default-features = false }
tempfile = "3.1.0"
rand = "0.8"
assert_matches = "1.2"
[features]
default = ["custom-bindings", "with-dirs", "with-file-history"]
custom-bindings = ["radix_trie"]
derive = ["rustyline-derive"]
with-dirs = ["home"]
with-file-history = ["fd-lock"]
with-sqlite-history = ["rusqlite"]
with-fuzzy = ["skim"]
case_insensitive_history_search = ["regex"]
[[example]]
name = "custom_key_bindings"
required-features = ["custom-bindings", "derive"]
[[example]]
name = "diy_hints"
required-features = ["derive"]
[[example]]
name = "example"
required-features = ["custom-bindings", "derive"]
[[example]]
name = "input_multiline"
required-features = ["custom-bindings", "derive"]
[[example]]
name = "input_validation"
required-features = ["derive"]
[[example]]
name = "numeric_input"
required-features = ["custom-bindings"]
[[example]]
name = "read_password"
required-features = ["derive"]
[[example]]
name = "sqlite_history"
required-features = ["with-sqlite-history"]
[package.metadata.docs.rs]
features = [
"custom-bindings",
"derive",
"with-dirs",
"with-file-history",
"with-fuzzy",
]
all-features = false
no-default-features = true
default-target = "x86_64-unknown-linux-gnu"
rustdoc-args = ["--cfg", "docsrs"]