2026-04-21 23:00:47 -04:00
|
|
|
[package]
|
|
|
|
|
name = "quicksearch-core"
|
|
|
|
|
version.workspace = true
|
|
|
|
|
edition.workspace = true
|
2026-08-02 19:04:30 -04:00
|
|
|
license.workspace = true
|
|
|
|
|
authors.workspace = true
|
|
|
|
|
repository.workspace = true
|
|
|
|
|
description = "Indexing, storage and search engine behind QuickSearch."
|
2026-04-21 23:00:47 -04:00
|
|
|
|
|
|
|
|
[lib]
|
|
|
|
|
name = "quicksearch_core"
|
|
|
|
|
path = "src/lib.rs"
|
|
|
|
|
|
|
|
|
|
[dependencies]
|
2026-08-02 20:21:19 -04:00
|
|
|
# `bundled-sqlcipher-vendored-openssl` compiles the SQLCipher amalgamation
|
|
|
|
|
# (a superset of the stock SQLite `bundled` build — FTS5 etc. included) and
|
|
|
|
|
# statically links a vendored OpenSSL libcrypto, so encryption support adds
|
|
|
|
|
# no runtime library dependencies. With no `PRAGMA key` applied, SQLCipher
|
|
|
|
|
# behaves identically to stock SQLite, so unencrypted indexes are unaffected.
|
|
|
|
|
rusqlite = { version = "0.39", features = ["bundled-sqlcipher-vendored-openssl"] }
|
|
|
|
|
argon2 = { version = "0.5", features = ["zeroize"] }
|
|
|
|
|
zeroize = { version = "1", features = ["derive"] }
|
|
|
|
|
getrandom = "0.2"
|
2026-04-21 23:00:47 -04:00
|
|
|
sha2 = "0.10.8"
|
|
|
|
|
walkdir = "2.5.0"
|
2026-08-02 22:21:39 -04:00
|
|
|
# Default features pull in zstd 0.11, which cannot unify with our zstd 0.13 below
|
|
|
|
|
# and so builds a second copy of the wrapper crates. We only read OOXML/ODF
|
|
|
|
|
# containers (docx/xlsx/pptx/odt/ods/odp), whose entries are always deflate or
|
|
|
|
|
# stored, so zstd/bzip2/aes-crypto are all dead weight here.
|
|
|
|
|
zip = { version = "0.6", default-features = false, features = ["deflate"] }
|
2026-04-21 23:00:47 -04:00
|
|
|
quick-xml = "0.31"
|
|
|
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
|
|
|
toml = "0.8"
|
|
|
|
|
mime_guess = "2.0"
|
|
|
|
|
infer = "0.15"
|
2026-08-02 19:04:30 -04:00
|
|
|
pdf-extract = "0.12"
|
2026-04-21 23:00:47 -04:00
|
|
|
lopdf = "0.32"
|
|
|
|
|
lofty = "0.19"
|
|
|
|
|
kamadak-exif = "0.5"
|
|
|
|
|
notify = "6.1"
|
|
|
|
|
ctrlc = "3.4"
|
2026-04-23 17:46:11 -04:00
|
|
|
zstd = "0.13"
|
2026-08-02 19:04:30 -04:00
|
|
|
globset = "0.4"
|
|
|
|
|
regex = "1"
|
|
|
|
|
|
2026-08-03 03:06:19 -04:00
|
|
|
# `nice()`, for dropping indexing threads to background scheduling priority.
|
|
|
|
|
# Linux schedules per task, so it affects only the calling thread. Already in
|
|
|
|
|
# the lockfile transitively (rusqlite, getrandom), so naming it directly
|
|
|
|
|
# compiles nothing new.
|
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
|
|
|
libc = "0.2"
|
|
|
|
|
|
2026-08-02 19:04:30 -04:00
|
|
|
# `GetDriveTypeW` (a mapped drive letter is the only way to spot an SMB share
|
|
|
|
|
# that isn't written as UNC) plus the FILE_ATTRIBUTE_* constants for hidden
|
|
|
|
|
# detection. Pinned to 0.52 deliberately: walkdir → winapi-util already
|
|
|
|
|
# resolves exactly that version, so this adds no new crate compilations.
|
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
|
|
|
# GetDriveTypeW and the FILE_ATTRIBUTE_* constants live in
|
|
|
|
|
# Win32_Storage_FileSystem; DRIVE_REMOTE, oddly, is filed under
|
2026-08-03 03:06:19 -04:00
|
|
|
# Win32_System_WindowsProgramming. Win32_System_Threading carries
|
|
|
|
|
# SetThreadPriority and THREAD_MODE_BACKGROUND_BEGIN, and both it and
|
|
|
|
|
# GetCurrentThread need Win32_Foundation for HANDLE/BOOL.
|
2026-08-02 19:04:30 -04:00
|
|
|
windows-sys = { version = "0.52", features = [
|
2026-08-03 03:06:19 -04:00
|
|
|
"Win32_Foundation",
|
2026-08-02 19:04:30 -04:00
|
|
|
"Win32_Storage_FileSystem",
|
2026-08-03 03:06:19 -04:00
|
|
|
"Win32_System_Threading",
|
2026-08-02 19:04:30 -04:00
|
|
|
"Win32_System_WindowsProgramming",
|
|
|
|
|
] }
|