Files
imagod-web/Cargo.toml
T
bruno 3bab62733d feat: watcher (phase 3+6) + navigation dashboard (version, changelog, aide)
Phase 3 — Clipboard Watcher (Windows):
- clipboard.rs: détection d'images via arboard, conversion BGRA→PNG
- Gère les doublons consécutifs (même image dans le presse-papier)

Phase 6 — Watcher Loop:
- Windows: polling clipboard → hash → dédoublonnage → upload
- Linux/macOS: polling de dossier configurable (watch_dir)
- Ajout champ watch_dir dans WatcherConfig
- Client Imago cloné avant await (évite problème Send/Sync)

Dashboard:
- Badge version v0.1.0 dans le header
- Barre de navigation: Galerie / Changelog / Aide
- Pages changelog.html et help.html (chargement dynamique)
- Endpoint GET /api/version avec infos build
- Correction import delete inutilisé dans routes.rs
2026-06-25 09:41:51 -04:00

79 lines
2.3 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", "multipart"] }
tower = "0.5"
tower-http = { version = "0.6", features = ["cors", "fs", "trace"] }
# Frontend embedding
rust-embed = "8"
# WebSocket broadcast
tokio-stream = "0.1"
futures-util = "0.3"
dashmap = "6"
# Time formatting
chrono = { version = "0.4", features = ["serde"] }
# Image encoding (PNG conversion pour clipboard → upload)
image = { version = "0.25", default-features = false, features = ["png"] }
# 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