- Add OpenCV as default camera backend, nokhwa as optional alternative - Make camera backends mutually exclusive via feature flags (opencv_camera, nokhwa_camera) - Remove deprecated hardware_camera feature, use nokhwa_camera instead - Add main thread camera initialization for macOS TCC authorization - Add pre-opened capture storage via static Mutex for async compatibility - Add pixel format conversion utilities (pixel_convert.rs) - Update all cfg guards from hardware_camera to nokhwa_camera macOS requires camera authorization requests on main thread. OpenCV's VideoCapture::new() is now called before tokio runtime starts, with the handle stored for later use by async code. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
89 lines
2.6 KiB
TOML
89 lines
2.6 KiB
TOML
[package]
|
|
name = "meteor-edge-client"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
default-run = "meteor-edge-client"
|
|
|
|
[features]
|
|
default = ["opencv_camera"]
|
|
|
|
# Camera backends (mutually exclusive)
|
|
opencv_camera = ["dep:opencv"]
|
|
nokhwa_camera = ["dep:nokhwa"]
|
|
|
|
# Other features
|
|
opencv_integration = []
|
|
debug_logging = []
|
|
performance_profiling = []
|
|
|
|
[dependencies]
|
|
clap = { version = "4.0", features = ["derive"] }
|
|
reqwest = { version = "0.11", features = ["json", "multipart", "rustls-tls"], default-features = false }
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
toml = "0.8"
|
|
tokio = { version = "1.0", features = ["full"] }
|
|
tokio-util = { version = "0.7", features = ["full"] }
|
|
anyhow = "1.0"
|
|
thiserror = "1.0"
|
|
dirs = "5.0"
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["json", "chrono", "env-filter"] }
|
|
tracing-appender = "0.2"
|
|
uuid = { version = "1.0", features = ["v4"] }
|
|
flate2 = "1.0"
|
|
bytes = "1.5"
|
|
lazy_static = "1.4"
|
|
sys-info = "0.9"
|
|
libc = "0.2"
|
|
hostname = "0.3"
|
|
num_cpus = "1.16"
|
|
# Device registration and security dependencies
|
|
sha2 = "0.10"
|
|
base64 = "0.22"
|
|
hmac = "0.12"
|
|
rand = { version = "0.8", features = ["small_rng"] }
|
|
jsonwebtoken = { version = "9.2", default-features = false }
|
|
hex = "0.4"
|
|
ring = "0.17"
|
|
rustls = { version = "0.23", features = ["ring"] }
|
|
rustls-pemfile = "2.0"
|
|
x509-parser = "0.16"
|
|
qrcode = "0.14"
|
|
image = "0.24"
|
|
# Network and WebSocket
|
|
tungstenite = { version = "0.21", features = ["rustls-tls-native-roots"] }
|
|
tokio-tungstenite = { version = "0.21", features = ["rustls-tls-native-roots"] }
|
|
futures-util = "0.3"
|
|
http = "1.0"
|
|
# Hardware fingerprinting
|
|
sysinfo = "0.30"
|
|
mac_address = "1.1"
|
|
# opencv = { version = "0.88", default-features = false } # Commented out for demo - requires system OpenCV installation
|
|
|
|
# Camera interface dependencies
|
|
async-trait = "0.1"
|
|
|
|
# Cross-platform camera capture backends (optional, mutually exclusive)
|
|
# OpenCV - stable, proper resource release
|
|
opencv = { version = "0.93", optional = true, default-features = false, features = ["videoio"] }
|
|
|
|
# nokhwa - alternative backend (has resource release issues on macOS)
|
|
# - input-native: Use native camera backend (V4L2 on Linux, AVFoundation on macOS)
|
|
# - output-threaded: Enable threaded/callback based camera for proper async support
|
|
nokhwa = { version = "0.10", features = ["input-native", "output-threaded"], optional = true }
|
|
|
|
# Optional video processing backends
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
winapi = { version = "0.3", features = ["memoryapi", "winnt", "handleapi"] }
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3.0"
|
|
futures = "0.3"
|
|
|
|
[[bin]]
|
|
name = "test-fingerprint"
|
|
path = "src/test_fingerprint.rs"
|