Module libloading::changelog::r0_6_0 [−][src]
Release 0.6.0 (2020-04-05)
- Introduced a new method
os::unix::Library::get_singlethreaded
; - Added (untested) support for building when targetting Redox and Fuchsia;
- The APIs exposed by this library no longer panic and instead return an
Err
when it used to panic.
Breaking changes
-
Minimum required (stable) version of Rust to build this library is now 1.40.0;
-
This crate now implements a custom
Error
type and all APIs now return this type rather than returning thestd::io::Error
; -
libloading::Result
has been removed; -
Removed the dependency on the C compiler to build this library on UNIX-like platforms.
libloading
used to utilize a snippet written in C to work-around the unlikely possibility of the target having a thread-unsafe implementation of thedlerror
function. The effect of the work-around was very opportunistic: it would not work if the function was called by forgoinglibloading
.Starting with 0.6.0,
Library::get
on platforms wheredlerror
is not MT-safe (such as FreeBSD, DragonflyBSD or NetBSD) will unconditionally return an error when the underlyingdlsym
returns a null pointer. For the use-cases where loading null pointers is necessary consider usingos::unix::Library::get_singlethreaded
instead.