r/IndoorCycling • u/Dingelbert • 2h ago
rustbike
Hey everyone,
I wanted to share a personal open-source project I've been working on: rustbike (GitHub).
The Motivation
Most indoor cycling platforms require expensive monthly subscriptions, and native Linux support is either nonexistent or relies on clunky workarounds. I just wanted a lightweight, native desktop application to connect to my smart trainer on Linux, ride virtual tracks, and track my workouts – without recurring fees or vendor lock-in.
What it does
- Smart Trainer Control: Connects to Bluetooth (FTMS) smart trainers to read power/cadence data and control resistance based on track elevation/gradient.
- Subscription-Free Riding: Load and ride routes locally without needing an account or cloud subscription.
- Workout Tracking & Export: Record your sessions and export standard activity files (FIT/TCX) for platforms like Strava or local analysis.
- Cross-Platform & Native: Built with Linux (including Wayland) as a first-class citizen, while also running natively on Windows and macOS.
Tech Stack & AI-Assisted Development
- Language: Rust
- GUI:
egui/eframefor a fast, lightweight, immediate-mode interface - Hardware / BLE: Native Bluetooth Low Energy communication for trainer telemetry and resistance control
Full transparency: Like some of my other recent tools, rustbike was heavily built with the help of AI coding assistants. Using LLMs allowed me to rapidly prototype the egui interface, navigate the Bluetooth FTMS protocol specs, and iterate quickly while testing directly against real smart trainer hardware on Linux.
Download & Feedback
You can check out the project and grab the releases on rustbike.com or dive straight into the source code on GitHub.
Since smart trainer protocols and BLE implementations across Linux distros can have their quirks, I'd love to hear from anyone testing it on different hardware setups (Wahoo, Tacx, Elite, etc.) or Linux environments. Bug reports, feature ideas, and PRs are very welcome!