chore: initialiser le projet imagod-web (Rust)
- Structure du projet Cargo avec dépendances (clap, axum, reqwest, rusqlite, arboard, tray-icon) - CLI avec sous-commandes start, serve, stop, status, config, install, uninstall, logs - Module config: parsing TOML, chemins Windows/Linux - Module dedup: dédoublonnage SHA-256 avec cache SQLite - Module imago_client: client HTTP pour API Imago (upload, search, get) - Module watcher: boucle de polling stub - Module server: serveur web axum avec routes API REST stub - Platform-specific: clipboard, tray, service, window_info (Windows) - Frontend placeholder HTML - Config par défaut (imagod.toml) - README.md, LICENSE (MIT), .gitignore
This commit is contained in:
+71
@@ -0,0 +1,71 @@
|
||||
[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)
|
||||
reqwest = { version = "0.12", features = ["json", "multipart", "stream"] }
|
||||
# Serialization
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
serde_json = "1"
|
||||
# Config
|
||||
toml = "0.8"
|
||||
# Hashing
|
||||
sha2 = "0.10"
|
||||
# SQLite
|
||||
rusqlite = { version = "0.32", features = ["bundled"] }
|
||||
# Time
|
||||
chrono = { version = "0.4", features = ["serde"] }
|
||||
# Logging
|
||||
tracing = "0.1"
|
||||
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
|
||||
# Error handling
|
||||
anyhow = "1"
|
||||
thiserror = "2"
|
||||
# Async trait
|
||||
async-trait = "0.1"
|
||||
# UUID for unique IDs
|
||||
uuid = { version = "1", features = ["v4"] }
|
||||
|
||||
# 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"] }
|
||||
|
||||
[profile.release]
|
||||
opt-level = "z" # Optimize for size
|
||||
lto = true # Link-time optimization
|
||||
strip = true # Strip symbols
|
||||
codegen-units = 1 # Better optimization
|
||||
Reference in New Issue
Block a user