WendyOS Docs
Guides & TutorialsRust Guides

Camera Feed in Rust

Start a live camera feed app on WendyOS using the Rust camera template

Live Camera Feed with Rust

Use the Wendy camera template when you want a browser-viewable camera stream without wiring the project from scratch. The template includes wendy.json, camera entitlements, a Dockerfile, Rust backend code, and the browser UI.

Prerequisites

  • Wendy CLI installed on your development machine
  • Rust 1.83 or later installed
  • A WendyOS device with a USB camera connected

Setting Up Your Project

Initialize the Project

wendy init rust-camera --target wendyos --language rust --template camera-feed --var APP_ID=rust-camera --var PORT=4003 --assistant skip --git-init no
cd rust-camera

The generated project is ready to run. After the first run, use the sections below as a code breakdown when you want to understand or customize camera handling, routes, or UI behavior.

Run on WendyOS

wendy run

Wendy will build the app, ask you to select a device if one is not already configured, deploy the container, and print the app URL.

Code Breakdown

Open the app URL from the Wendy run output to view the stream.

On this page