Skip to content

Commit 41d790e

Browse files
committed
Release 0.8.2
1 parent fd0cde8 commit 41d790e

File tree

5 files changed

+29
-9
lines changed

5 files changed

+29
-9
lines changed

.github/workflows/libloading.yml

+1-1
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

+6-2
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 <libloading@kazlauskas.me>"]
88
license = "ISC"
99
repository = "https://github.com/nagisa/rust_libloading/"
@@ -12,7 +12,11 @@ readme = "README.mkd"
1212
description = "Bindings around the platform's dynamic library loading primitives with greatly improved memory safety."
1313
keywords = ["dlopen", "load", "shared", "dylib"]
1414
categories = ["api-bindings"]
15-
rust-version = "1.48.0"
15+
rust-version = "1.56.0"
16+
17+
[target.'cfg(windows)'.dependencies.windows-targets]
18+
version = ">=0.48, <0.53"
19+
features = []
1620

1721
[target.'cfg(unix)'.dependencies.cfg-if]
1822
version = "1"

src/changelog.rs

+17
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

+2-4
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

+3-2
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)