Cargo Features

[dependencies]
slite = { version = "0.0.1-dev", default-features = false, features = ["application", "crossterm-events", "diff", "pretty-print", "read-files", "tui"] }
default = application

The application feature is set by default whenever slite is added without default-features = false somewhere in the dependency tree.

application default = clap, color-eyre, crossterm-events, diff, futures, notify, notify-debouncer-mini, pretty-print, read-files, tracing-tree2, tui

Enables macros of tokio and event-stream of crossterm ^0.26.0

crossterm:

Enables async events

Affects main::main

crossterm-events application = crossterm
diff application = imara-diff
pretty-print application = owo-colors, syntect
read-files application tui? = ignore

Affects slite::read_sql_files

tui application = crossterm, read-files, tokio, tracing-subscriber

Enables tui

Affects slite::tui

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.

clap application
color-eyre application
crossterm application crossterm-events? tui?

Enables crossterm ^0.26.0

futures application
ignore read-files?
imara-diff diff?
notify application

Enables notify ^5.1.0

notify-debouncer-mini application

Enables notify-debouncer-mini ^0.2.1

owo-colors pretty-print?

Enables owo-colors ^3

syntect pretty-print?
tokio application tui?
tracing-subscriber tui?
tracing-tree2 application