From 9f1fdc6ed017533ca151e33d322cc945d00c11c5 Mon Sep 17 00:00:00 2001 From: Mads Marquart Date: Mon, 13 Apr 2026 19:56:28 +0200 Subject: [PATCH 1/4] Don't run CI on schedule This seems to disable CI over time. Signed-off-by: Mads Marquart --- .github/workflows/ci.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9b6ce60..4e6a57e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,8 +8,6 @@ on: push: branches: - main - schedule: - - cron: '0 2 * * 0' env: CARGO_INCREMENTAL: 0 From 850d30d8dae343505fb95d50761d84ec519509e3 Mon Sep 17 00:00:00 2001 From: Mads Marquart Date: Mon, 13 Apr 2026 20:01:50 +0200 Subject: [PATCH 2/4] Fix MSRV CI Signed-off-by: Mads Marquart --- .github/workflows/ci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4e6a57e..23aa0c7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -53,12 +53,23 @@ jobs: rust: ['1.63'] steps: - uses: taiki-e/checkout-action@v1 + - name: Use minimal dependency versions + # By downgrading all our dependency versions, we ensure that our minimum + # version bounds are actually adequate (i.e. users can build `tiny-xlib` + # with minimal versions themselves) and opt-out of any unexpected MSRV + # bumps in semver-compatible releases of downstream crates. + # + # RUSTC_BOOTSTRAP=1 is kind of a hack, but it's cumbersome and slow to + # install the nightly toolchain. + run: RUSTC_BOOTSTRAP=1 cargo -Zminimal-versions generate-lockfile - name: Install Rust run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }} - run: sudo apt update -y && sudo apt install -y libx11-xcb-dev - run: cargo build --all - run: cargo build --all --no-default-features - run: cargo build --all --features dlopen + env: + RUSTFLAGS: '' clippy: runs-on: ubuntu-latest From 45634c7e9a24aa8ec882f41cfe25059ddcd01371 Mon Sep 17 00:00:00 2001 From: Mads Marquart Date: Mon, 13 Apr 2026 20:21:58 +0200 Subject: [PATCH 3/4] Bump MSRV to 1.70 ctor's statics require `OnceLock`, which in turn requires Rust 1.70. Signed-off-by: Mads Marquart --- .github/workflows/ci.yml | 2 +- Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 23aa0c7..d6af0cd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,7 +50,7 @@ jobs: matrix: # When updating this, the reminder to update the minimum supported # Rust version in Cargo.toml. - rust: ['1.63'] + rust: ['1.70'] steps: - uses: taiki-e/checkout-action@v1 - name: Use minimal dependency versions diff --git a/Cargo.toml b/Cargo.toml index 1fb1b46..fbcaf06 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "tiny-xlib" version = "0.2.4" edition = "2021" -rust-version = "1.63" +rust-version = "1.70" authors = ["John Nunley "] license = "MIT OR Apache-2.0 OR Zlib" description = "A tiny Xlib wrapper for Rust" From 03df956b7d79cf4019a27d0270d4060bd3a0b45c Mon Sep 17 00:00:00 2001 From: Mads Marquart Date: Mon, 13 Apr 2026 20:24:28 +0200 Subject: [PATCH 4/4] Downgrade libloading to v0.8.0 For MSRV. Signed-off-by: Mads Marquart --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index fbcaf06..6c6299b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,7 +17,7 @@ dlopen = ["libloading"] [dependencies] as-raw-xcb-connection = "1.0.0" ctor = { version = "0.10.0", default-features = false, features = ["std"] } -libloading = { version = "0.9.0", optional = true } +libloading = { version = "0.8.0", optional = true } tracing = { version = "0.1.37", default-features = false, optional = true } [build-dependencies]