wallr is a rust wayland wallpaper engine. Builds require rust 1.90 or newer,
wayland development headers, and FFmpeg development libraries. Static FFmpeg
builds are optional; prepare their toolchain with
scripts/install-static-ffmpeg.sh.
Install the matching packages for your distribution, then run:
cargo fmt --all -- --check
cargo check --workspace --locked
cargo clippy --workspace --all-targets --locked -- -D warnings
cargo test --workspace --locked
cargo build --workspace --release --lockedFor a static-FFmpeg release build, run the helper above and then use the export and cargo commands it prints.
The workspace contains three crates:
wallr-common: shared cli, configuration, effect, and ipc types.wallr-core: daemon, wayland integration, rendering, media, and themes.wallr: thewallrclient andwallr-daemonbinaries.
For performance changes, record the wallr revision, compositor, gpu, driver, display layout, input files, and tool versions. Run benchmarks from a wayland session and do not generalize results beyond the measured setup.
Add tests for behavior at public boundaries and regressions. Keep errors useful, avoid unused dependencies, and preserve configuration and ipc compatibility unless a change is necessary.
New transitions usually require coordinated changes to the shader, effect
type, uniform mapping, and tests. New theme providers need a runner and a
wallr doctor availability check.
Prepare releases on a branch and open a pull request against main:
-
Update the workspace version and internal dependency versions in
Cargo.toml, then regenerateCargo.lockwithcargo check --workspace. -
Match the version in
flake.nix, the crate README dependency examples, the CI version checks, and the publish workflow's default version. -
Add a dated
CHANGELOG.mdentry describing the user-visible changes. -
Refresh Nix inputs with
nix flake update, reviewflake.lock, and runnix flake checkandnix buildon Linux. -
Run the build and test checks above and merge the release pull request.
-
Create and push a release tag from the merged release commit using
v<version>, such asv0.8.12. The version must match the Cargo workspace version and have a matching changelog entry; the release workflow verifies these and that the checkout matches the tag before building binaries. -
Dispatch the separate Publish crates workflow against the same release tag and workspace version, for example:
gh workflow run publish.yml --ref v0.8.12 -f version=0.8.12
Verify that both workflows succeed. The tag-triggered release workflow publishes GitHub release assets; it does not publish crates to crates.io.
Keep failed release tags intact and prepare a new patch version when correcting
release metadata. The release workflow does not check every preparation step,
including the version in flake.nix.
Use a short commit subject that describes the change. Summarize user-visible behavior and link related issues in the pull request. Run formatting, clippy, tests, and relevant runtime checks before requesting review.
contributions are licensed under the mit license.