-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
82 lines (65 loc) · 1.72 KB
/
Copy pathCargo.toml
File metadata and controls
82 lines (65 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
[package]
name = "hypercalibrate"
version = "0.1.0"
edition = "2021"
authors = ["instance.id"]
description = "Low-latency TV screen calibration for Hyperion ambient lighting"
license = "MIT"
readme = "README.md"
[dependencies]
# Web framework
axum = { version = "0.7", features = ["ws", "macros"] }
tokio = { version = "1", features = ["full"] }
tower = "0.4"
tower-http = { version = "0.5", features = ["fs", "cors"] }
# Video capture (V4L2)
v4l = "0.14"
libc = "0.2"
# Image processing
image = { version = "0.24", default-features = false, features = ["jpeg", "png"] }
imageproc = "0.23"
nalgebra = "0.32"
jpeg-decoder = "0.3"
# Hardware-accelerated JPEG decoding (uses libjpeg-turbo with SIMD)
turbojpeg = "1.0"
# Parallelism
rayon = "1.10"
# Serialization
serde = { version = "1", features = ["derive"] }
serde_json = "1"
toml = "0.8"
# Async utilities
tokio-stream = "0.1"
futures = "0.3"
# Logging
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# CLI
clap = { version = "4", features = ["derive"] }
# Error handling
anyhow = "1"
thiserror = "1"
# Pin home to avoid requiring Rust 1.88+ (transitive dep from bindgen -> which -> home)
home = "=0.5.9"
# Embedded web assets
rust-embed = { version = "8", features = ["axum"] }
mime_guess = "2"
# Base64 for image encoding
base64 = "0.21"
# Atomic/concurrent access for live calibration
parking_lot = "0.12"
arc-swap = "1"
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
strip = true
panic = "abort"
[profile.release-fast]
inherits = "release"
lto = "thin"
codegen-units = 4
# Optimize build dependencies too
[profile.release.build-override]
opt-level = 3
# For RPi5, build with: RUSTFLAGS="-C target-cpu=cortex-a76" cargo build --release