This is the world's first template that includes everything — VSCode Recommended Extensions, GitHub Actions for CI, Lefthook, and rstest — for comprehensive Rust and Bevy engine projects.
Follow these steps to set up your development environment:
Ensure you have the latest version of Rust installed. Then, clone this repository and navigate into it:
git clone https://github.com/your_username/bevy_template.git
cd bevy_template
Install the required dependencies and compile the project:
cargo build
This project includes recommended VSCode settings and extensions to enhance your development experience. Open the project in VSCode, and you'll be prompted to install the recommended extensions.
We use GitHub Actions for CI to ensure code quality and run tests automatically with each push and pull request. Check the .github/workflows directory for the CI configuration.
Lefthook is configured for this project to run pre-commit hooks that include formatting and linting checks. Install Lefthook globally and set up the git hooks:
lefthook install
rstest
is used for concise and readable tests
. See the tests directory for examples on how to write your tests using rstest
.
To generate test coverage reports, run:
cargo llvm-cov --open
Open in your browser to view the coverage report.
- Setup GitHub Repository: Guidelines for initializing and configuring your GitHub repository can be found in
docs/setup_github_repository.md.
- Setup Branch Protection: To ensure code quality and stability, follow the branch protection setup in
docs/setup_branch_protection.md.
We welcome contributions! Please read CONTRIBUTING.md
for more information on how to get involved.
This project is licensed under MIT License and Apache License (Version 2.0).
See LICENSE-MIT and LICENSE-APACHE for details.