Skip to content

Use waybackend for our wayland code #410

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
May 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: mozilla-actions/[email protected].3
- uses: mozilla-actions/[email protected].9
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- run: sudo apt install -y libwayland-dev wayland-protocols
- run: cargo clippy --version
- run: cargo clippy --workspace --locked --tests

fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: mozilla-actions/[email protected].3
- uses: mozilla-actions/[email protected].9
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: mozilla-actions/[email protected].3
- uses: mozilla-actions/[email protected].9
- uses: dtolnay/rust-toolchain@stable
- uses: taiki-e/install-action@cargo-deny
- run: cargo deny check advisories
Expand All @@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: mozilla-actions/[email protected].3
- uses: mozilla-actions/[email protected].9
- uses: dtolnay/rust-toolchain@stable
- uses: taiki-e/install-action@cargo-deny
- run: cargo deny check bans
Expand All @@ -31,7 +31,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: mozilla-actions/[email protected].3
- uses: mozilla-actions/[email protected].9
- uses: dtolnay/rust-toolchain@stable
- uses: taiki-e/install-action@cargo-deny
- run: cargo deny check licenses
Expand All @@ -40,7 +40,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: mozilla-actions/[email protected].3
- uses: mozilla-actions/[email protected].9
- uses: dtolnay/rust-toolchain@stable
- uses: taiki-e/install-action@cargo-deny
- run: cargo deny check sources
9 changes: 6 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,29 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: mozilla-actions/[email protected].3
- uses: mozilla-actions/[email protected].9
- uses: dtolnay/rust-toolchain@nightly
- uses: taiki-e/install-action@cargo-nextest
- run: sudo apt install -y libwayland-dev wayland-protocols
- run: cargo build --workspace --locked --verbose
- run: cargo nextest run --workspace --locked

stable:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: mozilla-actions/[email protected].3
- uses: mozilla-actions/[email protected].9
- uses: dtolnay/rust-toolchain@stable
- uses: taiki-e/install-action@cargo-nextest
- run: sudo apt install -y libwayland-dev wayland-protocols
- run: cargo build --workspace --locked --verbose
- run: cargo nextest run --workspace --locked

msrv:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: mozilla-actions/[email protected].3
- uses: mozilla-actions/[email protected].9
- uses: SebRollen/[email protected]
id: msrv
with:
Expand All @@ -43,5 +45,6 @@ jobs:
with:
toolchain: ${{ steps.msrv.outputs.value }}
- uses: taiki-e/install-action@cargo-nextest
- run: sudo apt install -y libwayland-dev wayland-protocols
- run: cargo build --workspace --locked --verbose
- run: cargo nextest run --workspace --locked
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
target/*
completions/*
test_images/*
tests/test_images/*
# Nix
result
109 changes: 66 additions & 43 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
[workspace]
# cargo complains that this defaults to one in virtual package manifests (for some reason)
resolver = "2"
members = ["client", "daemon", "common"]
members = ["client", "daemon", "common", "tests"]
default-members = ["client", "daemon"]

[workspace.package]
version = "0.9.5-masterV3"
authors = ["Leonardo Gibrowski Faé <[email protected]>"]
edition = "2021"
license-file = "LICENSE"
rust-version = "1.82"
rust-version = "1.85"

[workspace.dependencies]
common = { path = "common" }
Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@

## Dependencies

- a compositor that implements:
* wlr-layer-shell (typically wlroots based compositors)
* xdg-output
- a compositor that implements the wlr-layer-shell (typically wlroots based compositors)
- [lz4](https://github.com/lz4/lz4) (for compressing frames when animating)

**Note that this means `swww` will not run on Gnome, because it does not implement the `wlr-layer-shell` protocol**.
Expand All @@ -21,7 +19,8 @@

### Dependencies:

- Up to date stable rustc compiler and cargo (specifically, MSRV is 1.82.0)
- wayland-client and wayland-protocol `.xml` files installed in your system (`pkg-config` must be able to find it)
- Up to date stable rustc compiler and cargo (specifically, MSRV is 1.82.0)

To build, clone this repository and run:
```
Expand Down
Loading
Loading