Skip to content

Commit cfca89d

Browse files
authored
Merge branch 'main' into libc-non-exhaustive
2 parents 687c202 + 15af827 commit cfca89d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+1681
-4036
lines changed

.github/workflows/ci.yaml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
runs-on: ubuntu-24.04
2929
timeout-minutes: 10
3030
steps:
31-
- uses: actions/checkout@v4
31+
- uses: actions/checkout@v5
3232
- name: Setup Rust toolchain
3333
run: ./ci/install-rust.sh && rustup component add rustfmt
3434
- name: Check style
@@ -42,7 +42,7 @@ jobs:
4242
runs-on: ${{ matrix.os }}
4343
timeout-minutes: 10
4444
steps:
45-
- uses: actions/checkout@v4
45+
- uses: actions/checkout@v5
4646
- run: rustup update stable --no-self-update
4747
- uses: Swatinem/rust-cache@v2
4848
# Here we use the latest stable Rust toolchain already installed by GitHub
@@ -65,7 +65,7 @@ jobs:
6565
env:
6666
TOOLCHAIN: ${{ matrix.toolchain }}
6767
steps:
68-
- uses: actions/checkout@v4
68+
- uses: actions/checkout@v5
6969
- name: Setup Rust toolchain
7070
run: ./ci/install-rust.sh
7171

@@ -88,8 +88,8 @@ jobs:
8888
if [ "${{ matrix.toolchain }}" = "1.63.0" ]; then
8989
# Remove `-Dwarnings` at the MSRV since lints may be different
9090
export RUSTFLAGS=""
91-
# Remove `ctest-next` which uses the 2024 edition
92-
perl -i -ne 'print unless /"ctest-(next|test)",/ || /"libc-test",/' Cargo.toml
91+
# Remove `ctest` which uses the 2024 edition
92+
perl -i -ne 'print unless /"ctest(-test)?",/ || /"libc-test",/' Cargo.toml
9393
fi
9494
9595
./ci/verify-build.sh
@@ -140,7 +140,7 @@ jobs:
140140
env:
141141
TARGET: ${{ matrix.target }}
142142
steps:
143-
- uses: actions/checkout@v4
143+
- uses: actions/checkout@v5
144144
- name: Setup Rust toolchain
145145
run: ./ci/install-rust.sh
146146
- uses: Swatinem/rust-cache@v2
@@ -249,7 +249,7 @@ jobs:
249249
env:
250250
TARGET: ${{ matrix.target }}
251251
steps:
252-
- uses: actions/checkout@v4
252+
- uses: actions/checkout@v5
253253
- name: Setup Rust toolchain
254254
run: ./ci/install-rust.sh
255255
- uses: Swatinem/rust-cache@v2
@@ -288,9 +288,9 @@ jobs:
288288
- x86_64-pc-solaris
289289
timeout-minutes: 25
290290
steps:
291-
- uses: actions/checkout@v4
291+
- uses: actions/checkout@v5
292292
- name: test on Solaris
293-
uses: vmactions/solaris-vm@v1.1.4
293+
uses: vmactions/solaris-vm@v1.1.5
294294
with:
295295
release: "11.4-gcc"
296296
usesh: true
@@ -306,21 +306,22 @@ jobs:
306306
./ci/run.sh ${{ matrix.target }}
307307
308308
ctest_msrv:
309-
name: Check MSRV
309+
name: Check ctest MSRV
310310
runs-on: ubuntu-24.04
311311
timeout-minutes: 10
312312
env:
313313
RUSTFLAGS: # No need to check warnings on old MSRV, unset `-Dwarnings`
314314
steps:
315315
- uses: actions/checkout@master
316316
- run: |
317-
msrv="$(cargo metadata --format-version 1 | jq -r --arg CRATE_NAME ctest '.packages | map(select(.name == $CRATE_NAME)) | first | .rust_version')"
317+
msrv="$(
318+
cargo metadata --format-version 1 |
319+
jq -r --arg CRATE_NAME ctest '.packages | map(select((.name == $CRATE_NAME) and (.id | startswith("path+file")))) | first | .rust_version'
320+
)"
318321
echo "MSRV: $msrv"
319322
echo "MSRV=$msrv" >> "$GITHUB_ENV"
320323
- name: Install Rust
321324
run: rustup update "$MSRV" --no-self-update && rustup default "$MSRV"
322-
- name: Remove edition 2024 crates
323-
run: perl -i -ne 'print unless /"ctest-(next|test)",/ || /"libc-test",/' Cargo.toml
324325
- uses: Swatinem/rust-cache@v2
325326
- run: cargo build -p ctest
326327

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Checkout repository
20-
uses: actions/checkout@v4
20+
uses: actions/checkout@v5
2121
with:
2222
fetch-depth: 0
2323
- name: Install Rust (rustup)

Cargo.lock

Lines changed: 9 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ extra_traits = []
141141
[workspace]
142142
members = [
143143
"ctest",
144-
"ctest-next",
145144
"ctest-test",
146145
"libc-test",
147146
]

ctest-next/Cargo.toml

Lines changed: 0 additions & 20 deletions
This file was deleted.

ctest-next/src/lib.rs

Lines changed: 0 additions & 109 deletions
This file was deleted.

0 commit comments

Comments
 (0)