Contributing to LemonUp
Local Development
LemonUp is a Rust workspace. The TUI is built with Ratatui and the CLI with clap.
Prerequisites
- Rust: The toolchain version is pinned in
mise.toml. With mise installed, runmise installin the repository to get it (1.94.1 at the time of writing). CI (the Test and Release workflows) pins the same version. - lefthook (optional): Runs the pre-commit checks described below.
Setup
Clone the repository:
bashgit clone https://github.com/archcorsair/lemonup.git cd lemonupBuild:
bashcargo build -p lemonup-app --bin lemonupRun:
bashcargo run -p lemonup-app --bin lemonupPass arguments after
--, for examplecargo run -p lemonup-app --bin lemonup -- check.
Use a separate profile
To keep your real addons safe while testing, run with a throwaway profile and point it at a test AddOns folder: cargo run -p lemonup-app --bin lemonup -- --profile dev tui
Project Structure
crates/lemonup-core/: Shared logic with no UI: configuration and file locations, addon scanning, SQLite state, import/export, WoW path detection, and the v1 migration.crates/lemonup-app/: Thelemonupbinary: CLI commands, the Ratatui TUI, the addon source clients (GitHub, TukUI, WoWInterface, Wago.io), updates, and backups of game settings (the WTF folder).docs/manual-testing.md: How to test against a sandbox.
The screenshots on this site are generated with scripts/screenshots/generate.sh in the app repository (scripts/screenshots).
Validation
Run these before submitting a PR:
cargo fmt --all
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspaceCI runs the same checks (with cargo fmt --all --check). Release builds (cargo build --release) produce stripped binaries.
Pre-commit Hooks
The repository includes a lefthook config. After running lefthook install, every commit runs:
cargo fmt --all --checkcargo clippy --workspace --all-targets -- -D warningscargo test --workspace
Coding Standards
- Formatting: Code is formatted with
rustfmt(cargo fmt --all). - Lints: Clippy warnings are treated as errors.
- Tests: Add or update tests alongside your changes.
- Logging: Use
tracingfor meaningful events instead of printing. - Scope: Keep changes minimal and focused.
Pull Request Process
- Check Issues: See if there's already an issue for what you want to work on. If not, open one!
- Branch: Create a feature branch from
main. - Commits: Use conventional commits.
- Docs: If you're adding a feature, update the documentation in the
lemonup.orgrepository as well. - PR: Submit your PR to the
mainbranch. Provide a clear description of your changes.
Need Help?
Open a discussion on GitHub.
