Skip to content

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, run mise install in the repository to get it. CI uses the same version
  • lefthook (optional): Runs the pre-commit checks described below

Setup ​

  1. Clone the repository:

    bash
    git clone https://github.com/archcorsair/lemonup.git
    cd lemonup
  2. Build:

    bash
    cargo build -p lemonup-app --bin lemonup
  3. Run:

    bash
    cargo run -p lemonup-app --bin lemonup

    Pass arguments after --, for example cargo 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/: The lemonup binary: 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:

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

CI 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 --check
  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo 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 tracing for meaningful events instead of printing
  • Scope: Keep changes minimal and focused

Pull Request Process ​

  1. Check Issues: See if there's already an issue for what you want to work on. If not, open one
  2. Branch: Create a feature branch from main
  3. Commits: Use conventional commits
  4. Docs: If you're adding a feature, update the documentation in the lemonup.org repository as well
  5. PR: Open your PR against main. Say what changed and why

Getting Help ​

Open a discussion on GitHub.

Released under the MIT License.