diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 774bb2b..1135a19 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 }} @@ -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: diff --git a/Cargo.toml b/Cargo.toml index f3be5f7..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" @@ -10,6 +10,12 @@ readme = "README.md" keywords = ["dylib", "dlopen"] categories = ["api-bindings"] edition = "2021" +rust-version = "1.56" [dependencies] libloading = ">=0.7, <0.9" + +[workspace] +members = [ + "dlib-test", +] diff --git a/dlib-test/Cargo.toml b/dlib-test/Cargo.toml index b756949..87216ba 100644 --- a/dlib-test/Cargo.toml +++ b/dlib-test/Cargo.toml @@ -1,9 +1,10 @@ [package] name = "dlib-test" version = "0.1.0" -authors = ["Victor Berger "] -edition = "2018" +authors = ["Elinor Berger "] +edition = "2021" publish = false +rust-version = "1.56" [dependencies] dlib = { path = "../" } 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")]