Contributing Guide
Renzora is open source and welcomes contributions. This page covers the workflow, what a pull request has to pass, and what "done" means here.
Talk to us first. The development chat is on Discord: https://discord.gg/9UHUGUyDJv. It is the quickest place to ask whether an idea fits, get unstuck on a build, or find something to work on.
Code of conduct
Be respectful, constructive and collaborative. Harassment, trolling and unconstructive negativity are not tolerated.
The workflow
- Fork the engine repository and branch from
mainwith a descriptive name (fix-spotlight-shadow,add-cylinder-collider). - Build it natively: see Building from Source.
- Make the change, following Code Style.
- Test it, per crate natively and the way CI does: see Testing.
- Update the docs and the release notes in the same change (below).
- Push and open a pull request against
main.
git clone https://github.com/YOUR_USERNAME/engine.git
cd engine
git checkout -b fix-spotlight-shadow
cargo renzora dist # build and stage dist/<platform>/
# ... make the change ...
cargo fmt
cargo clippy --profile dist -p renzora_lighting
cargo test --profile dist -p renzora_lighting
git commit -m "fix(lighting): update spotlight shadow when range changes"
git push origin fix-spotlight-shadow
Every cargo command takes --profile dist. A bare cargo build, check, clippy or test builds the dev profile and a second full artefact tree, which this workspace is too large for. A full disk then shows up as compile errors in crates you never touched. See the dist profile.
You do not need Docker. Docker is for cross-compiling and for reproducing CI exactly (renzora check, renzora test); see Cross-Compiling.
Using AI
You are welcome to use an AI assistant. In exchange you audit every line you submit, prove it works with tests, and name the model and version in an Assisted-by: commit trailer. Read the AI Policy before opening your first AI-assisted pull request.
What "done" means
A change is finished when all of these are true:
- It builds and passes CI. CI denies every clippy warning and runs the workspace tests; see what CI runs.
- It has tests, where the module can be tested; a bug fix ships with a regression test.
- The docs are updated. A feature without its
docs/r1-alpha8/update is unfinished. A new scripting function, inspector field, plugin capability or editor panel updates its page in the same change. Only editdocs/r1-alpha8/: older versions are released and frozen. - It has a release-notes line. Every feature and every fix adds one short sentence to
RELEASE_NOTES.mdunder a timestamped heading. See Release notes. - The plugin wiring is regenerated, if you added or changed a plugin table. Any
cargo renzorabuild does it; commit the generatedplugins.rsfiles.
Docs under docs/r1-alpha8/ publish to renzora.com automatically when they reach main; you never copy anything by hand. A new page also needs an entry in docs/r1-alpha8/_sidebar.json.
What to contribute
| Area | Where to start |
|---|---|
| Bug fixes | The issue tracker |
| Documentation | Markdown under docs/r1-alpha8/ |
| Engine features | A crate in crates/ with a plugin table; see Plugins and Project Structure |
| Editor panels | Editor Panels |
| Scripting functions | Declared from the owning crate with ScriptExtension; see Script Extensions |
| Post-process effects | Post-Processing |
| Export targets | The platform lanes in docker/build-all.sh; see Cross-Compiling |
Something optional or standalone (an integration, a tool, a niche feature) usually belongs in a native plugin published to the Marketplace rather than in the engine.
Two areas need the maintainer: never edit anything under bevy/ (it is Bevy's own source, and only the maintainer updates or patches it), and never add a crates.io dependency on anything built on Bevy (it goes in vendor/ instead). If a change seems to need either, say so in the issue.
Pull requests
- Open an issue first for anything non-trivial, so the approach can be agreed before you invest in it.
- One concern per pull request. Do not mix a fix with a feature or a refactor, and do not reformat code you did not change.
- Say why, not just what, in the description.
- During review, push more commits rather than force-pushing.
Checklist
- [ ]
cargo fmtapplied, no unrelated formatting changes - [ ]
cargo clippy --profile distclean for the crates you touched (CI denies warnings) - [ ] Tests pass for the crates you touched, and new tests cover new behaviour
- [ ]
docs/r1-alpha8/updated if behaviour or APIs changed - [ ] A line in
RELEASE_NOTES.mdfor every feature and fix - [ ] Regenerated
plugins.rscommitted if a plugin table changed - [ ] AI assistance audited and disclosed with an
Assisted-by:trailer - [ ] No em dashes or en dashes used as punctuation, anywhere
Commit messages
Conventional Commits: type(scope): subject, imperative mood, no trailing period. The types in use are feat, fix, perf, refactor, docs, test, chore, ci, build and security; the scope is optional and names the area.
fix(render): stop building ray tracing structures for meshes while Solari is off
perf(physics): stop visiting static bodies and unchanged colliders every frame
feat(profiler): name parallel queries for what they iterate
The subject says what changed. The reasoning (the cause, the measurements, what was tried) belongs in the commit body and the doc-comments.
Reporting issues
Search existing issues first. For a bug, include:
- Steps to reproduce, and expected versus actual behaviour.
- Environment: OS, GPU, the release you downloaded (for example
r1-alpha8-nightly-26nov26), or the commit andrustc --versionif you built from source. - Run mode: editor, shipped game, or the binary launched with
--server,--hostor--vr. They are all the samerenzorabinary, so name the mode. - Crash logs: the editor writes
~/.renzora/crashes/last_crash.txt; a shipped game appends tocrash.logbeside the executable.
License
The engine is dual-licensed under MIT OR Apache-2.0 (LICENSE-MIT and LICENSE-APACHE at the repository root). By contributing you agree your contributions are licensed under the same terms, without additional conditions.