All checks were successful
SPEC-002 Phase 1 Task 7 (the last), code-reviewed APPROVED, locally verified (cargo fmt + clippy -D warnings exit 0 + cargo test --workspace 89 pass + build). - Encoder trait + factory: RawEncoder (salvaged, UNCHANGED) and H264Encoder, selected by negotiation; factory falls back to raw on H.264 init failure. - Negotiation: agent advertises supports_h264 (MFTEnumEx HW probe, cached) in AgentStatus; server picks the codec via select_video_codec(supports, prefer) and stamps StartStream.video_codec; agent re-guards on local HW. Policy constant DEFAULT_PREFER_H264 = false, so RAW is negotiated for every session today - H.264 stays dormant until live hardware validation (Task 8). - MF H.264 encoder (h264.rs, FIRST-CUT / compile-verified-only): HW encoder MFT, BGRA->NV12 (color.rs, unit-tested), sync drain, fall-back-to-raw on any failure. - Viewer H.264 decoder (decoder.rs, FIRST-CUT): MF decoder on a dedicated COM thread; drops+logs on failure, raw render path untouched. - proto additive: VideoCodec enum, StartStream.video_codec=3, SessionResponse.video_codec=5, AgentStatus.supports_h264=11. - Raw+Zstd path byte-for-byte unchanged; remains the guaranteed default/fallback. Review confirmed unsafe impl Send for H264Encoder is sound (single-owned &mut on the block_on thread; session future never spawned) and every MF failure degrades to raw. H.264 is NOT claimed functional - compile/clippy/build-verified only; live validation + force-IDR + the no-spawn-invariant doc are Task 8 go-live gates. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
122 lines
2.6 KiB
TOML
122 lines
2.6 KiB
TOML
[package]
|
|
name = "guruconnect"
|
|
version = "0.2.0"
|
|
edition = "2021"
|
|
authors = ["AZ Computer Guru"]
|
|
description = "GuruConnect Remote Desktop - Agent and Viewer"
|
|
|
|
[dependencies]
|
|
# CLI
|
|
clap = { version = "4", features = ["derive"] }
|
|
|
|
# Async runtime
|
|
tokio = { version = "1", features = ["full", "sync", "time", "rt-multi-thread", "macros"] }
|
|
|
|
# WebSocket
|
|
tokio-tungstenite = { version = "0.24", features = ["native-tls"] }
|
|
futures-util = "0.3"
|
|
|
|
# Windowing (for viewer)
|
|
winit = { version = "0.30", features = ["rwh_06"] }
|
|
softbuffer = "0.4"
|
|
raw-window-handle = "0.6"
|
|
|
|
# Compression
|
|
zstd = "0.13"
|
|
|
|
# Protocol (protobuf)
|
|
prost = "0.13"
|
|
prost-types = "0.13"
|
|
bytes = "1"
|
|
|
|
# Serialization
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
|
|
# Logging
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
|
|
# Error handling
|
|
anyhow = "1"
|
|
thiserror = "1"
|
|
|
|
# Configuration
|
|
toml = "0.8"
|
|
|
|
# Crypto
|
|
ring = "0.17"
|
|
sha2 = "0.10"
|
|
|
|
# HTTP client for updates
|
|
reqwest = { version = "0.12", default-features = false, features = ["rustls-tls", "stream", "json"] }
|
|
|
|
# UUID
|
|
uuid = { version = "1", features = ["v4", "serde"] }
|
|
|
|
# Time
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
|
|
# Hostname
|
|
hostname = "0.4"
|
|
|
|
# URL encoding
|
|
urlencoding = "2"
|
|
|
|
# System tray (Windows)
|
|
tray-icon = "0.19"
|
|
muda = "0.15" # Menu for tray icon
|
|
|
|
# Image handling for tray icon
|
|
image = { version = "0.25", default-features = false, features = ["png"] }
|
|
|
|
# URL parsing
|
|
url = "2"
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
# Windows APIs for screen capture, input, and shell operations
|
|
windows = { version = "0.58", features = [
|
|
"Win32_Foundation",
|
|
"Win32_Graphics_Gdi",
|
|
"Win32_Graphics_Dxgi",
|
|
"Win32_Graphics_Dxgi_Common",
|
|
"Win32_Graphics_Direct3D",
|
|
"Win32_Graphics_Direct3D11",
|
|
"Win32_UI_Input_KeyboardAndMouse",
|
|
"Win32_UI_WindowsAndMessaging",
|
|
"Win32_UI_Shell",
|
|
"Win32_System_LibraryLoader",
|
|
"Win32_System_Threading",
|
|
"Win32_System_Registry",
|
|
"Win32_System_Console",
|
|
"Win32_System_Environment",
|
|
"Win32_Security",
|
|
"Win32_Storage_FileSystem",
|
|
"Win32_System_Pipes",
|
|
"Win32_System_SystemServices",
|
|
"Win32_System_IO",
|
|
"Win32_System_Com",
|
|
"Win32_System_Com_StructuredStorage",
|
|
"Win32_System_Ole",
|
|
"Win32_System_Variant",
|
|
"Win32_Media_MediaFoundation",
|
|
"Win32_Media_KernelStreaming",
|
|
"Win32_Media_DirectShow",
|
|
]}
|
|
|
|
# Windows service support
|
|
windows-service = "0.7"
|
|
|
|
[build-dependencies]
|
|
prost-build = "0.13"
|
|
winres = "0.1"
|
|
chrono = "0.4"
|
|
|
|
[[bin]]
|
|
name = "guruconnect"
|
|
path = "src/main.rs"
|
|
|
|
[[bin]]
|
|
name = "guruconnect-sas-service"
|
|
path = "src/bin/sas_service.rs"
|