A simple program to calculate the teeth on a gear given the other gear and a fixed transmission ratio, or the ratio from two gears. Written in Rust using egui with eframe template.
You can run the app natively using cargo run
or compile it to WASM and use Trunk to view it as a web page.
To build for web target:
- Install the required target with
rustup target add wasm32-unknown-unknown
. - Install Trunk with
cargo install --locked trunk
. - Run
trunk serve
to build and serve onhttp://127.0.0.1:8080
. Trunk will rebuild automatically if you edit the project. - Open `http://127.0.0.1:8080/index.html in a browser.