Website for the Open Device Partnership, built with Rust, Leptos, and Trunk.
Before running this project, ensure you have the following installed:
-
Rust - Install from https://rustup.rs/
-
Trunk - Build tool for Rust web applications
cargo binstall trunk or cargo install trunk
-
WebAssembly target - Required for compiling to WASM
rustup target add wasm32-unknown-unknown
To run the development server:
trunk serveThis will:
- Build the project in debug mode
- Start a development server at http://127.0.0.1:3000
- Watch for file changes and auto-reload the browser
To build for production:
trunk build --releaseThe optimized output will be generated in the dist/ directory.
src/- Rust source codecomponents/- Reusable UI componentspages/- Page components
style/- CSS files (Tailwind)public/- Static assets (images, etc.)index.html- Main HTML templateTrunk.toml- Trunk configurationCargo.toml- Rust dependencies
- Leptos - Reactive web framework for Rust
- Trunk - WASM web application bundler
- Tailwind CSS - Utility-first CSS framework