Skip to content

Commit 775a3fd

Browse files
committed
Release 0.8.2
1 parent ae1710f commit 775a3fd

File tree

5 files changed

+24
-8
lines changed

5 files changed

+24
-8
lines changed

.github/workflows/libloading.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
rust_toolchain: [nightly, stable, 1.48.0]
18+
rust_toolchain: [nightly, stable, 1.56.0]
1919
os: [ubuntu-latest, windows-latest, macOS-latest]
2020
timeout-minutes: 20
2121
steps:

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "libloading"
33
# When bumping
44
# * Don’t forget to add an entry to `src/changelog.rs`
55
# * If bumping to an incompatible version, adjust the documentation in `src/lib.rs`
6-
version = "0.8.1"
6+
version = "0.8.2"
77
authors = ["Simonas Kazlauskas <[email protected]>"]
88
license = "ISC"
99
repository = "https://github.com/nagisa/rust_libloading/"

src/changelog.rs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,27 @@
11
//! The change log.
22
3+
/// Release 0.8.2 (2024-03-01)
4+
///
5+
/// ## (Potentially) breaking changes
6+
///
7+
/// MSRV has been increased to 1.56.0. Since both rustc versions are ancient, this has been deemed
8+
/// to not be breaking enough to warrant a semver-breaking release of libloading. If you're stick
9+
/// with a version of rustc older than 1.56.0, lock `libloading` dependency to `0.8.1`.
10+
///
11+
/// ## Non-breaking changes
12+
///
13+
/// The crate switches the dependency on `windows-sys` to a `windows-target` one for Windows
14+
/// bindings. In order to enable this `libloading` defines any bindings necessary for its operation
15+
/// internally, just like has been done for `unix` targets. This should result in leaner
16+
/// dependency trees.
17+
pub mod r0_8_2 {}
18+
319
/// Release 0.8.1 (2023-09-30)
420
///
521
/// ## Non-breaking changes
622
///
723
/// * Support for GNU Hurd.
24+
pub mod r0_8_1 {}
825

926
/// Release 0.8.0 (2023-04-11)
1027
///

src/lib.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,13 @@
4141
pub mod changelog;
4242
pub mod os;
4343
mod util;
44-
4544
mod error;
46-
pub use self::error::Error;
47-
4845
#[cfg(any(unix, windows, libloading_docs))]
4946
mod safe;
47+
48+
pub use self::error::Error;
5049
#[cfg(any(unix, windows, libloading_docs))]
5150
pub use self::safe::{Library, Symbol};
52-
5351
use std::env::consts::{DLL_PREFIX, DLL_SUFFIX};
5452
use std::ffi::{OsStr, OsString};
5553

src/os/unix/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ impl Library {
197197
//
198198
// We try to leave as little space as possible for this to occur, but we can’t exactly
199199
// fully prevent it.
200-
match with_dlerror(|desc| crate::Error::DlSym { desc }, || {
200+
let result = with_dlerror(|desc| crate::Error::DlSym { desc }, || {
201201
dlerror();
202202
let symbol = dlsym(self.handle, symbol.as_ptr());
203203
if symbol.is_null() {
@@ -208,7 +208,8 @@ impl Library {
208208
pd: marker::PhantomData
209209
})
210210
}
211-
}) {
211+
});
212+
match result {
212213
Err(None) => on_null(),
213214
Err(Some(e)) => Err(e),
214215
Ok(x) => Ok(x)

0 commit comments

Comments
 (0)