Skip to content
This repository was archived by the owner on Oct 27, 2024. It is now read-only.

Commit 1e18af6

Browse files
committed
remove libloading crate
1 parent 63ccbba commit 1e18af6

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

.github/workflows/rust.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,16 @@ jobs:
8585
semver:
8686
name: Check semver
8787
strategy:
88+
fail-fast: false
8889
matrix:
8990
os: [ubuntu-latest, macos-latest, windows-latest]
9091
runs-on: ${{ matrix.os }}
9192
steps:
9293
- uses: actions/checkout@v4
9394
- uses: dtolnay/rust-toolchain@stable
94-
- uses: obi1kenobi/cargo-semver-checks-action@v2
95+
- name: Check semver
96+
if: ${{ !cancelled() }}
97+
uses: obi1kenobi/cargo-semver-checks-action@v2
98+
- name: Abort on error
99+
if: ${{ failure() }}
100+
run: echo "Semver check failed" && false

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ wintun-bindings = { version = "0.7", features = [
4444
"verify_binary_signature",
4545
"async",
4646
] }
47-
libloading = "0.8"
4847

4948
[target.'cfg(any(target_os = "macos", target_os = "freebsd"))'.dependencies]
5049
ipnet = "2"

src/error.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@ pub enum Error {
5454
#[error(transparent)]
5555
WintunError(#[from] wintun_bindings::Error),
5656

57-
#[cfg(target_os = "windows")]
58-
#[error(transparent)]
59-
LibloadingError(#[from] libloading::Error),
60-
6157
#[error("{0}")]
6258
String(String),
6359
}

src/platform/windows/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ mod device;
1818

1919
use crate::configuration::Configuration;
2020
use crate::error::Result;
21+
#[cfg(feature = "async")]
2122
pub use device::Driver;
2223
pub use device::{Device, Tun};
2324
use std::ffi::OsString;

0 commit comments

Comments
 (0)