- Gestion PID (write/read/remove + verification processus) - cmd_start: lance watcher + dashboard avec Ctrl+C graceful shutdown - cmd_serve: dashboard seul (Linux) avec --no-watcher - cmd_stop: kill processus via SIGTERM/OpenProcess + nettoyage PID - cmd_status: affiche PID, dashboard URL, config, polling - cmd_config show/set/reset: gestion dotted keys (imago.url, watcher.*, etc.) - cmd_logs: affiche derniers logs - Fix Default derives: ImagoConfig, DedupConfig, UiConfig, LoggingConfig - Ajout dependances: open, libc (Unix) - Watcher::run(self) au lieu de &self pour Send - tests: start → API /api/health OK → stop → status OK - 0 errors, 0 warnings (cargo check + cargo build --release)
70 lines
2.0 KiB
TOML
70 lines
2.0 KiB
TOML
[package]
|
|
name = "imagod-web"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
description = "Imago Daemon + Dashboard — Service de capture automatique de screenshots + Dashboard web embarqué"
|
|
authors = ["Bruno Charest <[email protected]>"]
|
|
license = "MIT"
|
|
repository = "https://git.dracodev.net/Projets/imagod-web"
|
|
keywords = ["screenshot", "clipboard", "imago", "dashboard", "ai"]
|
|
categories = ["command-line-utilities", "web-programming"]
|
|
|
|
[dependencies]
|
|
# CLI
|
|
clap = { version = "4", features = ["derive", "env"] }
|
|
# Async runtime
|
|
tokio = { version = "1", features = ["full"] }
|
|
# HTTP Client (API Imago) — rustls pour éviter OpenSSL
|
|
reqwest = { version = "0.12", default-features = false, features = ["json", "multipart", "stream", "rustls-tls"] }
|
|
# Serialization
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
# Config
|
|
toml = "0.8"
|
|
# Hashing
|
|
sha2 = "0.10"
|
|
# SQLite
|
|
rusqlite = { version = "0.32", features = ["bundled"] }
|
|
# Logging
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
|
|
# Error handling
|
|
anyhow = "1"
|
|
thiserror = "2"
|
|
# CLI utilities
|
|
open = "5"
|
|
|
|
# Web server (axum + tower)
|
|
axum = { version = "0.8", features = ["ws"] }
|
|
tower = "0.5"
|
|
tower-http = { version = "0.6", features = ["cors", "fs", "trace"] }
|
|
# Frontend embedding
|
|
rust-embed = "8"
|
|
|
|
# Platform-specific — Windows
|
|
[target.'cfg(windows)'.dependencies]
|
|
# Clipboard access
|
|
arboard = "3"
|
|
# System tray
|
|
tray-icon = "0.19"
|
|
# Windows API (pour titre fenêtre active)
|
|
windows-sys = { version = "0.59", features = [
|
|
"Win32_UI_WindowsAndMessaging",
|
|
"Win32_Foundation",
|
|
"Win32_System_Threading",
|
|
"Win32_UI_TextServices",
|
|
] }
|
|
|
|
# Platform-specific — Linux
|
|
[target.'cfg(unix)'.dependencies]
|
|
# Notify pour watcher filesystem (Linux)
|
|
notify = { version = "7", features = ["macos_kqueue"] }
|
|
# Signal handling (PID file, process checks)
|
|
libc = "0.2"
|
|
|
|
[profile.release]
|
|
opt-level = "z" # Optimize for size
|
|
lto = true # Link-time optimization
|
|
strip = true # Strip symbols
|
|
codegen-units = 1 # Better optimization
|