Contributing
Bug reports, translations, documentation and code are welcome.
Report a bug or request a feature
Open an issue. For bugs, follow Reporting a bug.
Set up a development environment
You need Nix with flakes.
git clone https://github.com/FapLandPartyDev/RustyFunPlayer
cd RustyFunPlayer
nix develop # pinned Rust and native libraries
cargo run --locked --bin rustyfunplayer
With direnv, run direnv allow once. The shell also installs Git hooks (prek): formatting and lints before each commit, Clippy and tests before each push.
Repository layout
| Path | Contents |
|---|---|
crates/rfp-core | Script parsing, motion, TCode. No UI. |
crates/rfp-adapters | Sources, outputs, inputs, libraries. |
crates/rfp-ui | GPUI app and settings. |
crates/rfp-detect | Game, app and device detector, IVE bridge. |
crates/rfp-ui/locales | Translations (Fluent). |
nix/ | Package, NixOS and Home Manager modules. |
website/ | This documentation. |
docs/ | Technical and protocol notes. |
Before you open a pull request
Run prek run --all-files (formatting, Clippy, tests). Commit messages follow Conventional Commits, such as fix(serial): retry after a port reset. Also:
- Put user-facing text in the Fluent files of every language under
crates/rfp-ui/localesand read it withcrate::i18n::tr(). - Make new settings work through
programs.rustyfunplayer.settings(NixOS and Home Manager). - Keep behavior from the original MultiFunPlayer exactly; tests compare against it.
The full list of checks is in docs/ENGINEERING.md.
Translate
Each language is a folder in crates/rfp-ui/locales (en, zh-Hans).
- Improve a translation: edit the
.ftlfiles of that language. - Add a language: copy
en/to a new folder named by its language tag (for examplefr), translate the values, and keep the message IDs and{ $variables }unchanged. Setlanguage-nameincommon.ftlto the language’s own name. The build picks up the new folder automatically; comments above messages explain each variable.
Test it with LANG=fr_FR.UTF-8 cargo run --bin rustyfunplayer, or pick it in Settings → General → Language.
Improve this documentation
The site is built with mdBook from website/.
nix run nixpkgs#mdbook -- serve website --open
Pages are Markdown in website/src; the menu is website/src/SUMMARY.md. Keep pages short: steps, tables, one screenshot where it helps. Screenshots go in website/src/images as PNG, dark theme, without personal paths or names. Every page has an edit link at the top.
License
Contributions are licensed under AGPL-3.0-or-later.