feat: load printer configuration from .env

Configure the 80 mm thermal printer (576 dots) via a committed .env file,
loaded at startup with dotenvy. Real environment variables take precedence.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
bankosegger
2026-11-11 15:00:03 +01:00
parent eae81bb052
commit a2b83744db
5 changed files with 27 additions and 1 deletions

7
Cargo.lock generated
View File

@@ -991,6 +991,12 @@ dependencies = [
"litrs",
]
[[package]]
name = "dotenvy"
version = "0.15.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1aaf95b3e5c8f23aa320147307562d361db0ae0d51242340f558153b4eb2439b"
[[package]]
name = "downcast-rs"
version = "1.2.1"
@@ -5444,6 +5450,7 @@ checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
name = "winf-photobooth-app"
version = "0.1.0"
dependencies = [
"dotenvy",
"opencv",
"slint",
"slint-build",