File tree 5 files changed +29
-9
lines changed
5 files changed +29
-9
lines changed Original file line number Diff line number Diff line change 15
15
strategy :
16
16
fail-fast : false
17
17
matrix :
18
- rust_toolchain : [nightly, stable, 1.48 .0]
18
+ rust_toolchain : [nightly, stable, 1.56 .0]
19
19
os : [ubuntu-latest, windows-latest, macOS-latest]
20
20
timeout-minutes : 20
21
21
steps :
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name = "libloading"
3
3
# When bumping
4
4
# * Don’t forget to add an entry to `src/changelog.rs`
5
5
# * If bumping to an incompatible version, adjust the documentation in `src/lib.rs`
6
- version = " 0.8.1 "
6
+ version = " 0.8.2 "
7
7
authors = [" Simonas Kazlauskas <libloading@kazlauskas.me>" ]
8
8
license = " ISC"
9
9
repository = " https://github.com/nagisa/rust_libloading/"
@@ -12,7 +12,11 @@ readme = "README.mkd"
12
12
description = " Bindings around the platform's dynamic library loading primitives with greatly improved memory safety."
13
13
keywords = [" dlopen" , " load" , " shared" , " dylib" ]
14
14
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 = []
16
20
17
21
[target .'cfg(unix)' .dependencies .cfg-if ]
18
22
version = " 1"
Original file line number Diff line number Diff line change 1
1
//! The change log.
2
2
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
+
3
19
/// Release 0.8.1 (2023-09-30)
4
20
///
5
21
/// ## Non-breaking changes
6
22
///
7
23
/// * Support for GNU Hurd.
24
+ pub mod r0_8_1 { }
8
25
9
26
/// Release 0.8.0 (2023-04-11)
10
27
///
Original file line number Diff line number Diff line change 41
41
pub mod changelog;
42
42
pub mod os;
43
43
mod util;
44
-
45
44
mod error;
46
- pub use self :: error:: Error ;
47
-
48
45
#[ cfg( any( unix, windows, libloading_docs) ) ]
49
46
mod safe;
47
+
48
+ pub use self :: error:: Error ;
50
49
#[ cfg( any( unix, windows, libloading_docs) ) ]
51
50
pub use self :: safe:: { Library , Symbol } ;
52
-
53
51
use std:: env:: consts:: { DLL_PREFIX , DLL_SUFFIX } ;
54
52
use std:: ffi:: { OsStr , OsString } ;
55
53
Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ impl Library {
197
197
//
198
198
// We try to leave as little space as possible for this to occur, but we can’t exactly
199
199
// fully prevent it.
200
- match with_dlerror ( |desc| crate :: Error :: DlSym { desc } , || {
200
+ let result = with_dlerror ( |desc| crate :: Error :: DlSym { desc } , || {
201
201
dlerror ( ) ;
202
202
let symbol = dlsym ( self . handle , symbol. as_ptr ( ) ) ;
203
203
if symbol. is_null ( ) {
@@ -208,7 +208,8 @@ impl Library {
208
208
pd : marker:: PhantomData
209
209
} )
210
210
}
211
- } ) {
211
+ } ) ;
212
+ match result {
212
213
Err ( None ) => on_null ( ) ,
213
214
Err ( Some ( e) ) => Err ( e) ,
214
215
Ok ( x) => Ok ( x)
You can’t perform that action at this time.
0 commit comments