Module libloading::changelog::r0_6_0  
source · Expand description
Release 0.6.0 (2020-04-05)
- Introduced a new method 
os::unix::Library::get_singlethreaded; - Added (untested) support for building when targeting Redox and Fuchsia;
 - The APIs exposed by this library no longer panic and instead return an 
Errwhen 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
Errortype and all APIs now return this type rather than returning thestd::io::Error; - 
libloading::Resulthas been removed; - 
Removed the dependency on the C compiler to build this library on UNIX-like platforms.
libloadingused to utilize a snippet written in C to work-around the unlikely possibility of the target having a thread-unsafe implementation of thedlerrorfunction. 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::geton platforms wheredlerroris not MT-safe (such as FreeBSD, DragonflyBSD or NetBSD) will unconditionally return an error when the underlyingdlsymreturns a null pointer. For the use-cases where loading null pointers is necessary consider usingos::unix::Library::get_singlethreadedinstead.