From 2f827c168d682835fd29b5c32efc6a2e0bf1a7bc Mon Sep 17 00:00:00 2001 From: Gabriel Kaszewski Date: Mon, 12 Jan 2026 00:53:54 +0100 Subject: [PATCH] init --- .gitignore | 5 + .vscode/extensions.json | 10 + GUEST_MANUAL.md | 28 + README.md | 82 ++ include/README | 37 + include/camera_service.h | 31 + include/config.h | 17 + include/image_processor.h | 11 + include/printer_service.h | 31 + include/settings_service.h | 41 + lib/README | 46 + platformio.ini | 18 + server/.env.example | 5 + server/.gitignore | 4 + server/Cargo.lock | 1901 ++++++++++++++++++++++++++++++++++++ server/Cargo.toml | 16 + server/Dockerfile | 44 + server/compose.yml | 16 + server/src/gallery.html | 102 ++ server/src/main.rs | 183 ++++ src/camera_service.cpp | 85 ++ src/image_processor.cpp | 137 +++ src/main.cpp | 73 ++ src/printer_service.cpp | 60 ++ src/settings_service.cpp | 151 +++ test/README | 11 + 26 files changed, 3145 insertions(+) create mode 100644 .gitignore create mode 100644 .vscode/extensions.json create mode 100644 GUEST_MANUAL.md create mode 100644 README.md create mode 100644 include/README create mode 100644 include/camera_service.h create mode 100644 include/config.h create mode 100644 include/image_processor.h create mode 100644 include/printer_service.h create mode 100644 include/settings_service.h create mode 100644 lib/README create mode 100644 platformio.ini create mode 100644 server/.env.example create mode 100644 server/.gitignore create mode 100644 server/Cargo.lock create mode 100644 server/Cargo.toml create mode 100644 server/Dockerfile create mode 100644 server/compose.yml create mode 100644 server/src/gallery.html create mode 100644 server/src/main.rs create mode 100644 src/camera_service.cpp create mode 100644 src/image_processor.cpp create mode 100644 src/main.cpp create mode 100644 src/printer_service.cpp create mode 100644 src/settings_service.cpp create mode 100644 test/README diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..89cc49c --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +.pio +.vscode/.browse.c_cpp.db* +.vscode/c_cpp_properties.json +.vscode/launch.json +.vscode/ipch diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..080e70d --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,10 @@ +{ + // See http://go.microsoft.com/fwlink/?LinkId=827846 + // for the documentation about the extensions.json format + "recommendations": [ + "platformio.platformio-ide" + ], + "unwantedRecommendations": [ + "ms-vscode.cpptools-extension-pack" + ] +} diff --git a/GUEST_MANUAL.md b/GUEST_MANUAL.md new file mode 100644 index 0000000..256b445 --- /dev/null +++ b/GUEST_MANUAL.md @@ -0,0 +1,28 @@ +# Welcome to the Party Cam! + +Snap a photo, get a receipt, and view the digital archive instantly. + +--- + +### How to use + +1. **Frame your shot.** (The lens is slightly wide-angle!) +2. **Press the Button.** +3. **Wait ~5 seconds.** + - **Print:** Collect your physical photo. + - **Upload:** The photo is magically sent to the gallery. + +--- + +### View the Live Gallery + +Want to save the photo to your phone? + +1. Connect to the WiFi: **[Your_WiFi_Name]** +2. Scan this code or go to: + **http://[YOUR_LAPTOP_IP]:3000/gallery** +3. Password: **partytime** + +_(Ask the host if you can't connect!)_ + +--- diff --git a/README.md b/README.md new file mode 100644 index 0000000..7b3d945 --- /dev/null +++ b/README.md @@ -0,0 +1,82 @@ +# Party Cam: Instant Thermal Camera & Digital Gallery + +A DIY point-and-shoot camera that prints dithered lo-fi photos on thermal receipts and instantly uploads high-res copies to a local Rust server. + +## Hardware BOM + +- **ESP32-CAM** +- **Thermal Printer** (TTL Serial, 5V-9V) +- **Batteries** (Recommended: 2x 18650 Li-Ion in series = 7.4V, powering printer directly + buck converter to 5V for ESP32) +- **Button** (Tactile switch) +- **Programmer**: FTDI Adapter or Arduino Uno (for flashing) + +## Wiring + +### 1. Camera & Printer + +| ESP32-CAM Pin | Component | Function | +| :---------------- | :--------- | :--------------------------------- | +| **5V** | PSU 5V | Power In | +| **GND** | PSU GND | Common Ground | +| **GPIO 12** | Button | Trigger (Connect other leg to GND) | +| **GPIO 14** (U1T) | Printer RX | Data TO Printer | +| **GPIO 15** (U1R) | Printer TX | Data FROM Printer | +| **GPIO 4** | Flash LED | (Optional) Built-in Flash | + +### 2. Flashing (Using Arduino Uno as Bridge) + +_See "How to Flash" section below._ + +--- + +## Setup Guide + +### A. The Server (Rust) + +The server receives images and hosts the gallery for guests. + +1. **Install Rust:** `curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh` +2. **Configure:** + Create a `.env` file in the `server` folder: + ```ini + SERVER_HOST=0.0.0.0 + SERVER_PORT=3000 + GALLERY_PASSWORD=partytime + UPLOAD_DIR=./uploads + ``` +3. **Run:** + ```bash + cd server + cargo run --release + ``` + _Server will listen on port 3000._ + +### B. The Camera (Firmware) + +1. **Open Project:** Open this folder in VS Code with the PlatformIO extension. +2. **Flash Mode Wiring (Arduino Uno Method):** + - **Arduino RESET** -> **Arduino GND** (Bypasses Arduino chip). + - **Arduino Pin 0 (RX)** -> **ESP32 U0R** (Direct passthrough). + - **Arduino Pin 1 (TX)** -> **ESP32 U0T** (Direct passthrough). + - **ESP32 IO0** -> **ESP32 GND** (Enables Download Mode). +3. **Upload:** + - Connect via USB. + - Click "Upload". + - Press the **RST** button on ESP32 when "Connecting..." appears. +4. **Run Mode:** + - **Disconnect IO0 from GND.** + - Press **RST** to boot. + +--- + +## Configuration (First Boot) + +1. **Power on** the camera. +2. Connect your phone to the WiFi network: `PartyCam-Setup`. +3. A captive portal should open (or go to `192.168.4.1`). +4. **WiFi:** Select the venue's WiFi (or your phone hotspot). +5. **Server URL:** Enter your laptop's IP (e.g., `http://192.168.1.15:3000/upload`). +6. **Settings:** Adjust Contrast/Heat if the print is too faint or dark. +7. **Save & Reboot.** + +The camera is now live! diff --git a/include/README b/include/README new file mode 100644 index 0000000..49819c0 --- /dev/null +++ b/include/README @@ -0,0 +1,37 @@ + +This directory is intended for project header files. + +A header file is a file containing C declarations and macro definitions +to be shared between several project source files. You request the use of a +header file in your project source file (C, C++, etc) located in `src` folder +by including it, with the C preprocessing directive `#include'. + +```src/main.c + +#include "header.h" + +int main (void) +{ + ... +} +``` + +Including a header file produces the same results as copying the header file +into each source file that needs it. Such copying would be time-consuming +and error-prone. With a header file, the related declarations appear +in only one place. If they need to be changed, they can be changed in one +place, and programs that include the header file will automatically use the +new version when next recompiled. The header file eliminates the labor of +finding and changing all the copies as well as the risk that a failure to +find one copy will result in inconsistencies within a program. + +In C, the convention is to give header files names that end with `.h'. + +Read more about using header files in official GCC documentation: + +* Include Syntax +* Include Operation +* Once-Only Headers +* Computed Includes + +https://gcc.gnu.org/onlinedocs/cpp/Header-Files.html diff --git a/include/camera_service.h b/include/camera_service.h new file mode 100644 index 0000000..d08939d --- /dev/null +++ b/include/camera_service.h @@ -0,0 +1,31 @@ +#pragma once +#include "esp_camera.h" + +class CameraService { + public: + class Frame { + camera_fb_t* fb; + public: + Frame(camera_fb_t* _fb) : fb(_fb) {} + ~Frame() { + if (fb) { + esp_camera_fb_return(fb); + } + } + + Frame(const Frame&) = delete; + Frame& operator=(const Frame&) = delete; + Frame(Frame&& other) noexcept : fb(other.fb) { + other.fb = nullptr; + } + + bool isValid() const { return fb != nullptr; } + uint8_t* getData() const { return fb ? fb->buf : nullptr; } + size_t getWidth() const { return fb ? fb->width : 0; } + size_t getHeight() const { return fb ? fb->height : 0; } + size_t getLength() const { return fb ? fb->len : 0; } + }; + + static void init(); + static Frame capture(); +}; \ No newline at end of file diff --git a/include/config.h b/include/config.h new file mode 100644 index 0000000..3d893ba --- /dev/null +++ b/include/config.h @@ -0,0 +1,17 @@ +#pragma once +#include + +namespace Config { + // Hardware Pins (ESP32-CAM AI-Thinker) + constexpr int PIN_CAM_PWDN = 32; + constexpr int PIN_CAM_RESET = -1; + // ... (Add standard camera pins here to keep main clean) ... + + // Printer Pins + constexpr int PIN_PRINTER_RX = 14; + constexpr int PIN_PRINTER_TX = 15; + + // Settings + constexpr int PRINTER_WIDTH = 384; + constexpr int BAUD_RATE = 9600; // Check your printer specs (some are 19200) +} \ No newline at end of file diff --git a/include/image_processor.h b/include/image_processor.h new file mode 100644 index 0000000..91fe0be --- /dev/null +++ b/include/image_processor.h @@ -0,0 +1,11 @@ +#pragma once +#include "camera_service.h" +#include "printer_service.h" +#include "settings_service.h" + +class ImageProcessor +{ +public: + static void processAndPrint(const CameraService::Frame &frame, PrinterService &printer, const AppSettings &settings); + static void uploadImage(const uint8_t *bitmap, int size, const String &url); +}; \ No newline at end of file diff --git a/include/printer_service.h b/include/printer_service.h new file mode 100644 index 0000000..8f37d9c --- /dev/null +++ b/include/printer_service.h @@ -0,0 +1,31 @@ +#pragma once +#include +#include +#include "config.h" + +class PrinterService +{ +private: + HardwareSerial *printerSerial; + Adafruit_Thermal *printer; + + static PrinterService *instance; + + PrinterService(); + +public: + PrinterService(const PrinterService &) = delete; + PrinterService &operator=(const PrinterService &) = delete; + + static void init(); + static PrinterService &getInstance(); + + void wake(); + void sleep(); + void feed(int lines); + + void setHeat(uint8_t heatTime); + + void printBitmap(int w, int h, const uint8_t *bitmap); + void printText(const String &text); +}; \ No newline at end of file diff --git a/include/settings_service.h b/include/settings_service.h new file mode 100644 index 0000000..8bce91c --- /dev/null +++ b/include/settings_service.h @@ -0,0 +1,41 @@ +#pragma once +#include +#include +#include + +struct AppSettings +{ + // Camera + int contrast = 0; // -2 to 2 + int brightness = 0; // -2 to 2 + bool vFlip = false; + bool hMirror = false; + + // Printer + int heatTime = 120; // 0-255 (Higher = darker but slower) + int heatInterval = 50; // 0-255 + + // Upload + String uploadUrl = ""; // e.g., "http://192.168.1.10:3000/upload" + bool enableUpload = false; +}; + +class SettingsService +{ +private: + Preferences prefs; + WebServer server; + AppSettings currentSettings; + bool wifiConnected = false; + + void setupRoutes(); + void loadSettings(); + +public: + SettingsService(); + void begin(); + void handle(); + + AppSettings &get() { return currentSettings; } + void save(); +}; \ No newline at end of file diff --git a/lib/README b/lib/README new file mode 100644 index 0000000..9379397 --- /dev/null +++ b/lib/README @@ -0,0 +1,46 @@ + +This directory is intended for project specific (private) libraries. +PlatformIO will compile them to static libraries and link into the executable file. + +The source code of each library should be placed in a separate directory +("lib/your_library_name/[Code]"). + +For example, see the structure of the following example libraries `Foo` and `Bar`: + +|--lib +| | +| |--Bar +| | |--docs +| | |--examples +| | |--src +| | |- Bar.c +| | |- Bar.h +| | |- library.json (optional. for custom build options, etc) https://docs.platformio.org/page/librarymanager/config.html +| | +| |--Foo +| | |- Foo.c +| | |- Foo.h +| | +| |- README --> THIS FILE +| +|- platformio.ini +|--src + |- main.c + +Example contents of `src/main.c` using Foo and Bar: +``` +#include +#include + +int main (void) +{ + ... +} + +``` + +The PlatformIO Library Dependency Finder will find automatically dependent +libraries by scanning project source files. + +More information about PlatformIO Library Dependency Finder +- https://docs.platformio.org/page/librarymanager/ldf.html diff --git a/platformio.ini b/platformio.ini new file mode 100644 index 0000000..ca5c1cc --- /dev/null +++ b/platformio.ini @@ -0,0 +1,18 @@ +; PlatformIO Project Configuration File +; +; Build options: build flags, source filter +; Upload options: custom upload port, speed and extra flags +; Library options: dependencies, extra library storages +; Advanced options: extra scripting +; +; Please visit documentation for the other options and examples +; https://docs.platformio.org/page/projectconf.html + +[env:4d_systems_esp32s3_gen4_r8n16] +platform = espressif32 +board = 4d_systems_esp32s3_gen4_r8n16 +framework = arduino +lib_deps = + espressif/esp32-camera@^2.0.4 + adafruit/Adafruit Thermal Printer Library + tzapu/WiFiManager \ No newline at end of file diff --git a/server/.env.example b/server/.env.example new file mode 100644 index 0000000..f3993f2 --- /dev/null +++ b/server/.env.example @@ -0,0 +1,5 @@ +SERVER_HOST=0.0.0.0 +SERVER_PORT=3000 +GALLERY_PASSWORD=partytime +UPLOAD_DIR=./uploads +RUST_LOG=info,partycam_server=debug \ No newline at end of file diff --git a/server/.gitignore b/server/.gitignore new file mode 100644 index 0000000..1ee65ed --- /dev/null +++ b/server/.gitignore @@ -0,0 +1,4 @@ +/target +/uploads + +.env \ No newline at end of file diff --git a/server/Cargo.lock b/server/Cargo.lock new file mode 100644 index 0000000..b35cb25 --- /dev/null +++ b/server/Cargo.lock @@ -0,0 +1,1901 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "adler2" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" + +[[package]] +name = "aho-corasick" +version = "1.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301" +dependencies = [ + "memchr", +] + +[[package]] +name = "aligned" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee4508988c62edf04abd8d92897fca0c2995d907ce1dfeaf369dac3716a40685" +dependencies = [ + "as-slice", +] + +[[package]] +name = "aligned-vec" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc890384c8602f339876ded803c97ad529f3842aba97f6392b3dba0dd171769b" +dependencies = [ + "equator", +] + +[[package]] +name = "android_system_properties" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" +dependencies = [ + "libc", +] + +[[package]] +name = "anyhow" +version = "1.0.100" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a23eb6b1614318a8071c9b2521f36b424b2c83db5eb3a0fead4a6c0809af6e61" + +[[package]] +name = "arbitrary" +version = "1.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3d036a3c4ab069c7b410a2ce876bd74808d2d0888a82667669f8e783a898bf1" + +[[package]] +name = "arg_enum_proc_macro" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ae92a5119aa49cdbcf6b9f893fe4e1d98b04ccbf82ee0584ad948a44a734dea" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "arrayvec" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50" + +[[package]] +name = "as-slice" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "516b6b4f0e40d50dcda9365d53964ec74560ad4284da2e7fc97122cd83174516" +dependencies = [ + "stable_deref_trait", +] + +[[package]] +name = "atomic-waker" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" + +[[package]] +name = "autocfg" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8" + +[[package]] +name = "av-scenechange" +version = "0.14.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0f321d77c20e19b92c39e7471cf986812cbb46659d2af674adc4331ef3f18394" +dependencies = [ + "aligned", + "anyhow", + "arg_enum_proc_macro", + "arrayvec", + "log", + "num-rational", + "num-traits", + "pastey", + "rayon", + "thiserror", + "v_frame", + "y4m", +] + +[[package]] +name = "av1-grain" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8cfddb07216410377231960af4fcab838eaa12e013417781b78bd95ee22077f8" +dependencies = [ + "anyhow", + "arrayvec", + "log", + "nom", + "num-rational", + "v_frame", +] + +[[package]] +name = "avif-serialize" +version = "0.8.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47c8fbc0f831f4519fe8b810b6a7a91410ec83031b8233f730a0480029f6a23f" +dependencies = [ + "arrayvec", +] + +[[package]] +name = "axum" +version = "0.8.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b52af3cb4058c895d37317bb27508dccc8e5f2d39454016b297bf4a400597b8" +dependencies = [ + "axum-core", + "bytes", + "form_urlencoded", + "futures-util", + "http", + "http-body", + "http-body-util", + "hyper", + "hyper-util", + "itoa", + "matchit", + "memchr", + "mime", + "percent-encoding", + "pin-project-lite", + "serde_core", + "serde_json", + "serde_path_to_error", + "serde_urlencoded", + "sync_wrapper", + "tokio", + "tower", + "tower-layer", + "tower-service", + "tracing", +] + +[[package]] +name = "axum-core" +version = "0.5.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08c78f31d7b1291f7ee735c1c6780ccde7785daae9a9206026862dab7d8792d1" +dependencies = [ + "bytes", + "futures-core", + "http", + "http-body", + "http-body-util", + "mime", + "pin-project-lite", + "sync_wrapper", + "tower-layer", + "tower-service", + "tracing", +] + +[[package]] +name = "base64" +version = "0.22.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" + +[[package]] +name = "bit_field" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e4b40c7323adcfc0a41c4b88143ed58346ff65a288fc144329c5c45e05d70c6" + +[[package]] +name = "bitflags" +version = "2.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "812e12b5285cc515a9c72a5c1d3b6d46a19dac5acfef5265968c166106e31dd3" + +[[package]] +name = "bitstream-io" +version = "4.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60d4bd9d1db2c6bdf285e223a7fa369d5ce98ec767dec949c6ca62863ce61757" +dependencies = [ + "core2", +] + +[[package]] +name = "built" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4ad8f11f288f48ca24471bbd51ac257aaeaaa07adae295591266b792902ae64" + +[[package]] +name = "bumpalo" +version = "3.19.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5dd9dc738b7a8311c7ade152424974d8115f2cdad61e8dab8dac9f2362298510" + +[[package]] +name = "bytemuck" +version = "1.24.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fbdf580320f38b612e485521afda1ee26d10cc9884efaaa750d383e13e3c5f4" + +[[package]] +name = "byteorder-lite" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f1fe948ff07f4bd06c30984e69f5b4899c516a3ef74f34df92a2df2ab535495" + +[[package]] +name = "bytes" +version = "1.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b35204fbdc0b3f4446b89fc1ac2cf84a8a68971995d0bf2e925ec7cd960f9cb3" + +[[package]] +name = "cc" +version = "1.2.52" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd4932aefd12402b36c60956a4fe0035421f544799057659ff86f923657aada3" +dependencies = [ + "find-msvc-tools", + "jobserver", + "libc", + "shlex", +] + +[[package]] +name = "cfg-if" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" + +[[package]] +name = "chrono" +version = "0.4.42" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "145052bdd345b87320e369255277e3fb5152762ad123a901ef5c262dd38fe8d2" +dependencies = [ + "iana-time-zone", + "js-sys", + "num-traits", + "wasm-bindgen", + "windows-link", +] + +[[package]] +name = "color_quant" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d7b894f5411737b7867f4827955924d7c254fc9f4d91a6aad6b097804b1018b" + +[[package]] +name = "core-foundation-sys" +version = "0.8.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" + +[[package]] +name = "core2" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b49ba7ef1ad6107f8824dbe97de947cbaac53c44e7f9756a1fba0d37c1eec505" +dependencies = [ + "memchr", +] + +[[package]] +name = "crc32fast" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "crossbeam-deque" +version = "0.8.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9dd111b7b7f7d55b72c0a6ae361660ee5853c9af73f70c3c2ef6858b950e2e51" +dependencies = [ + "crossbeam-epoch", + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-epoch" +version = "0.9.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-utils" +version = "0.8.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28" + +[[package]] +name = "crunchy" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5" + +[[package]] +name = "dotenvy" +version = "0.15.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1aaf95b3e5c8f23aa320147307562d361db0ae0d51242340f558153b4eb2439b" + +[[package]] +name = "either" +version = "1.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719" + +[[package]] +name = "equator" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4711b213838dfee0117e3be6ac926007d7f433d7bbe33595975d4190cb07e6fc" +dependencies = [ + "equator-macro", +] + +[[package]] +name = "equator-macro" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44f23cf4b44bfce11a86ace86f8a73ffdec849c9fd00a386a53d278bd9e81fb3" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "errno" +version = "0.3.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + +[[package]] +name = "exr" +version = "1.74.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4300e043a56aa2cb633c01af81ca8f699a321879a7854d3896a0ba89056363be" +dependencies = [ + "bit_field", + "half", + "lebe", + "miniz_oxide", + "rayon-core", + "smallvec", + "zune-inflate", +] + +[[package]] +name = "fax" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f05de7d48f37cd6730705cbca900770cab77a89f413d23e100ad7fad7795a0ab" +dependencies = [ + "fax_derive", +] + +[[package]] +name = "fax_derive" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a0aca10fb742cb43f9e7bb8467c91aa9bcb8e3ffbc6a6f7389bb93ffc920577d" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "fdeflate" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e6853b52649d4ac5c0bd02320cddc5ba956bdb407c4b75a2c6b75bf51500f8c" +dependencies = [ + "simd-adler32", +] + +[[package]] +name = "find-msvc-tools" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f449e6c6c08c865631d4890cfacf252b3d396c9bcc83adb6623cdb02a8336c41" + +[[package]] +name = "flate2" +version = "1.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfe33edd8e85a12a67454e37f8c75e730830d83e313556ab9ebf9ee7fbeb3bfb" +dependencies = [ + "crc32fast", + "miniz_oxide", +] + +[[package]] +name = "form_urlencoded" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +dependencies = [ + "percent-encoding", +] + +[[package]] +name = "futures-channel" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10" +dependencies = [ + "futures-core", +] + +[[package]] +name = "futures-core" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e" + +[[package]] +name = "futures-sink" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7" + +[[package]] +name = "futures-task" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f90f7dce0722e95104fcb095585910c0977252f286e354b5e3bd38902cd99988" + +[[package]] +name = "futures-util" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81" +dependencies = [ + "futures-core", + "futures-task", + "pin-project-lite", + "pin-utils", +] + +[[package]] +name = "getrandom" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd" +dependencies = [ + "cfg-if", + "libc", + "r-efi", + "wasip2", +] + +[[package]] +name = "gif" +version = "0.14.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f5df2ba84018d80c213569363bdcd0c64e6933c67fe4c1d60ecf822971a3c35e" +dependencies = [ + "color_quant", + "weezl", +] + +[[package]] +name = "half" +version = "2.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ea2d84b969582b4b1864a92dc5d27cd2b77b622a8d79306834f1be5ba20d84b" +dependencies = [ + "cfg-if", + "crunchy", + "zerocopy", +] + +[[package]] +name = "http" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3ba2a386d7f85a81f119ad7498ebe444d2e22c2af0b86b069416ace48b3311a" +dependencies = [ + "bytes", + "itoa", +] + +[[package]] +name = "http-body" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184" +dependencies = [ + "bytes", + "http", +] + +[[package]] +name = "http-body-util" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b021d93e26becf5dc7e1b75b1bed1fd93124b374ceb73f43d4d4eafec896a64a" +dependencies = [ + "bytes", + "futures-core", + "http", + "http-body", + "pin-project-lite", +] + +[[package]] +name = "http-range-header" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9171a2ea8a68358193d15dd5d70c1c10a2afc3e7e4c5bc92bc9f025cebd7359c" + +[[package]] +name = "httparse" +version = "1.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" + +[[package]] +name = "httpdate" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" + +[[package]] +name = "hyper" +version = "1.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ab2d4f250c3d7b1c9fcdff1cece94ea4e2dfbec68614f7b87cb205f24ca9d11" +dependencies = [ + "atomic-waker", + "bytes", + "futures-channel", + "futures-core", + "http", + "http-body", + "httparse", + "httpdate", + "itoa", + "pin-project-lite", + "pin-utils", + "smallvec", + "tokio", +] + +[[package]] +name = "hyper-util" +version = "0.1.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "727805d60e7938b76b826a6ef209eb70eaa1812794f9424d4a4e2d740662df5f" +dependencies = [ + "bytes", + "futures-core", + "http", + "http-body", + "hyper", + "pin-project-lite", + "tokio", + "tower-service", +] + +[[package]] +name = "iana-time-zone" +version = "0.1.64" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33e57f83510bb73707521ebaffa789ec8caf86f9657cad665b092b581d40e9fb" +dependencies = [ + "android_system_properties", + "core-foundation-sys", + "iana-time-zone-haiku", + "js-sys", + "log", + "wasm-bindgen", + "windows-core", +] + +[[package]] +name = "iana-time-zone-haiku" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" +dependencies = [ + "cc", +] + +[[package]] +name = "image" +version = "0.25.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6506c6c10786659413faa717ceebcb8f70731c0a60cbae39795fdf114519c1a" +dependencies = [ + "bytemuck", + "byteorder-lite", + "color_quant", + "exr", + "gif", + "image-webp", + "moxcms", + "num-traits", + "png", + "qoi", + "ravif", + "rayon", + "rgb", + "tiff", + "zune-core 0.5.0", + "zune-jpeg 0.5.8", +] + +[[package]] +name = "image-webp" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "525e9ff3e1a4be2fbea1fdf0e98686a6d98b4d8f937e1bf7402245af1909e8c3" +dependencies = [ + "byteorder-lite", + "quick-error", +] + +[[package]] +name = "imgref" +version = "1.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7c5cedc30da3a610cac6b4ba17597bdf7152cf974e8aab3afb3d54455e371c8" + +[[package]] +name = "interpolate_name" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c34819042dc3d3971c46c2190835914dfbe0c3c13f61449b2997f4e9722dfa60" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "itertools" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b192c782037fadd9cfa75548310488aabdbf3d2da73885b31bd0abd03351285" +dependencies = [ + "either", +] + +[[package]] +name = "itoa" +version = "1.0.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92ecc6618181def0457392ccd0ee51198e065e016d1d527a7ac1b6dc7c1f09d2" + +[[package]] +name = "jobserver" +version = "0.1.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9afb3de4395d6b3e67a780b6de64b51c978ecf11cb9a462c66be7d4ca9039d33" +dependencies = [ + "getrandom", + "libc", +] + +[[package]] +name = "js-sys" +version = "0.3.83" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "464a3709c7f55f1f721e5389aa6ea4e3bc6aba669353300af094b29ffbdde1d8" +dependencies = [ + "once_cell", + "wasm-bindgen", +] + +[[package]] +name = "lazy_static" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" + +[[package]] +name = "lebe" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a79a3332a6609480d7d0c9eab957bca6b455b91bb84e66d19f5ff66294b85b8" + +[[package]] +name = "libc" +version = "0.2.180" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bcc35a38544a891a5f7c865aca548a982ccb3b8650a5b06d0fd33a10283c56fc" + +[[package]] +name = "libfuzzer-sys" +version = "0.4.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5037190e1f70cbeef565bd267599242926f724d3b8a9f510fd7e0b540cfa4404" +dependencies = [ + "arbitrary", + "cc", +] + +[[package]] +name = "lock_api" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965" +dependencies = [ + "scopeguard", +] + +[[package]] +name = "log" +version = "0.4.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897" + +[[package]] +name = "loop9" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fae87c125b03c1d2c0150c90365d7d6bcc53fb73a9acaef207d2d065860f062" +dependencies = [ + "imgref", +] + +[[package]] +name = "matchers" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1525a2a28c7f4fa0fc98bb91ae755d1e2d1505079e05539e35bc876b5d65ae9" +dependencies = [ + "regex-automata", +] + +[[package]] +name = "matchit" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47e1ffaa40ddd1f3ed91f717a33c8c0ee23fff369e3aa8772b9605cc1d22f4c3" + +[[package]] +name = "maybe-rayon" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ea1f30cedd69f0a2954655f7188c6a834246d2bcf1e315e2ac40c4b24dc9519" +dependencies = [ + "cfg-if", + "rayon", +] + +[[package]] +name = "memchr" +version = "2.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f52b00d39961fc5b2736ea853c9cc86238e165017a493d1d5c8eac6bdc4cc273" + +[[package]] +name = "mime" +version = "0.3.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" + +[[package]] +name = "mime_guess" +version = "2.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f7c44f8e672c00fe5308fa235f821cb4198414e1c77935c1ab6948d3fd78550e" +dependencies = [ + "mime", + "unicase", +] + +[[package]] +name = "miniz_oxide" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316" +dependencies = [ + "adler2", + "simd-adler32", +] + +[[package]] +name = "mio" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a69bcab0ad47271a0234d9422b131806bf3968021e5dc9328caf2d4cd58557fc" +dependencies = [ + "libc", + "wasi", + "windows-sys 0.61.2", +] + +[[package]] +name = "moxcms" +version = "0.7.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac9557c559cd6fc9867e122e20d2cbefc9ca29d80d027a8e39310920ed2f0a97" +dependencies = [ + "num-traits", + "pxfm", +] + +[[package]] +name = "new_debug_unreachable" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086" + +[[package]] +name = "nom" +version = "8.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df9761775871bdef83bee530e60050f7e54b1105350d6884eb0fb4f46c2f9405" +dependencies = [ + "memchr", +] + +[[package]] +name = "noop_proc_macro" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0676bb32a98c1a483ce53e500a81ad9c3d5b3f7c920c28c24e9cb0980d0b5bc8" + +[[package]] +name = "nu-ansi-term" +version = "0.50.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "num-bigint" +version = "0.4.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a5e44f723f1133c9deac646763579fdb3ac745e418f2a7af9cd0c431da1f20b9" +dependencies = [ + "num-integer", + "num-traits", +] + +[[package]] +name = "num-derive" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed3955f1a9c7c0c15e092f9c887db08b1fc683305fdf6eb6684f22555355e202" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "num-integer" +version = "0.1.46" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f" +dependencies = [ + "num-traits", +] + +[[package]] +name = "num-rational" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f83d14da390562dca69fc84082e73e548e1ad308d24accdedd2720017cb37824" +dependencies = [ + "num-bigint", + "num-integer", + "num-traits", +] + +[[package]] +name = "num-traits" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +dependencies = [ + "autocfg", +] + +[[package]] +name = "once_cell" +version = "1.21.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d" + +[[package]] +name = "parking_lot" +version = "0.12.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a" +dependencies = [ + "lock_api", + "parking_lot_core", +] + +[[package]] +name = "parking_lot_core" +version = "0.9.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1" +dependencies = [ + "cfg-if", + "libc", + "redox_syscall", + "smallvec", + "windows-link", +] + +[[package]] +name = "paste" +version = "1.0.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" + +[[package]] +name = "pastey" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "35fb2e5f958ec131621fdd531e9fc186ed768cbe395337403ae56c17a74c68ec" + +[[package]] +name = "percent-encoding" +version = "2.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" + +[[package]] +name = "pin-project-lite" +version = "0.2.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b" + +[[package]] +name = "pin-utils" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" + +[[package]] +name = "png" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97baced388464909d42d89643fe4361939af9b7ce7a31ee32a168f832a70f2a0" +dependencies = [ + "bitflags", + "crc32fast", + "fdeflate", + "flate2", + "miniz_oxide", +] + +[[package]] +name = "ppv-lite86" +version = "0.2.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9" +dependencies = [ + "zerocopy", +] + +[[package]] +name = "proc-macro2" +version = "1.0.105" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "535d180e0ecab6268a3e718bb9fd44db66bbbc256257165fc699dadf70d16fe7" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "profiling" +version = "1.0.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3eb8486b569e12e2c32ad3e204dbaba5e4b5b216e9367044f25f1dba42341773" +dependencies = [ + "profiling-procmacros", +] + +[[package]] +name = "profiling-procmacros" +version = "1.0.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52717f9a02b6965224f95ca2a81e2e0c5c43baacd28ca057577988930b6c3d5b" +dependencies = [ + "quote", + "syn", +] + +[[package]] +name = "pxfm" +version = "0.1.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7186d3822593aa4393561d186d1393b3923e9d6163d3fbfd6e825e3e6cf3e6a8" +dependencies = [ + "num-traits", +] + +[[package]] +name = "qoi" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f6d64c71eb498fe9eae14ce4ec935c555749aef511cca85b5568910d6e48001" +dependencies = [ + "bytemuck", +] + +[[package]] +name = "quick-error" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a993555f31e5a609f617c12db6250dedcac1b0a85076912c436e6fc9b2c8e6a3" + +[[package]] +name = "quote" +version = "1.0.43" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc74d9a594b72ae6656596548f56f667211f8a97b3d4c3d467150794690dc40a" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "r-efi" +version = "5.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" + +[[package]] +name = "rand" +version = "0.9.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6db2770f06117d490610c7488547d543617b21bfa07796d7a12f6f1bd53850d1" +dependencies = [ + "rand_chacha", + "rand_core", +] + +[[package]] +name = "rand_chacha" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb" +dependencies = [ + "ppv-lite86", + "rand_core", +] + +[[package]] +name = "rand_core" +version = "0.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "99d9a13982dcf210057a8a78572b2217b667c3beacbf3a0d8b454f6f82837d38" +dependencies = [ + "getrandom", +] + +[[package]] +name = "rav1e" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "43b6dd56e85d9483277cde964fd1bdb0428de4fec5ebba7540995639a21cb32b" +dependencies = [ + "aligned-vec", + "arbitrary", + "arg_enum_proc_macro", + "arrayvec", + "av-scenechange", + "av1-grain", + "bitstream-io", + "built", + "cfg-if", + "interpolate_name", + "itertools", + "libc", + "libfuzzer-sys", + "log", + "maybe-rayon", + "new_debug_unreachable", + "noop_proc_macro", + "num-derive", + "num-traits", + "paste", + "profiling", + "rand", + "rand_chacha", + "simd_helpers", + "thiserror", + "v_frame", + "wasm-bindgen", +] + +[[package]] +name = "ravif" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef69c1990ceef18a116855938e74793a5f7496ee907562bd0857b6ac734ab285" +dependencies = [ + "avif-serialize", + "imgref", + "loop9", + "quick-error", + "rav1e", + "rayon", + "rgb", +] + +[[package]] +name = "rayon" +version = "1.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "368f01d005bf8fd9b1206fb6fa653e6c4a81ceb1466406b81792d87c5677a58f" +dependencies = [ + "either", + "rayon-core", +] + +[[package]] +name = "rayon-core" +version = "1.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "22e18b0f0062d30d4230b2e85ff77fdfe4326feb054b9783a3460d8435c8ab91" +dependencies = [ + "crossbeam-deque", + "crossbeam-utils", +] + +[[package]] +name = "redox_syscall" +version = "0.5.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d" +dependencies = [ + "bitflags", +] + +[[package]] +name = "regex-automata" +version = "0.4.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5276caf25ac86c8d810222b3dbb938e512c55c6831a10f3e6ed1c93b84041f1c" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", +] + +[[package]] +name = "regex-syntax" +version = "0.8.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a2d987857b319362043e95f5353c0535c1f58eec5336fdfcf626430af7def58" + +[[package]] +name = "rgb" +version = "0.8.52" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c6a884d2998352bb4daf0183589aec883f16a6da1f4dde84d8e2e9a5409a1ce" + +[[package]] +name = "rustversion" +version = "1.0.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" + +[[package]] +name = "ryu" +version = "1.0.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a50f4cf475b65d88e057964e0e9bb1f0aa9bbb2036dc65c64596b42932536984" + +[[package]] +name = "scopeguard" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" + +[[package]] +name = "serde" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e" +dependencies = [ + "serde_core", +] + +[[package]] +name = "serde_core" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "serde_json" +version = "1.0.149" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83fc039473c5595ace860d8c4fafa220ff474b3fc6bfdb4293327f1a37e94d86" +dependencies = [ + "itoa", + "memchr", + "serde", + "serde_core", + "zmij", +] + +[[package]] +name = "serde_path_to_error" +version = "0.1.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "10a9ff822e371bb5403e391ecd83e182e0e77ba7f6fe0160b795797109d1b457" +dependencies = [ + "itoa", + "serde", + "serde_core", +] + +[[package]] +name = "serde_urlencoded" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd" +dependencies = [ + "form_urlencoded", + "itoa", + "ryu", + "serde", +] + +[[package]] +name = "server" +version = "1.0.0" +dependencies = [ + "anyhow", + "axum", + "base64", + "chrono", + "dotenvy", + "image", + "tokio", + "tower-http", + "tracing", + "tracing-subscriber", +] + +[[package]] +name = "sharded-slab" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6" +dependencies = [ + "lazy_static", +] + +[[package]] +name = "shlex" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" + +[[package]] +name = "signal-hook-registry" +version = "1.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b" +dependencies = [ + "errno", + "libc", +] + +[[package]] +name = "simd-adler32" +version = "0.3.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e320a6c5ad31d271ad523dcf3ad13e2767ad8b1cb8f047f75a8aeaf8da139da2" + +[[package]] +name = "simd_helpers" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95890f873bec569a0362c235787f3aca6e1e887302ba4840839bcc6459c42da6" +dependencies = [ + "quote", +] + +[[package]] +name = "smallvec" +version = "1.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03" + +[[package]] +name = "socket2" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "17129e116933cf371d018bb80ae557e889637989d8638274fb25622827b03881" +dependencies = [ + "libc", + "windows-sys 0.60.2", +] + +[[package]] +name = "stable_deref_trait" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596" + +[[package]] +name = "syn" +version = "2.0.114" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4d107df263a3013ef9b1879b0df87d706ff80f65a86ea879bd9c31f9b307c2a" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "sync_wrapper" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263" + +[[package]] +name = "thiserror" +version = "2.0.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f63587ca0f12b72a0600bcba1d40081f830876000bb46dd2337a3051618f4fc8" +dependencies = [ + "thiserror-impl", +] + +[[package]] +name = "thiserror-impl" +version = "2.0.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ff15c8ecd7de3849db632e14d18d2571fa09dfc5ed93479bc4485c7a517c913" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "thread_local" +version = "1.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f60246a4944f24f6e018aa17cdeffb7818b76356965d03b07d6a9886e8962185" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "tiff" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af9605de7fee8d9551863fd692cce7637f548dbd9db9180fcc07ccc6d26c336f" +dependencies = [ + "fax", + "flate2", + "half", + "quick-error", + "weezl", + "zune-jpeg 0.4.21", +] + +[[package]] +name = "tokio" +version = "1.49.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72a2903cd7736441aac9df9d7688bd0ce48edccaadf181c3b90be801e81d3d86" +dependencies = [ + "bytes", + "libc", + "mio", + "parking_lot", + "pin-project-lite", + "signal-hook-registry", + "socket2", + "tokio-macros", + "windows-sys 0.61.2", +] + +[[package]] +name = "tokio-macros" +version = "2.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af407857209536a95c8e56f8231ef2c2e2aff839b22e07a1ffcbc617e9db9fa5" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "tokio-util" +version = "0.7.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ae9cec805b01e8fc3fd2fe289f89149a9b66dd16786abd8b19cfa7b48cb0098" +dependencies = [ + "bytes", + "futures-core", + "futures-sink", + "pin-project-lite", + "tokio", +] + +[[package]] +name = "tower" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d039ad9159c98b70ecfd540b2573b97f7f52c3e8d9f8ad57a24b916a536975f9" +dependencies = [ + "futures-core", + "futures-util", + "pin-project-lite", + "sync_wrapper", + "tokio", + "tower-layer", + "tower-service", + "tracing", +] + +[[package]] +name = "tower-http" +version = "0.6.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4e6559d53cc268e5031cd8429d05415bc4cb4aefc4aa5d6cc35fbf5b924a1f8" +dependencies = [ + "bitflags", + "bytes", + "futures-core", + "futures-util", + "http", + "http-body", + "http-body-util", + "http-range-header", + "httpdate", + "mime", + "mime_guess", + "percent-encoding", + "pin-project-lite", + "tokio", + "tokio-util", + "tower-layer", + "tower-service", + "tracing", +] + +[[package]] +name = "tower-layer" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e" + +[[package]] +name = "tower-service" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" + +[[package]] +name = "tracing" +version = "0.1.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100" +dependencies = [ + "log", + "pin-project-lite", + "tracing-attributes", + "tracing-core", +] + +[[package]] +name = "tracing-attributes" +version = "0.1.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "tracing-core" +version = "0.1.36" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a" +dependencies = [ + "once_cell", + "valuable", +] + +[[package]] +name = "tracing-log" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3" +dependencies = [ + "log", + "once_cell", + "tracing-core", +] + +[[package]] +name = "tracing-subscriber" +version = "0.3.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f30143827ddab0d256fd843b7a66d164e9f271cfa0dde49142c5ca0ca291f1e" +dependencies = [ + "matchers", + "nu-ansi-term", + "once_cell", + "regex-automata", + "sharded-slab", + "smallvec", + "thread_local", + "tracing", + "tracing-core", + "tracing-log", +] + +[[package]] +name = "unicase" +version = "2.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75b844d17643ee918803943289730bec8aac480150456169e647ed0b576ba539" + +[[package]] +name = "unicode-ident" +version = "1.0.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9312f7c4f6ff9069b165498234ce8be658059c6728633667c526e27dc2cf1df5" + +[[package]] +name = "v_frame" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "666b7727c8875d6ab5db9533418d7c764233ac9c0cff1d469aec8fa127597be2" +dependencies = [ + "aligned-vec", + "num-traits", + "wasm-bindgen", +] + +[[package]] +name = "valuable" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65" + +[[package]] +name = "wasi" +version = "0.11.1+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" + +[[package]] +name = "wasip2" +version = "1.0.1+wasi-0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0562428422c63773dad2c345a1882263bbf4d65cf3f42e90921f787ef5ad58e7" +dependencies = [ + "wit-bindgen", +] + +[[package]] +name = "wasm-bindgen" +version = "0.2.106" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d759f433fa64a2d763d1340820e46e111a7a5ab75f993d1852d70b03dbb80fd" +dependencies = [ + "cfg-if", + "once_cell", + "rustversion", + "wasm-bindgen-macro", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.106" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "48cb0d2638f8baedbc542ed444afc0644a29166f1595371af4fecf8ce1e7eeb3" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.106" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cefb59d5cd5f92d9dcf80e4683949f15ca4b511f4ac0a6e14d4e1ac60c6ecd40" +dependencies = [ + "bumpalo", + "proc-macro2", + "quote", + "syn", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.106" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cbc538057e648b67f72a982e708d485b2efa771e1ac05fec311f9f63e5800db4" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "weezl" +version = "0.1.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a28ac98ddc8b9274cb41bb4d9d4d5c425b6020c50c46f25559911905610b4a88" + +[[package]] +name = "windows-core" +version = "0.62.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" +dependencies = [ + "windows-implement", + "windows-interface", + "windows-link", + "windows-result", + "windows-strings", +] + +[[package]] +name = "windows-implement" +version = "0.60.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "windows-interface" +version = "0.59.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "windows-link" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" + +[[package]] +name = "windows-result" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-strings" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-sys" +version = "0.60.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb" +dependencies = [ + "windows-targets", +] + +[[package]] +name = "windows-sys" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-targets" +version = "0.53.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4945f9f551b88e0d65f3db0bc25c33b8acea4d9e41163edf90dcd0b19f9069f3" +dependencies = [ + "windows-link", + "windows_aarch64_gnullvm", + "windows_aarch64_msvc", + "windows_i686_gnu", + "windows_i686_gnullvm", + "windows_i686_msvc", + "windows_x86_64_gnu", + "windows_x86_64_gnullvm", + "windows_x86_64_msvc", +] + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a9d8416fa8b42f5c947f8482c43e7d89e73a173cead56d044f6a56104a6d1b53" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9d782e804c2f632e395708e99a94275910eb9100b2114651e04744e9b125006" + +[[package]] +name = "windows_i686_gnu" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "960e6da069d81e09becb0ca57a65220ddff016ff2d6af6a223cf372a506593a3" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa7359d10048f68ab8b09fa71c3daccfb0e9b559aed648a8f95469c27057180c" + +[[package]] +name = "windows_i686_msvc" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e7ac75179f18232fe9c285163565a57ef8d3c89254a30685b57d83a38d326c2" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c3842cdd74a865a8066ab39c8a7a473c0778a3f29370b5fd6b4b9aa7df4a499" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ffa179e2d07eee8ad8f57493436566c7cc30ac536a3379fdf008f47f6bb7ae1" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650" + +[[package]] +name = "wit-bindgen" +version = "0.46.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f17a85883d4e6d00e8a97c586de764dabcc06133f7f1d55dce5cdc070ad7fe59" + +[[package]] +name = "y4m" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a5a4b21e1a62b67a2970e6831bc091d7b87e119e7f9791aef9702e3bef04448" + +[[package]] +name = "zerocopy" +version = "0.8.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "668f5168d10b9ee831de31933dc111a459c97ec93225beb307aed970d1372dfd" +dependencies = [ + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.8.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c7962b26b0a8685668b671ee4b54d007a67d4eaf05fda79ac0ecf41e32270f1" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "zmij" +version = "1.0.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac93432f5b761b22864c774aac244fa5c0fd877678a4c37ebf6cf42208f9c9ec" + +[[package]] +name = "zune-core" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f423a2c17029964870cfaabb1f13dfab7d092a62a29a89264f4d36990ca414a" + +[[package]] +name = "zune-core" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "111f7d9820f05fd715df3144e254d6fc02ee4088b0644c0ffd0efc9e6d9d2773" + +[[package]] +name = "zune-inflate" +version = "0.2.54" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73ab332fe2f6680068f3582b16a24f90ad7096d5d39b974d1c0aff0125116f02" +dependencies = [ + "simd-adler32", +] + +[[package]] +name = "zune-jpeg" +version = "0.4.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29ce2c8a9384ad323cf564b67da86e21d3cfdff87908bc1223ed5c99bc792713" +dependencies = [ + "zune-core 0.4.12", +] + +[[package]] +name = "zune-jpeg" +version = "0.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e35aee689668bf9bd6f6f3a6c60bb29ba1244b3b43adfd50edd554a371da37d5" +dependencies = [ + "zune-core 0.5.0", +] diff --git a/server/Cargo.toml b/server/Cargo.toml new file mode 100644 index 0000000..c67308c --- /dev/null +++ b/server/Cargo.toml @@ -0,0 +1,16 @@ +[package] +name = "server" +version = "1.0.0" +edition = "2024" + +[dependencies] +anyhow = "1.0.100" +axum = "0.8.8" +base64 = "0.22.1" +chrono = "0.4.42" +dotenvy = "0.15.7" +image = { version = "0.25.9", features = ["png"] } +tokio = { version = "1.49.0", features = ["full"] } +tower-http = { version = "0.6.8", features = ["fs", "trace", "cors"] } +tracing = "0.1.44" +tracing-subscriber = { version = "0.3.22", features = ["env-filter", "fmt"] } diff --git a/server/Dockerfile b/server/Dockerfile new file mode 100644 index 0000000..62bf3e1 --- /dev/null +++ b/server/Dockerfile @@ -0,0 +1,44 @@ +# 1. Builder Stage +FROM rust:1.92 AS builder + +WORKDIR /app + +# --- OPTIMIZATION: Dependency Caching --- +# 1. Create a dummy project to cache dependencies +RUN mkdir src +RUN echo "fn main() {}" > src/main.rs + +# 2. Copy manifests +COPY Cargo.toml Cargo.lock ./ + +# 3. Build only dependencies (this layer is cached until Cargo.toml changes) +RUN cargo build --release + +# 4. Now remove dummy source and copy your actual source +# We 'touch' main.rs to ensure Cargo realizes it needs a rebuild +RUN rm -rf src +COPY . . +RUN touch src/main.rs + +# 5. Build the actual application +RUN cargo build --release + +# 2. Runtime Stage +FROM debian:bookworm-slim + +WORKDIR /app + +# Install OpenSSL & CA Certificates +RUN apt-get update && \ + apt-get install -y libssl3 ca-certificates && \ + rm -rf /var/lib/apt/lists/* + +# Copy the binary from builder +# Note: Ensure the binary name matches 'package.name' in Cargo.toml ("server") +COPY --from=builder /app/target/release/server . + +# Documentation for ports +EXPOSE 3000 + +# Run the binary +CMD ["./server"] \ No newline at end of file diff --git a/server/compose.yml b/server/compose.yml new file mode 100644 index 0000000..c9997ca --- /dev/null +++ b/server/compose.yml @@ -0,0 +1,16 @@ +services: + server: + build: . + ports: + - "3000:3000" + volumes: + # MAPPING: [Host Folder] : [Container Folder] + # You can change './party_images' to whatever folder on your laptop you want. + - ./party_images:/app/uploads + environment: + # We FORCE the internal path to match the volume mount above. + # This overrides whatever is in your .env file for safety. + - UPLOAD_DIR=/app/uploads + - SERVER_HOST=0.0.0.0 + - GALLERY_PASSWORD=partytime + restart: unless-stopped diff --git a/server/src/gallery.html b/server/src/gallery.html new file mode 100644 index 0000000..b75db7d --- /dev/null +++ b/server/src/gallery.html @@ -0,0 +1,102 @@ + + + + + + Party Cam Gallery + + + +

📸 Live Party Gallery

+ + + + + diff --git a/server/src/main.rs b/server/src/main.rs new file mode 100644 index 0000000..8cc0379 --- /dev/null +++ b/server/src/main.rs @@ -0,0 +1,183 @@ +use std::{env, net::SocketAddr, path::PathBuf, sync::Arc}; + +use axum::{ + Router, + body::Bytes, + extract::{Path, State}, + http::{StatusCode, header}, + middleware::{self, Next}, + response::{Html, IntoResponse, Response}, + routing::{get, post}, +}; +use base64::Engine; + +use image::{GrayImage, Luma}; +use tower_http::trace::TraceLayer; + +#[derive(Clone)] +struct AppState { + upload_dir: PathBuf, + password: String, +} + +#[tokio::main] +async fn main() -> anyhow::Result<()> { + dotenvy::dotenv().ok(); + tracing_subscriber::fmt() + .with_env_filter(tracing_subscriber::EnvFilter::from_default_env()) + .init(); + + let host = env::var("SERVER_HOST").unwrap_or_else(|_| "0.0.0.0".to_string()); + let port = env::var("SERVER_PORT").unwrap_or_else(|_| "3000".to_string()); + let password = env::var("GALLERY_PASSWORD").expect("GALLERY_PASSWORD must be set"); + let upload_dir = + PathBuf::from(env::var("UPLOAD_DIR").unwrap_or_else(|_| "./uploads".to_string())); + + tokio::fs::create_dir_all(&upload_dir).await?; + let state = Arc::new(AppState { + upload_dir, + password, + }); + + let app = Router::new() + .route("/upload", post(upload_handler)) + .nest("/gallery", protected_routes(state.clone())) + .layer(TraceLayer::new_for_http()) + .with_state(state); + + let addr: SocketAddr = format!("{}:{}", host, port).parse()?; + tracing::info!("🚀 Server running on http://{}", addr); + let listener = tokio::net::TcpListener::bind(addr).await?; + axum::serve(listener, app).await?; + + Ok(()) +} + +fn protected_routes(state: Arc) -> Router> { + Router::new() + .route("/", get(gallery_view)) + .route("/data", get(gallery_data)) + .route("/img/{filename}", get(serve_image)) + .route_layer(middleware::from_fn_with_state(state, basic_auth)) +} + +async fn upload_handler( + State(state): State>, + body: Bytes, +) -> Result { + let timestamp = chrono::Local::now().format("%Y-%m-%d_%H-%M-%S"); + let filename = format!("capture_{}.png", timestamp); + let path = state.upload_dir.join(&filename); + let path_clone = path.clone(); + + tracing::info!("Receiving upload: {} bytes", body.len()); + + tokio::task::spawn_blocking(move || convert_and_save(&body, &path)) + .await + .map_err(|_| StatusCode::INTERNAL_SERVER_ERROR)? + .map_err(|e| { + tracing::error!("Failed to process image: {}", e); + StatusCode::INTERNAL_SERVER_ERROR + })?; + + tracing::info!("Saved: {:?}", path_clone); + Ok(StatusCode::OK) +} + +async fn gallery_view() -> Html<&'static str> { + Html(include_str!("gallery.html")) +} + +async fn gallery_data(State(state): State>) -> impl IntoResponse { + let mut entries = tokio::fs::read_dir(&state.upload_dir).await.unwrap(); + let mut images = Vec::new(); + + while let Ok(Some(entry)) = entries.next_entry().await { + let path = entry.path(); + if let Some(ext) = path.extension() { + if ext == "png" { + if let Some(name) = path.file_name().and_then(|n| n.to_str()) { + images.push(name.to_string()); + } + } + } + } + + images.sort_by(|a, b| b.cmp(a)); + axum::Json(images) +} + +async fn serve_image( + State(state): State>, + Path(filename): Path, +) -> impl IntoResponse { + let path = state.upload_dir.join(&filename); + match tokio::fs::read(&path).await { + Ok(bytes) => ([(header::CONTENT_TYPE, "image/png")], bytes).into_response(), + Err(_) => StatusCode::NOT_FOUND.into_response(), + } +} + +async fn basic_auth( + State(state): State>, + req: axum::extract::Request, + next: Next, +) -> Response { + // Check for "Authorization" header + if let Some(auth_header) = req.headers().get("Authorization") { + if let Ok(auth_str) = auth_header.to_str() { + if auth_str.starts_with("Basic ") { + let payload = &auth_str[6..]; // Remove "Basic " + if let Ok(decoded) = base64::prelude::BASE64_STANDARD.decode(payload) { + if let Ok(cred) = String::from_utf8(decoded) { + if let Some((_user, pass)) = cred.split_once(':') { + if pass == state.password { + return next.run(req).await; + } + } + } + } + } + } + } + + // Return 401 Challenge if auth fails + ( + StatusCode::UNAUTHORIZED, + [(header::WWW_AUTHENTICATE, "Basic realm=\"PartyCam\"")], + "Unauthorized", + ) + .into_response() +} + +fn convert_and_save(data: &[u8], path: &PathBuf) -> anyhow::Result<()> { + // Dimensions from ESP32 code (240x320) + let width = 240; + let height = 320; + + let mut img = GrayImage::new(width, height); + + // Unpack bits + // The ESP32 code: bitmap[y * rowBytes + (x / 8)] |= (1 << (7 - (x % 8))); + // We reverse this logic. + let row_bytes = (width + 7) / 8; + + for y in 0..height { + for x in 0..width { + let byte_index = (y * row_bytes + (x / 8)) as usize; + if byte_index < data.len() { + let byte = data[byte_index]; + let bit = (byte >> (7 - (x % 8))) & 1; + + // 1 = Black (Heat), 0 = White + // In PNG Gray8: 0 = Black, 255 = White. + // So if bit is 1, we want 0 (Black). + let pixel_val = if bit == 1 { 0 } else { 255 }; + img.put_pixel(x, y, Luma([pixel_val])); + } + } + } + + img.save(path)?; + Ok(()) +} diff --git a/src/camera_service.cpp b/src/camera_service.cpp new file mode 100644 index 0000000..79b81c8 --- /dev/null +++ b/src/camera_service.cpp @@ -0,0 +1,85 @@ +#include +#include "camera_service.h" +#include "config.h" + +#define PWDN_GPIO_NUM 32 +#define RESET_GPIO_NUM -1 +#define XCLK_GPIO_NUM 0 +#define SIOD_GPIO_NUM 26 +#define SIOC_GPIO_NUM 27 + +#define Y9_GPIO_NUM 35 +#define Y8_GPIO_NUM 34 +#define Y7_GPIO_NUM 39 +#define Y6_GPIO_NUM 36 +#define Y5_GPIO_NUM 21 +#define Y4_GPIO_NUM 19 +#define Y3_GPIO_NUM 18 +#define Y2_GPIO_NUM 5 +#define VSYNC_GPIO_NUM 25 +#define HREF_GPIO_NUM 23 +#define PCLK_GPIO_NUM 22 + +void CameraService::init() +{ + camera_config_t config; + + config.ledc_channel = LEDC_CHANNEL_0; + config.ledc_timer = LEDC_TIMER_0; + config.pin_d0 = Y2_GPIO_NUM; + config.pin_d1 = Y3_GPIO_NUM; + config.pin_d2 = Y4_GPIO_NUM; + config.pin_d3 = Y5_GPIO_NUM; + config.pin_d4 = Y6_GPIO_NUM; + config.pin_d5 = Y7_GPIO_NUM; + config.pin_d6 = Y8_GPIO_NUM; + config.pin_d7 = Y9_GPIO_NUM; + config.pin_xclk = XCLK_GPIO_NUM; + config.pin_pclk = PCLK_GPIO_NUM; + config.pin_vsync = VSYNC_GPIO_NUM; + config.pin_href = HREF_GPIO_NUM; + config.pin_sscb_sda = SIOD_GPIO_NUM; + config.pin_sscb_scl = SIOC_GPIO_NUM; + config.pin_pwdn = PWDN_GPIO_NUM; + config.pin_reset = RESET_GPIO_NUM; + + config.xclk_freq_hz = 20000000; + + config.pixel_format = PIXFORMAT_GRAYSCALE; + + config.frame_size = FRAMESIZE_QVGA; + + config.jpeg_quality = 12; + config.fb_count = 1; // how many frame buffers (we only care about recent frame) + + if (psramFound()) + { + config.jpeg_quality = 10; + config.fb_count = 2; + } + else + { + // Fallback for non-PSRAM boards (rare for ESP32-CAM) + config.jpeg_quality = 12; + config.fb_count = 1; + } + + esp_err_t err = esp_camera_init(&config); + if (err != ESP_OK) + { + Serial.printf("[ERR] Camera Init Failed: 0x%x\n", err); + return; + } +} + +CameraService::Frame CameraService::capture() +{ + camera_fb_t *fb = esp_camera_fb_get(); + + if (!fb) + { + Serial.println("[ERR] Camera Capture Failed"); + } + + return Frame(fb); +} \ No newline at end of file diff --git a/src/image_processor.cpp b/src/image_processor.cpp new file mode 100644 index 0000000..e2d1c47 --- /dev/null +++ b/src/image_processor.cpp @@ -0,0 +1,137 @@ +#include "image_processor.h" +#include +#include + +void ImageProcessor::processAndPrint(const CameraService::Frame &frame, PrinterService &printer, const AppSettings &settings) +{ + if (!frame.isValid()) + return; + + // 1. Setup Dimensions (Rotate 90 degrees) + // Camera is 320x240 (Landscape) -> Printer is 384 wide (Portrait) + // We will map Camera Height (240) to Printer Width. + // Since 240 < 384, the image will be centered or small. + // If you want full width, we must scale, but rotation is cheaper. + const int width = frame.getHeight(); // 240 + const int height = frame.getWidth(); // 320 + + // 2. Allocate Buffer in PSRAM + // We need int16_t to handle the overflow error during calculation + size_t bufSize = width * height * sizeof(int16_t); + int16_t *pixels = (int16_t *)heap_caps_malloc(bufSize, MALLOC_CAP_SPIRAM); + + if (!pixels) + { + Serial.println("[ERR] PSRAM Alloc Failed"); + return; + } + + // 3. Rotate & Load + const uint8_t *src = frame.getData(); + // Pre-calculate to save cycles in loop + const int srcWidth = frame.getWidth(); + + for (int y = 0; y < srcWidth; y++) + { // 320 (Source Y) + for (int x = 0; x < width; x++) + { // 240 (Source X) + // 90 Deg Rotation Logic + // Dest(x, y) = Src(y, srcWidth - x - 1) + // We are mapping the camera buffer to our Dithering Buffer + uint8_t val = src[x * srcWidth + y]; + pixels[y * width + x] = static_cast(val); + } + } + + // 4. Floyd-Steinberg Dithering + for (int y = 0; y < height; y++) + { + for (int x = 0; x < width; x++) + { + int16_t oldPixel = pixels[y * width + x]; + int16_t newPixel = (oldPixel > 128) ? 255 : 0; + + pixels[y * width + x] = newPixel; + int16_t error = oldPixel - newPixel; + + // Distribute Error (Bit shifting is faster than division) + // Right: 7/16 + if (x + 1 < width) + pixels[y * width + (x + 1)] += (error * 7) >> 4; + + // Bottom-Left: 3/16 + if (y + 1 < height) + { + if (x - 1 >= 0) + pixels[(y + 1) * width + (x - 1)] += (error * 3) >> 4; + + // Bottom: 5/16 + pixels[(y + 1) * width + x] += (error * 5) >> 4; + + // Bottom-Right: 1/16 + if (x + 1 < width) + pixels[(y + 1) * width + (x + 1)] += (error * 1) >> 4; + } + } + } + + // 5. Pack & Print + // We pack 8 pixels into 1 byte. + // The Adafruit library expects a full bitmap array. + // Optimization: We reuse the PSRAM allocation or alloc a smaller one. + + // Row stride must be multiple of 8 + int rowBytes = (width + 7) / 8; + size_t bitmapSize = rowBytes * height; + uint8_t *bitmap = (uint8_t *)heap_caps_calloc(bitmapSize, 1, MALLOC_CAP_SPIRAM); + + if (!bitmap) + { + free(pixels); + return; + } + + for (int y = 0; y < height; y++) + { + for (int x = 0; x < width; x++) + { + if (pixels[y * width + x] == 0) + { // If black + bitmap[y * rowBytes + (x / 8)] |= (1 << (7 - (x % 8))); + } + } + } + + printer.setHeat(settings.heatTime); + printer.wake(); + printer.printBitmap(width, height, bitmap); + printer.feed(3); + printer.sleep(); + + // 6. Cleanup (RAII handled elsewhere, but raw pointers need free) + free(pixels); + free(bitmap); +} + +void ImageProcessor::uploadImage(const uint8_t *bitmap, int size, const String &url) +{ + if (WiFi.status() != WL_CONNECTED) + return; + + HTTPClient http; + http.begin(url); + http.addHeader("Content-Type", "application/octet-stream"); + + int responseCode = http.POST((uint8_t *)bitmap, size); + + if (responseCode > 0) + { + Serial.printf("[Upload] Success: %d\n", responseCode); + } + else + { + Serial.printf("[Upload] Failed: %s\n", http.errorToString(responseCode).c_str()); + } + + http.end(); +} \ No newline at end of file diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..14aea74 --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,73 @@ +#include +#include "camera_service.h" +#include "printer_service.h" +#include "image_processor.h" +#include "settings_service.h" + +const int BUTTON_PIN = 12; // Check your wiring +unsigned long lastDebounceTime = 0; +const unsigned long debounceDelay = 200; + +SettingsService settingsService; + +void applyCameraSettings() +{ + sensor_t *s = esp_camera_sensor_get(); + if (s) + { + AppSettings &cfg = settingsService.get(); + s->set_contrast(s, cfg.contrast); + s->set_brightness(s, cfg.brightness); + s->set_vflip(s, cfg.vFlip ? 1 : 0); + s->set_hmirror(s, cfg.hMirror ? 1 : 0); + } +} + +void setup() +{ + Serial.begin(115200); + Serial.println("Party Cam Starting..."); + + pinMode(BUTTON_PIN, INPUT_PULLUP); + + CameraService::init(); + PrinterService::init(); + + settingsService.begin(); + + applyCameraSettings(); + + Serial.println("System Ready."); +} + +void loop() +{ + + settingsService.handle(); + + if (digitalRead(BUTTON_PIN) == LOW) + { + if ((millis() - lastDebounceTime) > debounceDelay) + { + Serial.println("[State] Capturing..."); + + { + auto frame = CameraService::capture(); + + if (frame.isValid()) + { + Serial.println("[State] Processing & Printing..."); + + ImageProcessor::processAndPrint(frame, PrinterService::getInstance(), settingsService.get()); + } + else + { + Serial.println("[Error] Capture Failed"); + } + } + + Serial.println("[State] Ready."); + lastDebounceTime = millis(); + } + } +} diff --git a/src/printer_service.cpp b/src/printer_service.cpp new file mode 100644 index 0000000..b911e27 --- /dev/null +++ b/src/printer_service.cpp @@ -0,0 +1,60 @@ +#include "printer_service.h" + +PrinterService *PrinterService::instance = nullptr; + +PrinterService::PrinterService() +{ + printerSerial = new HardwareSerial(1); // replace it with not a magic number + printer = new Adafruit_Thermal(printerSerial, Config::PIN_PRINTER_RX); +} + +void PrinterService::init() +{ + if (instance == nullptr) + { + instance = new PrinterService(); + } + + instance->printerSerial->begin(Config::BAUD_RATE, SERIAL_8N1, Config::PIN_PRINTER_RX, Config::PIN_PRINTER_TX); + instance->printer->begin(); +} + +PrinterService &PrinterService::getInstance() +{ + if (!instance) + init(); + return *instance; +} + +void PrinterService::wake() +{ + printer->wake(); +} + +void PrinterService::sleep() +{ + printer->sleep(); +} + +void PrinterService::feed(int lines) +{ + printer->feed(lines); +} + +void PrinterService::printBitmap(int w, int h, const uint8_t *bitmap) +{ + printer->printBitmap(w, h, bitmap); +} + +void PrinterService::printText(const String &text) +{ + printer->println(text); +} + +void PrinterService::setHeat(uint8_t heatTime) +{ + constexpr int heatDots = 11; + constexpr int heatInterval = 50; + + printer->setHeatConfig(heatDots, heatTime, heatInterval); +} \ No newline at end of file diff --git a/src/settings_service.cpp b/src/settings_service.cpp new file mode 100644 index 0000000..f6372ca --- /dev/null +++ b/src/settings_service.cpp @@ -0,0 +1,151 @@ +#include +#include +#include +#include +#include "settings_service.h" + +const char *index_html = R"rawliteral( + + + + Party Cam Config + + + +

Party Cam Settings

+
+
+

Camera

+ + +
+ +
+ +
+

Printer

+ +
+ +
+

Upload (Webhook)

+ + +
+ + +
+ + +)rawliteral"; + +SettingsService::SettingsService() : server(80) {} + +void SettingsService::begin() +{ + // 1. Load saved values + loadSettings(); + + WiFiManager wm; + + wm.setConfigPortalTimeout(180); // 3 minutes + + String apName = "PartyCam-Setup"; + Serial.println("Connecting to WiFi..."); + + if (!wm.autoConnect(apName.c_str())) + { + Serial.println("WiFi failed to connect (Timeout). Starting in Offline Mode."); + } + else + { + Serial.println("WiFi Connected!"); + Serial.print("IP Address: "); + Serial.println(WiFi.localIP()); + + if (MDNS.begin("partycam")) + { + Serial.println("mDNS responder started: http://partycam.local"); + } + } + + // 3. Setup Web Server + setupRoutes(); + server.begin(); +} + +void SettingsService::loadSettings() +{ + prefs.begin("partycam", false); // Namespace "partycam" + currentSettings.contrast = prefs.getInt("contrast", 0); + currentSettings.brightness = prefs.getInt("bright", 0); + currentSettings.vFlip = prefs.getBool("vflip", false); + currentSettings.hMirror = prefs.getBool("hmirror", false); + currentSettings.heatTime = prefs.getInt("heat", 120); + currentSettings.uploadUrl = prefs.getString("url", ""); + currentSettings.enableUpload = prefs.getBool("ena_upload", false); + prefs.end(); +} + +void SettingsService::save() +{ + prefs.begin("partycam", false); + prefs.putInt("contrast", currentSettings.contrast); + prefs.putInt("bright", currentSettings.brightness); + prefs.putBool("vflip", currentSettings.vFlip); + prefs.putBool("hmirror", currentSettings.hMirror); + prefs.putInt("heat", currentSettings.heatTime); + prefs.putString("url", currentSettings.uploadUrl); + prefs.putBool("ena_upload", currentSettings.enableUpload); + prefs.end(); +} + +void SettingsService::setupRoutes() +{ + server.on("/", HTTP_GET, [this]() + { + String html = index_html; + // Simple template replacement + html.replace("%CONTRAST%", String(currentSettings.contrast)); + html.replace("%BRIGHTNESS%", String(currentSettings.brightness)); + html.replace("%VFLIP%", currentSettings.vFlip ? "checked" : ""); + html.replace("%HMIRROR%", currentSettings.hMirror ? "checked" : ""); + html.replace("%HEAT%", String(currentSettings.heatTime)); + html.replace("%URL%", currentSettings.uploadUrl); + html.replace("%UPLOAD%", currentSettings.enableUpload ? "checked" : ""); + server.send(200, "text/html", html); }); + + server.on("/save", HTTP_POST, [this]() + { + if (server.hasArg("contrast")) currentSettings.contrast = server.arg("contrast").toInt(); + if (server.hasArg("brightness")) currentSettings.brightness = server.arg("brightness").toInt(); + if (server.hasArg("heat")) currentSettings.heatTime = server.arg("heat").toInt(); + currentSettings.uploadUrl = server.arg("url"); + + currentSettings.vFlip = server.hasArg("vflip"); + currentSettings.hMirror = server.hasArg("hmirror"); + currentSettings.enableUpload = server.hasArg("upload"); + + save(); + server.send(200, "text/html", "Settings Saved! Go Back"); + + // Apply immediate camera changes if needed + sensor_t *s = esp_camera_sensor_get(); + if (s) { + s->set_contrast(s, currentSettings.contrast); + s->set_brightness(s, currentSettings.brightness); + s->set_vflip(s, currentSettings.vFlip ? 1 : 0); + s->set_hmirror(s, currentSettings.hMirror ? 1 : 0); + } }); +} + +void SettingsService::handle() +{ + server.handleClient(); +} \ No newline at end of file diff --git a/test/README b/test/README new file mode 100644 index 0000000..9b1e87b --- /dev/null +++ b/test/README @@ -0,0 +1,11 @@ + +This directory is intended for PlatformIO Test Runner and project tests. + +Unit Testing is a software testing method by which individual units of +source code, sets of one or more MCU program modules together with associated +control data, usage procedures, and operating procedures, are tested to +determine whether they are fit for use. Unit testing finds problems early +in the development cycle. + +More information about PlatformIO Unit Testing: +- https://docs.platformio.org/en/latest/advanced/unit-testing/index.html