Skip to content

sinproject-iwasaki/bevy_template

Repository files navigation

bevy_template

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.

Getting Started

Follow these steps to set up your development environment:

Setup Bevy

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

Setup VSCode

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.

Continuous Integration (CI)

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.

Setup Lefthook

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

Setup rstest

rstest is used for concise and readable tests. See the tests directory for examples on how to write your tests using rstest.

Test Coverage

To generate test coverage reports, run:

cargo llvm-cov --open

Open in your browser to view the coverage report.

Documentation

  • 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.

Contributing

We welcome contributions! Please read CONTRIBUTING.md for more information on how to get involved.

License

This project is licensed under MIT License and Apache License (Version 2.0).

See LICENSE-MIT and LICENSE-APACHE for details.

About

No description, website, or topics provided.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published