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-09-25 14:58:51 -04:00
|
|
|
# Terminal search is its own binary because Windows needs opposite subsystems
|
|
|
|
|
# for the two: a console-subsystem GUI flashes a console on launch, and a
|
|
|
|
|
# window-subsystem tool cannot write to the invoking shell. On Unix
|
|
|
|
|
# `quicksearch` does both.
|
2026-08-02 19:04:30 -04:00
|
|
|
[[bin]]
|
|
|
|
|
name = "quicksearch-cli"
|
|
|
|
|
path = "src/cli_main.rs"
|
|
|
|
|
|
2026-08-04 23:33:28 -04:00
|
|
|
[features]
|
2026-09-25 14:58:51 -04:00
|
|
|
# Scripted self-capture driver that packaging/capture.sh uses to regenerate
|
|
|
|
|
# the website screenshots and screencasts. Adds no dependencies and is inert
|
|
|
|
|
# unless QS_CAPTURE_SCRIPT is set.
|
2026-08-04 23:33:28 -04:00
|
|
|
capture = []
|
|
|
|
|
|
2026-04-21 23:00:47 -04:00
|
|
|
[dependencies]
|
|
|
|
|
quicksearch-core = { path = "../quicksearch-core" }
|
|
|
|
|
|
2026-09-25 14:58:51 -04:00
|
|
|
# Index-password support: the OS keychain for "remember on this device"
|
|
|
|
|
# (Secret Service on Linux, Credential Manager on Windows), a hidden terminal
|
|
|
|
|
# prompt, and best-effort scrubbing of password buffers. `vendored` links
|
|
|
|
|
# libdbus statically, so neither the build machine nor the .deb needs a dbus
|
|
|
|
|
# package.
|
2026-08-02 20:21:19 -04:00
|
|
|
keyring = { version = "3", features = ["sync-secret-service", "vendored", "windows-native"] }
|
|
|
|
|
rpassword = "7"
|
|
|
|
|
zeroize = "1"
|
|
|
|
|
|
2026-08-02 19:04:30 -04:00
|
|
|
eframe = { version = "0.32", default-features = false, features = [
|
|
|
|
|
"glow",
|
|
|
|
|
"persistence",
|
|
|
|
|
] }
|
2026-09-25 14:58:51 -04:00
|
|
|
# Drops `default_fonts` (~1.4 MB of embedded TTFs; `src/fonts.rs` installs
|
|
|
|
|
# the faces we paint). eframe's `default-features = false` does not cover it:
|
|
|
|
|
# feature resolution unions the declarations, so naming egui plainly would
|
|
|
|
|
# switch it back on.
|
2026-08-17 22:30:43 -04:00
|
|
|
egui = { version = "0.32", default-features = false }
|
2026-09-25 14:58:51 -04:00
|
|
|
# Only `Column`/`TableBuilder` are used; the one default feature is an image
|
|
|
|
|
# loader we never register.
|
2026-08-17 22:30:43 -04:00
|
|
|
egui_extras = { version = "0.32", default-features = false }
|
2026-08-02 19:04:30 -04:00
|
|
|
rfd = "0.15"
|
|
|
|
|
open = "5"
|
|
|
|
|
chrono = { version = "0.4", default-features = false, features = ["clock"] }
|
|
|
|
|
|
2026-09-25 14:58:51 -04:00
|
|
|
# The shortcut QuickSearch claims while running: `RegisterHotKey` on Windows,
|
|
|
|
|
# `XGrabKey` on X11. Wayland lets no application claim keys; there, and
|
|
|
|
|
# whenever the app is not running, the desktop's binding of `--toggle` does it.
|
2026-08-09 02:58:13 -04:00
|
|
|
global-hotkey = "0.8"
|
|
|
|
|
|
2026-09-25 14:58:51 -04:00
|
|
|
# The window handle both native raise paths in `activate::raise` need (X11
|
|
|
|
|
# `_NET_ACTIVE_WINDOW`, Win32 `SetForegroundWindow`). eframe depends on it on
|
|
|
|
|
# every target, so it adds no crate.
|
2026-09-05 03:09:12 -04:00
|
|
|
raw-window-handle = "0.6"
|
|
|
|
|
|
2026-08-02 19:04:30 -04:00
|
|
|
# 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",
|
|
|
|
|
] }
|
|
|
|
|
|
2026-09-25 14:58:51 -04:00
|
|
|
# Raises the window on X11, which winit cannot do (see `activate::raise`).
|
|
|
|
|
# Already in the tree as winit's X11 backend.
|
2026-08-09 02:58:13 -04:00
|
|
|
x11rb = "0.13"
|
|
|
|
|
|
2026-09-25 14:58:51 -04:00
|
|
|
# The Wayland half of `activate::raise`: a guest connection over winit's
|
|
|
|
|
# wl_display that hands the compositor an xdg-activation token for our
|
|
|
|
|
# surface. winit and sctk already enable all three with these features, so
|
|
|
|
|
# nothing new compiles.
|
2026-09-06 19:43:57 -04:00
|
|
|
wayland-client = "0.31"
|
|
|
|
|
wayland-backend = { version = "0.3", features = ["client_system"] }
|
|
|
|
|
wayland-protocols = { version = "0.32", features = ["client", "staging"] }
|
|
|
|
|
|
2026-08-02 19:04:30 -04:00
|
|
|
# Console attachment for the GUI binary (which has no stdio when launched from
|
2026-09-25 14:58:51 -04:00
|
|
|
# Explorer) and VT mode for the CLI binary. 0.59 matches what eframe and rfd
|
|
|
|
|
# resolve, so no extra crate compiles.
|
2026-08-02 19:04:30 -04:00
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
|
|
|
windows-sys = { version = "0.59", features = [
|
|
|
|
|
"Win32_Foundation",
|
|
|
|
|
"Win32_System_Console",
|
2026-09-04 21:39:54 -04:00
|
|
|
# The `--toggle` named pipe in `activate`. `Win32_System_IO` and
|
2026-09-25 14:58:51 -04:00
|
|
|
# `Win32_Security` only carry the `OVERLAPPED` and `SECURITY_ATTRIBUTES`
|
|
|
|
|
# types of pointers we pass as null.
|
2026-09-04 21:39:54 -04:00
|
|
|
"Win32_System_Pipes",
|
|
|
|
|
"Win32_Storage_FileSystem",
|
|
|
|
|
"Win32_System_IO",
|
|
|
|
|
"Win32_Security",
|
2026-09-05 01:55:59 -04:00
|
|
|
# The foreground handshake (`activate`) and native raise (`activate::raise`):
|
|
|
|
|
# GetCurrentProcessId, AllowSetForegroundWindow / SetForegroundWindow.
|
|
|
|
|
"Win32_System_Threading",
|
|
|
|
|
"Win32_UI_WindowsAndMessaging",
|
2026-08-02 19:04:30 -04:00
|
|
|
] }
|