- Add comprehensive NPU inference performance tests (tests/npu_inference_test.rs) - NPU session creation validation - DirectML configuration verification - Classifier NPU integration testing - Performance baseline: 21,190 classifications/sec - Implement HTTP-based model download using ureq (src/ai/models.rs) - Progress tracking during download - Chunk-based file writing - Error handling for network failures - Update CLI model management commands (src/main.rs) - Enhanced model listing with download status - Improved error messages for unknown models - Add ureq dependency for HTTP downloads (Cargo.toml) All 39 tests passing (30 unit + 5 AI integration + 4 NPU inference) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
76 lines
1.6 KiB
TOML
76 lines
1.6 KiB
TOML
[package]
|
|
name = "activity-tracker"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
authors = ["Activity Tracker Team"]
|
|
description = "Backend de suivi d'activité pour reconstruire l'historique de travail (Windows uniquement)"
|
|
|
|
[dependencies]
|
|
# Core dependencies
|
|
tokio = { version = "1.35", features = ["full"] }
|
|
anyhow = "1.0"
|
|
thiserror = "1.0"
|
|
log = "0.4"
|
|
env_logger = "0.11"
|
|
|
|
# Capture
|
|
screenshots = "0.6"
|
|
image = "0.24"
|
|
webp = "0.2"
|
|
|
|
# Windows APIs
|
|
[target.'cfg(windows)'.dependencies]
|
|
windows = { version = "0.52", features = [
|
|
"Win32_Foundation",
|
|
"Win32_UI_WindowsAndMessaging",
|
|
"Win32_System_Threading",
|
|
"Win32_System_ProcessStatus",
|
|
] }
|
|
|
|
# Storage (SQLite + Encryption)
|
|
rusqlite = { version = "0.31", features = ["bundled"] }
|
|
|
|
# Encryption (AES-256-GCM)
|
|
aes-gcm = "0.10"
|
|
pbkdf2 = { version = "0.12", features = ["simple"] }
|
|
rand = "0.8"
|
|
sha2 = "0.10"
|
|
|
|
# Serialization
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
base64 = "0.22"
|
|
|
|
# Time management
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
|
|
# CLI
|
|
clap = { version = "4.4", features = ["derive"] }
|
|
|
|
# Configuration
|
|
toml = "0.8"
|
|
dotenv = "0.15"
|
|
|
|
# Utilities
|
|
regex = "1.10"
|
|
ureq = "3.1"
|
|
|
|
# Web Server (Dashboard)
|
|
axum = { version = "0.7", features = ["ws", "macros"] }
|
|
tower = { version = "0.4", features = ["util"] }
|
|
tower-http = { version = "0.5", features = ["fs", "trace", "cors"] }
|
|
mime_guess = "2.0"
|
|
|
|
# AI/ML (NPU support via DirectML)
|
|
ort = { version = "2.0.0-rc.10", features = ["download-binaries", "directml"] }
|
|
ndarray = "0.16"
|
|
tokenizers = "0.20"
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3.8"
|
|
criterion = "0.5"
|
|
|
|
[[bin]]
|
|
name = "activity-tracker"
|
|
path = "src/main.rs"
|