Running your game locally is very simple:
- Use
cargo run
to run a native dev build. - Use
trunk serve
to run a web dev build.
If you're using VS Code, this template comes with a .vscode/tasks.json
file.
Run release builds
- Use
cargo run --profile release-native --no-default-features
to run a native release build. - Use
trunk serve --release --no-default-features
to run a web release build.
(Optional) Improve your compile times
.cargo/config_fast_builds.toml
contains documentation on how to set up your environment to improve compile times.
After you've fiddled with it, rename it to .cargo/config.toml
to enable it.
This template uses GitHub workflows to run tests and build releases. See Workflows for more information.