Thanks for your interest. Quick orientation:
crates/paperforge-core/ # lib, MIT
crates/paperforge-cli/ # binary, depends on core
crates/paperforge-tui/ # placeholder
All public APIs live in paperforge-core. Prefer extending the
trait surface (WallpaperBackend) over adding new top-level
functions — it's how additional backends (swww, hyprpaper, mpvpaper)
will plug in.
- Add a variant to
BackendKindincrates/paperforge-core/src/backend.rs. - Implement
WallpaperBackendfor your backend struct. - Add a constructor (
MyBackend::new(), optionallywith_binary()). - Add unit tests covering the trait method happy paths.
- Wire up the CLI subcommand in
crates/paperforge-cli/src/main.rs(or extend an existing subcommand). - Update
README.mdwith the new backend row in the comparison table.
- Add a variant to
Cmdincrates/paperforge-cli/src/main.rs. - Implement the handler in
match cli.cmd. - Add an integration test in
crates/paperforge-cli/tests/cli.rs.
cargo test --all— must pass before any PR.cargo clippy --all-targets --all-features -- -D warnings— must pass before any PR.cargo fmt --all -- --check— must pass before any PR.
By contributing, you agree that your contributions will be licensed
under the MIT License (see LICENSE). Your contribution
must be your own original work.
- Sparse comments in source code (rationale + non-obvious gotchas). Discourse lives in PR descriptions and the module-level docstrings.
- English in code, comments, and PR bodies.
- No unsafe code (
#![forbid(unsafe_code)]is set at the crate root). - Clippy and rustfmt are the source of truth — run them.
<type>(<scope>): <description>
<optional body explaining rationale>
<optional footer>
Types: feat, fix, test, docs, refactor, chore,
perf, style.
- Branch from
master(e.g.feat/swww-backend). - Keep diffs reviewable — < 1500 LOC when possible.
- Sanitize before any push (no secrets, no internal IPs, no absolute paths in commits).
- Open PR. CI must pass.
- Reviewer (operator) approves or requests changes.