From 13ddd524eb2506b193abc55e945f97c8c26918b5 Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Wed, 25 Feb 2026 18:36:12 -0800 Subject: [PATCH 1/8] ci: Update github actions versions --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 774bb2b..841e5eb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,10 +17,10 @@ jobs: steps: - name: Checkout sources - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Cargo cache - uses: actions/cache@v1 + uses: actions/cache@v5 with: path: ~/.cargo key: cargo-${{ matrix.rust }} From 2507d45c228d560df284cbe535155cc3c49fe2d2 Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Wed, 25 Feb 2026 19:01:30 -0800 Subject: [PATCH 2/8] Add explicit `rust-version` to `Cargo.toml` 1.56 is the first version to respect `rust-version`, so this doesn't actually change anything. --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/Cargo.toml b/Cargo.toml index f3be5f7..4d7304f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,6 +10,7 @@ readme = "README.md" keywords = ["dylib", "dlopen"] categories = ["api-bindings"] edition = "2021" +rust-version = "1.56" [dependencies] libloading = ">=0.7, <0.9" From 6d41544e50a169afc7d80d0e1d7a4c1e83397a1e Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Wed, 25 Feb 2026 19:04:12 -0800 Subject: [PATCH 3/8] ci: Downgrade `libloading` when testing on `1.56.0` --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 841e5eb..1135a19 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,6 +31,10 @@ jobs: toolchain: ${{ matrix.rust }} override: true + - name: Downgrade libloading + if: ${{ matrix.rust == '1.56.0' }} + run: cargo update -p libloading --precise 0.8.7 + - name: Test link uses: actions-rs/cargo@v1 with: From abd8b0ba01769e541761ba69b698ca2637f506ab Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Wed, 25 Feb 2026 19:14:27 -0800 Subject: [PATCH 4/8] Use `[workspace]` `dlib-test` doesn't need a separate lock file and `target` directory. I don't think this does any harm. --- Cargo.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 4d7304f..4b6a80e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,3 +14,8 @@ rust-version = "1.56" [dependencies] libloading = ">=0.7, <0.9" + +[workspace] +members = [ + "dlib-test", +] From 68890632998e84744ed1b72f52baf3ffe7c966ab Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Wed, 25 Feb 2026 19:15:22 -0800 Subject: [PATCH 5/8] dlib-test: Update `authors` to match `dlib` --- dlib-test/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlib-test/Cargo.toml b/dlib-test/Cargo.toml index b756949..fe30ddd 100644 --- a/dlib-test/Cargo.toml +++ b/dlib-test/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "dlib-test" version = "0.1.0" -authors = ["Victor Berger "] +authors = ["Elinor Berger "] edition = "2018" publish = false From 2ebb870d7a78a5ed7dd0f5716af407c7f6aed367 Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Wed, 25 Feb 2026 19:16:23 -0800 Subject: [PATCH 6/8] Run `cargo fmt` --- dlib-test/src/lib.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/dlib-test/src/lib.rs b/dlib-test/src/lib.rs index c4626be..8d8ed6e 100644 --- a/dlib-test/src/lib.rs +++ b/dlib-test/src/lib.rs @@ -34,7 +34,6 @@ mod tests { let angle = 1.8; let cosinus = unsafe { ffi_dispatch!(M_STATIC, cos, angle) }; assert_eq!(cosinus, angle.cos()); - } #[cfg(feature = "sin")] From 5b342d2f5fcdc8b4c7bf5a1ffd0db921f137ed1e Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Wed, 25 Feb 2026 19:17:12 -0800 Subject: [PATCH 7/8] dlib-test: Update to `2021` edition --- dlib-test/Cargo.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlib-test/Cargo.toml b/dlib-test/Cargo.toml index fe30ddd..87216ba 100644 --- a/dlib-test/Cargo.toml +++ b/dlib-test/Cargo.toml @@ -2,8 +2,9 @@ name = "dlib-test" version = "0.1.0" authors = ["Elinor Berger "] -edition = "2018" +edition = "2021" publish = false +rust-version = "1.56" [dependencies] dlib = { path = "../" } From d8fb7ced74f18835565b0074931159c57adce703 Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Wed, 25 Feb 2026 19:30:42 -0800 Subject: [PATCH 8/8] Bump version to `0.5.3` --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 4b6a80e..4ff0a9d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dlib" -version = "0.5.2" +version = "0.5.3" repository = "https://github.com/elinorbgr/dlib" authors = ["Elinor Berger "] license = "MIT"