From 0916dc286845241cfa3f81d7158c3f49349947fd Mon Sep 17 00:00:00 2001 From: Ben Beasley Date: Sun, 21 Apr 2024 10:45:08 -0400 Subject: [PATCH] Update libloading from 0.6 to 0.8 (#346) * Update libloading from 0.6 to 0.8 Deal with the fact that libloading::Library::new was declared unsafe in libloading 0.7; see https://github.com/nagisa/rust_libloading/issues/86 and https://github.com/nagisa/rust_libloading/blob/0.8.3/src/changelog.rs#L96-L151 for details. Fixes #345. * Update MSRV to 1.56 to support libloading 0.8.2 and later --- .github/workflows/00-ci.yml | 6 +-- CHANGELOG.md | 4 ++ Cargo.toml | 2 +- README.md | 2 +- build.rs | 9 +++- msrv.lock | 82 +++++++++++++++++++++++++++++++++---- 6 files changed, 91 insertions(+), 14 deletions(-) diff --git a/.github/workflows/00-ci.yml b/.github/workflows/00-ci.yml index 813babb01..7278ed3d1 100644 --- a/.github/workflows/00-ci.yml +++ b/.github/workflows/00-ci.yml @@ -25,7 +25,7 @@ jobs: uses: './.github/workflows/01-build-and-test-unix.yml' with: os: 'ubuntu-latest' - toolchain: '1.46.0' + toolchain: '1.56.0' msrv: true # Nightly check is performed on ubuntu only. @@ -53,7 +53,7 @@ jobs: # rust < 1.54 does not work on macos >= 12: # https://rust-lang.zulipchat.com/#narrow/stream/182449-t-compiler.2Fhelp/topic/.E2.9C.94.20How.20can.20I.20fix.20Rust.201.2E53.2E0.20or.20earlier.20to.20run.20on.20macOS.2012.2E6.3F/near/299263887 os: 'macos-11' - toolchain: '1.46.0' + toolchain: '1.56.0' msrv: true build-and-test-windows-stable: @@ -78,7 +78,7 @@ jobs: uses: './.github/workflows/01-build-and-test-windows.yml' with: os: 'windows-latest' - toolchain: '1.46.0' + toolchain: '1.56.0' msrv: true secrets: NPCAP_OEM_PASSWORD: ${{ secrets.NPCAP_OEM_PASSWORD }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 93ddc3014..5a5f656e7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## [Unreleased] +### Changed + +- MSRV is now `1.56.0`. + ## [1.3.0] - 2024-03-15 ### Added diff --git a/Cargo.toml b/Cargo.toml index bd0bb3a4c..60348621f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -40,7 +40,7 @@ tempdir = "0.3" eui48 = "1.1" [build-dependencies] -libloading = "0.6" +libloading = "0.8" regex = "1" pkg-config = "0.3" diff --git a/README.md b/README.md index 088dc852c..08d213464 100644 --- a/README.md +++ b/README.md @@ -94,7 +94,7 @@ Use the `lending-iter` feature to enable the lending packet iterator. See `lendi ## Minimum Supported Rust Version (MSRV) -This crate uses Rust 2018 and requires a compiler version >= 1.46. +This crate uses Rust 2018 and requires a compiler version >= 1.56. The feature `capture-stream` depends on `tokio = "1.0"`. Therefore, when `capture-stream` is enabled, this crate requires a compiler version new enough to compile the `tokio` crate. diff --git a/build.rs b/build.rs index 478bbc68d..dd74a7e24 100644 --- a/build.rs +++ b/build.rs @@ -99,7 +99,14 @@ fn get_libpcap_version(libdirpath: Option) -> Result