Fanalor

Development

Contribute

Issues and pull requests go to Fanalor-Labs/Fanalor-Engine. The rules that keep the tree consistent are in docs/CONVENTIONS.md.

A change

Branch off main. Use feature/, fix/, refactor/, or docs/, then a short topic. Commit with Conventional Commits. The scope is the crate without the fanalor- prefix. The subject is imperative, has no trailing period, and stays within 50 characters.

feat(render): add bloom to the post chain
fix(core): skip redraw while the window is minimised

Before you open the pull request:

cargo fmt --all
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspace

Clippy must be clean. A warning that is genuinely wrong gets an allow with a comment that says why, not a blanket allow on the crate. There is no unwrap() outside tests. Log through the log crate.

Where things live

  • crates/ — one crate per subsystem. fanalor-core owns the window and is the only crate that depends on winit. fanalor-render owns the GPU and is the only crate that depends on wgpu. fanalor-audio owns the device.
  • games/ — sample games. A small, finished game is the easiest place to see how a tick is written.
  • docs/guide/ — the user guide. A command under a <!-- ci --> line is run by cargo xtask guide.
  • docs/ARCHITECTURE.md — why a subsystem is the shape it is. A lasting decision goes there.

What not to add

  • No third-party ECS, scene-graph, or engine-framework crate. The in-house core is the point.
  • No 3D scaffolding. The engine is 2D until there is a 3D design and code for it. Do not add a depth buffer or a z axis “for later”.
  • Dependency versions live only in the workspace Cargo.toml. A member crate uses dep.workspace = true.
  • The workspace root is a virtual manifest. Do not add a src/ there.

The pull request template in .github/ asks for the summary, the design, and what you ran. Fill it in. GPU, editor UI, and audio APIs should be checked against current docs or the vendored crate, not recalled: wgpu 30, winit 0.30, egui 0.35, cpal 0.18, and symphonia 0.6 differ from older tutorials.