Grabbit
  1. Home
  2. Contributing

Contribute to Grabbit

Bug reports, ideas and pull requests are all welcome. Everything happens in the open on GitHub.

Getting set up

You need Windows 10 or 11 and Rust stable 1.98 or later (the MSVC toolchain). A release build (tools/installer/build.ps1) also needs CMake, NASM and LLVM's libclang (winget install Kitware.CMake NASM.NASM LLVM.LLVM, or LIBCLANG_PATH set to a folder with libclang.dll): it turns on the engine's browser-like connection (browser-connection), built on BoringSSL from source. Everyday builds and tests leave it out.

cargo build
cargo run -p grabbit-app

To try changes without touching your own downloads, give the app a separate data folder:

set GRABBIT_DATA_DIR=C:\some\empty\folder
cargo run -p grabbit-app

cargo run -p grabbit-labserver -- --faults "rate=2M" starts a local test server that serves generated files with whatever trouble you ask for (slow connections, cuts, busy answers, no ranges; GET / lists them), so downloads can be tested without the internet.

Branches

Before you open a pull request

Run these yourself before a pull request merges, or before you push to dev: GitHub's CI runs only the quick ones (the extension's tests and packages, the old-name check, the pictures' list and the upstream-sync tool's tests, about a minute, on pull requests into main), never the Rust build. Each works on a clean clone:

cargo fmt --all --check
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspace
node tools/extension/test.mjs
python tools/upstream-sync/test_sync.py
python tools/rename/check.py --done

Keep changes focused and match the code around them. A few rules hold everywhere:

Languages

Grabbit, its installer, the browser extension and the website are in English only. The translations (86 languages), the language picker and the translation tools are kept on the archive/multiplatform-i18n branch.

Reporting problems

Use Help → Report a problem in the app: it opens the bug report form with your version, system and how Grabbit was installed filled in. The form asks for the same when you open it yourself. Security problems: see SECURITY.md.

Pull requests are accepted under the project's licence, the GNU GPL, version 3 or later.