[package] name = "rustyline" version = "14.0.0" authors = ["Katsu Kawakami "] 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.0" cfg-if = "1.0" # For file completion home = { version = "0.5.4", optional = true } # For History fd-lock = { version = "4.0.0", optional = true } rusqlite = { version = "0.31.0", optional = true, default-features = false, features = ["bundled", "backup"] } libc = "0.2" log = "0.4" unicode-width = "0.1" unicode-segmentation = "1.0" memchr = "2.0" # For custom bindings radix_trie = { version = "0.2", optional = true } regex = { version = "1.5.5", optional = true } # For derive rustyline-derive = { version = "0.10.0", optional = true, path = "rustyline-derive" } [target.'cfg(unix)'.dependencies] nix = { version = "0.28", 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.52.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"]