90 lines
2.6 KiB
TOML
90 lines
2.6 KiB
TOML
[package]
|
|
name = "app"
|
|
version = "0.1.0"
|
|
description = "A Tauri App"
|
|
authors = ["you"]
|
|
license = ""
|
|
repository = ""
|
|
edition = "2021"
|
|
rust-version = "1.77.2"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[lib]
|
|
name = "app_lib"
|
|
crate-type = ["staticlib", "cdylib", "rlib"]
|
|
|
|
[build-dependencies]
|
|
tauri-build = { version = "2.5.1", features = [] }
|
|
zip = { version = "0.6", default-features = false, features = ["deflate"] }
|
|
reqwest = { version = "0.12", features = ["blocking", "rustls-tls"] }
|
|
sha2 = "0.10"
|
|
aes-gcm = "0.10"
|
|
base64 = "0.21"
|
|
|
|
[features]
|
|
default = [] # Por padrão, não incluir llama-cpp (requer CUDA/libclang)
|
|
llama-cpp = ["dep:llama_cpp"]
|
|
dev-no-llama = [] # Skip llama.cpp em dev builds (builds 30-45 min podem ser lentos)
|
|
|
|
[dependencies]
|
|
serde_json = "1.0"
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
log = "0.4"
|
|
tauri = { version = "2.9.2", features = [] }
|
|
tauri-plugin-log = "2"
|
|
tauri-plugin-shell = "2"
|
|
tauri-plugin-notification = "2"
|
|
reqwest = { version = "0.12", features = ["json", "stream"] }
|
|
sysinfo = "0.36.1"
|
|
uuid = { version = "1.10", features = ["v4", "serde"] }
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
tokio = { version = "1", features = ["full"] }
|
|
scraper = "0.18"
|
|
anyhow = "1.0"
|
|
url = "2.5"
|
|
urlencoding = "2.1"
|
|
zip = "0.6"
|
|
rand = "0.8"
|
|
tokio-cron-scheduler = "0.9"
|
|
futures-util = "0.3"
|
|
regex = "1.10"
|
|
walkdir = "2.5"
|
|
tauri-plugin-autostart = "2"
|
|
tauri-plugin-updater = "2"
|
|
dirs = "5.0"
|
|
rfd = "0.14"
|
|
rusqlite = { version = "0.31", features = ["bundled"] }
|
|
<<<<<<< HEAD
|
|
aes-gcm = "0.10"
|
|
base64 = "0.21"
|
|
=======
|
|
>>>>>>> 593efd42e091a845dea82ee6646e027bce1e18c5
|
|
|
|
# ONNX Runtime para embeddings locais (ranking de relevância)
|
|
# Usando load-dynamic para evitar conflito de RuntimeLibrary (MD vs MT) no Windows
|
|
# entre ort (dynamic) e tokenizers/esaxx-rs (static)
|
|
ort = { version = "2.0.0-rc.10", features = ["load-dynamic"] }
|
|
ndarray = "0.16"
|
|
tokenizers = "0.21"
|
|
<<<<<<< HEAD
|
|
sha2 = "0.10"
|
|
|
|
# Dependências para llama.cpp e parsing GGUF
|
|
# Nota: llama_cpp 0.3.x é a versão mais recente disponível
|
|
llama_cpp = { version = "0.3", optional = true }
|
|
gguf = "0.1"
|
|
lru = "0.12"
|
|
|
|
# Features condicionais por OS (Metal/CUDA são mutuamente exclusivos)
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
|
llama_cpp = { version = "0.3", features = ["metal"], optional = true }
|
|
|
|
[target.'cfg(all(unix, not(target_os = "macos")))'.dependencies]
|
|
llama_cpp = { version = "0.3", features = ["cuda"], optional = true }
|
|
|
|
[target.'cfg(target_os = "windows")'.dependencies]
|
|
llama_cpp = { version = "0.3", features = ["cuda"], optional = true }
|
|
=======
|
|
>>>>>>> 593efd42e091a845dea82ee6646e027bce1e18c5
|