File tree Expand file tree Collapse file tree 5 files changed +24
-8
lines changed Expand file tree Collapse file tree 5 files changed +24
-8
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 <[email protected] >" ]
8
8
license = " ISC"
9
9
repository = " https://github.com/nagisa/rust_libloading/"
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