2026-04-21 23:00:47 -04:00
|
|
|
[package]
|
|
|
|
|
name = "quicksearch-gui"
|
|
|
|
|
version.workspace = true
|
|
|
|
|
edition.workspace = true
|
2026-08-02 19:04:30 -04:00
|
|
|
license.workspace = true
|
|
|
|
|
authors.workspace = true
|
|
|
|
|
repository.workspace = true
|
|
|
|
|
description = "Fast full-text search across your files: desktop app and terminal search tool."
|
2026-04-21 23:00:47 -04:00
|
|
|
|
|
|
|
|
[[bin]]
|
|
|
|
|
name = "quicksearch"
|
|
|
|
|
path = "src/main.rs"
|
|
|
|
|
|
2026-08-02 19:04:30 -04:00
|
|
|
# Terminal search lives in its own binary because the two want opposite
|
|
|
|
|
# Windows subsystems: a GUI built as a console app flashes a console window on
|
|
|
|
|
# every launch, and a console tool built as a GUI app cannot write to the shell
|
|
|
|
|
# that invoked it (cmd and PowerShell do not even wait for it). Splitting is
|
|
|
|
|
# the only arrangement that is correct in both cases. On Unix the distinction
|
|
|
|
|
# does not exist and `quicksearch` still does both.
|
|
|
|
|
[[bin]]
|
|
|
|
|
name = "quicksearch-cli"
|
|
|
|
|
path = "src/cli_main.rs"
|
|
|
|
|
|
2026-04-21 23:00:47 -04:00
|
|
|
[dependencies]
|
|
|
|
|
quicksearch-core = { path = "../quicksearch-core" }
|
|
|
|
|
|
2026-08-02 19:04:30 -04:00
|
|
|
eframe = { version = "0.32", default-features = false, features = [
|
|
|
|
|
"glow",
|
|
|
|
|
"persistence",
|
|
|
|
|
] }
|
|
|
|
|
egui = "0.32"
|
|
|
|
|
egui_extras = "0.32"
|
|
|
|
|
rfd = "0.15"
|
|
|
|
|
open = "5"
|
|
|
|
|
chrono = { version = "0.4", default-features = false, features = ["clock"] }
|
|
|
|
|
|
|
|
|
|
# Display backends, which only exist on Linux/BSD. `default-features = false`
|
|
|
|
|
# has to be repeated: feature resolution unions the two stanzas, so a single
|
|
|
|
|
# permissive one would switch defaults back on for every target.
|
|
|
|
|
[target.'cfg(all(unix, not(target_os = "macos")))'.dependencies]
|
|
|
|
|
eframe = { version = "0.32", default-features = false, features = [
|
|
|
|
|
"wayland",
|
|
|
|
|
"x11",
|
|
|
|
|
] }
|
|
|
|
|
|
|
|
|
|
# Console attachment for the GUI binary (which has no stdio when launched from
|
|
|
|
|
# Explorer) and VT-mode enabling for the CLI binary. 0.59 matches what eframe
|
|
|
|
|
# and rfd already resolve, so no extra crate is compiled.
|
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
|
|
|
windows-sys = { version = "0.59", features = [
|
|
|
|
|
"Win32_Foundation",
|
|
|
|
|
"Win32_System_Console",
|
|
|
|
|
] }
|