Skip to content

Tesla car app clone built with Rust and [egui]. This project is an experiment to explore multi-platform development (Android, WASM, Native) and the use of egui for animation needs.

Notifications You must be signed in to change notification settings

jay009id/animated-tesla-car-using-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Egui Tesla App

Tesla app implementation using Rust and egui.
This project is an experiment to replicate the animations and interactions of the Tesla app originally built with Flutter (see references below).

⚠️ Note: The code is still in an early stage and contains several bugs. The main purpose of this project is to explore and learn about Rust + egui across different platforms, especially as an exploration of using egui for animation needs.

✅ Currently, the app runs fine on Linux (Ubuntu) and Android.
⚠️ On WASM, animations are not working properly due to limitations in using std::time with WebAssembly.

Demo

Preview

Android

Built using xbuild

Building

x build --arch arm64 --platform android --release

Running

x run --device <DEVICE>

Example

$ x devices
host                                              Linux               linux x64           Arch Linux 6.6.2-arch1-1
adb:d535946                                       OnePlus5T           android arm64       Android 10 (API 29)
$ x run --device adb:d535946

WASM

Building

cargo build --target=wasm32-unknown-unknown

Running

trunk serve --port 9999 --release

⚠️ Note: Animations are currently broken on WASM because std::time is not fully supported in WebAssembly. Further investigation is needed (e.g., using wasm-bindgen or gloo_timers).

Native

Building

cargo build

Running

cargo run --release

References & Acknowledgements

This project was inspired by the work of Abu Anwar.

📹 Flutter Tesla App video tutorials:

💻 Flutter source code: Animated-Tesla-Car-App-using-Flutter

Some of the .svg files in this project were taken (with minor modifications) from the above repository. Special thanks to Abu Anwar for providing such a great learning resource 🙏.

Status

  • ✅ Multi-platform build (Android, WASM, Native)
  • ✅ Runs fine on Linux (Ubuntu) and Android
  • ⚠️ WASM: animations are not working properly (std::time issue)
  • ⚠️ Animations and interactions are not yet complete
  • 🐞 Several bugs remain to be fixed

About

Tesla car app clone built with Rust and [egui]. This project is an experiment to explore multi-platform development (Android, WASM, Native) and the use of egui for animation needs.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published