Cargo Features

rustyline = { version = "12.0.0", default-features = false, features = ["custom-bindings", "derive", "with-dirs", "with-file-history", "with-sqlite-history", "with-fuzzy", "case_insensitive_history_search", "signal-hook"] }
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.

home with-dirs

fd-lock with-file-history

Enables fd-lock ^3.0.0

For History

rusqlite with-sqlite-history?

Enables bundled and backup of rusqlite ^0.29.0

radix_trie custom-bindings

regex case_insensitive_history_search?

With default features

rustyline-derive derive?

signal-hook cfg(unix) implicit feature
skim cfg(unix) with-fuzzy?