Skip to content

Contributing

Simdrom edited this page Nov 27, 2026 · 1 revision

Contributing

Branches

Branch What it holds How it moves
develop The default branch; work happens here Pull requests, which must pass Format, Clippy and tests, and Workflow lint
main What is published Only through the Release workflow
v* tags Published versions Created by the release; never change

Work on a branch of your own and open a pull request against develop. Branches are deleted on merge.

After cloning, turn on the local guard that stops slips on main, develop and version tags:

git config core.hooksPath .githooks

The same rules exist on GitHub as rulesets: see CI and releases.

Commit messages

Commits follow Conventional Commits, because the release notes are built from them (git cliff):

Prefix Shown in the release notes as
feat: New
fix: Fixed
perf: Faster
refactor!: Changed
ci:, chore:, docs:, test:, refactor: … Not shown

A scope names the area: feat(lists): …, fix(login): ….

The changelog users read

crates/setup/whats-new.txt is the changelog for users. The setup shows it when it updates an older Kuro, and the GitHub release starts with its English lines.

  • Its first section is always the version in Cargo.toml: the next release.
  • A change users will notice adds one short line there, in the same commit, in the user's words, not a commit message.
  • Each line has all seven languages, split by |: en | es | fr | de | it | nb | ko. French and German say vous and Sie.
  • Tests check the file's shape. CI warns when feat or fix commits leave it untouched. A release refuses an empty section.

Translations

Every text of the interface is in crates/app/src/strings.txt, one row per text, in the same seven languages. A new text needs its full row, or the i18n test fails.

Tests

cargo test --workspace
cargo clippy --workspace --all-targets -- -D warnings
cargo fmt --all --check
Command What it does
cargo test -p kuro-api --test live -- --ignored Talks to the real AniList. With KURO_KIOKU_ETP_RT, Crunchyroll too; with KURO_KIOKU_NETFLIX_CSV or KURO_KIOKU_AMAZON_FILE, a real history file
cargo test -p kuro --test shots -- --ignored --test-threads=1 Renders every screen to target/shots
cargo test -p kuro --test shots readme -- --ignored Renders the README pictures into docs/screenshots

The screenshots are rendered by the tests from invented titles, so no cover art appears.

Live tests use your own sessions or files through environment variables; never commit them.

Code rules

  • unsafe is forbidden in every crate, except the setup's shortcuts (crates/setup/src/win.rs).
  • Clippy runs with -D warnings; clippy.toml and rustfmt.toml hold the project's settings.
  • New dependencies must pass cargo deny check (advisories, licences and sources, see deny.toml). An accepted licence must also be added to about.toml.
  • Kioku parsers are built from a real export of the platform, never from a guessed format.

Dependencies

Dependabot opens one pull request a week for compatible Cargo updates (major versions one by one) and one for GitHub Actions, after a seven-day cooldown. Actions are pinned by commit.

Reporting bugs and vulnerabilities

Bugs: open an issue with the Kuro and Windows versions and the steps. Vulnerabilities: privately, as described in Privacy and security.

Clone this wiki locally