Cargo Features

[dependencies]
rustyline = { version = "15.0.0", default-features = false, features = ["custom-bindings", "derive", "with-dirs", "with-file-history", "with-sqlite-history", "with-fuzzy", "case_insensitive_history_search", "buffer-redux", "signal-hook", "termios"] }
default = custom-bindings, with-dirs, with-file-history

These default features are set whenever rustyline is added without default-features = false somewhere in the dependency tree.

custom-bindings default = radix_trie
derive = rustyline-derive
with-dirs default = home
with-file-history default = fd-lock

Affects history::FileHistory, history::DefaultHistory

with-sqlite-history = rusqlite

Affects rustyline::sqlite_history

with-fuzzy = skim

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

home with-dirs

Enables home

For file completion

fd-lock with-file-history

Enables fd-lock

For History

rusqlite with-sqlite-history?
radix_trie custom-bindings

Enables radix_trie

For custom bindings

regex case_insensitive_history_search?
rustyline-derive derive?

Enables rustyline-derive

For derive

buffer-redux unix implicit feature

Enables buffer-redux

buffer-redux:

Drop-in replacements for buffered I/O in std::io with extra features

Affects unix::PosixBuffer

signal-hook unix implicit feature

Enables signal-hook

signal-hook:

Unix signal handling

termios unix implicit feature

Enables termios

termios:

Safe bindings for the termios library

skim unix with-fuzzy?

Enables skim ^0.10