Skip to content
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
39 changes: 14 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,26 @@ name: Continuous Integration
on:
push:
branches:
- master
- master
pull_request:

jobs:
ci:
strategy:
fail-fast: false
matrix:
rust: ['1.71.1', 'stable', 'beta']
rust: ["1.86", "stable", "beta"]
runs-on: ubuntu-latest

steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Cargo cache
uses: actions/cache@v4
with:
path: ~/.cargo
key: cargo-${{ matrix.rust }}
uses: actions/checkout@v6

- name: Rust toolchain
uses: hecrj/setup-rust-action@v2
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
rust-version: ${{ matrix.rust }}
toolchain: ${{ matrix.rust }}
rustflags: ""

- name: Install system dependencies
run: sudo apt-get install libxkbcommon-dev libwayland-dev
Expand All @@ -42,23 +37,18 @@ jobs:
strategy:
fail-fast: false
matrix:
rust: ['stable', 'beta']
rust: ["stable", "beta"]
runs-on: ubuntu-latest

steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Cargo cache
uses: actions/cache@v4
with:
path: ~/.cargo
key: cargo-${{ matrix.rust }}
uses: actions/checkout@v6

- name: Rust toolchain
uses: hecrj/setup-rust-action@v2
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
rust-version: ${{ matrix.rust }}
toolchain: ${{ matrix.rust }}
rustflags: ""

- name: Update system repositories
run: sudo apt-get update
Expand All @@ -80,14 +70,13 @@ jobs:

steps:
- name: Checkout sources
uses: actions/checkout@v2
uses: actions/checkout@v6

- name: Rust toolchain
uses: hecrj/setup-rust-action@v2
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy
rustflags: ""

- name: Cargo fmt
run: cargo fmt --all -- --check
Expand Down
22 changes: 6 additions & 16 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Deploy Docs to GitHub Pages
on:
push:
branches:
- master
- master

jobs:
doc:
Expand All @@ -12,34 +12,24 @@ jobs:

steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Cargo cache
uses: actions/cache@v1
with:
path: ~/.cargo
key: cargo-stable
uses: actions/checkout@v6

- name: Rust toolchain
uses: actions-rs/toolchain@v1
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
override: true
rustflags: ""

- name: Install system dependencies
run: sudo apt-get install libxkbcommon-dev libwayland-dev

- name: Build Documentation
uses: actions-rs/cargo@v1
with:
command: doc
args: --no-deps
run: cargo doc --no-deps

- name: Setup index
run: cp ./doc_index.html ./target/doc/index.html

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./target/doc
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ documentation = "https://smithay.github.io/client-toolkit"
repository = "https://github.com/smithay/client-toolkit"
license = "MIT"
edition = "2021"
rust-version = "1.71.1"
rust-version = "1.86"
categories = ["gui"]
keywords = ["wayland", "client"]
description = "Toolkit for making client wayland applications."
Expand Down
2 changes: 1 addition & 1 deletion src/data_device_manager/data_offer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ impl DragOffer {
if !self.left || self.dropped {
receive(&self.data_offer, mime_type)
} else {
Err(std::io::Error::new(std::io::ErrorKind::Other, "offer has left"))
Err(std::io::Error::other("offer has left"))
}
}

Expand Down
4 changes: 1 addition & 3 deletions src/shm/raw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,12 +235,10 @@ impl RawPool {

#[cfg(target_os = "linux")]
fn create_memfd() -> rustix::io::Result<OwnedFd> {
use std::ffi::CStr;

use rustix::fs::{MemfdFlags, SealFlags};

loop {
let name = CStr::from_bytes_with_nul(b"smithay-client-toolkit\0").unwrap();
let name = c"smithay-client-toolkit";
let flags = MemfdFlags::ALLOW_SEALING | MemfdFlags::CLOEXEC;

match rustix::fs::memfd_create(name, flags) {
Expand Down