Repository navigation
Contributing
| 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 .githooksThe same rules exist on GitHub as rulesets: see CI and releases.
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): ….
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
featorfixcommits leave it untouched. A release refuses an empty section.
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.
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.
-
unsafeis forbidden in every crate, except the setup's shortcuts (crates/setup/src/win.rs). - Clippy runs with
-D warnings;clippy.tomlandrustfmt.tomlhold the project's settings. - New dependencies must pass
cargo deny check(advisories, licences and sources, seedeny.toml). An accepted licence must also be added toabout.toml. - Kioku parsers are built from a real export of the platform, never from a guessed format.
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.
Bugs: open an issue with the Kuro and Windows versions and the steps. Vulnerabilities: privately, as described in Privacy and security.
Kuro is an independent project, not affiliated with AniList, MyAnimeList or any streaming platform. · Repository · Releases · Report a vulnerability