Expand description
Release 0.9.0 (2025-11-05)
§Breaking changes
- MSRV has been increased to 1.88.0;
- This release adds a
stdfeature. Most functionality remains available with this feature disabled, but anything involvingOsStr,OsString,PathorPathBufis only available withstdfeature enabled. If you are depending onlibloadingwithno-default-featuresset to true, you may see compilation errors. Running withstdfeature enabled is still the strongly recommended option. no-std functionality has been contributed in #184; - As a result of the change above, functions that previously using
AsRef<OsStr>to describe the library path now require an implementor ofAsFilenameinstead.AsFilenamehas been implemented for the most likely types used previously. Please file an issue if you rely on a type that no longer works. - The
Errorenum’s variants changed in incompatible ways. Furthermore it has been changed to return the underlying dlerror via thesourcemethod (matching behaviour on Windows.) - On Windows providing filenames with interior null bytes to
Library::openand related functions will now report an error instead of silently truncating the provided input. This is a bug fix.
§Non-breaking changes
- Symbol lookups via
Library::getand related functions can now use a wider variety of string types, including&CStr. This, among other things, means thatc"symbol"literals can be used without incurring any additional null-byte checking overhead or reallocations that were necessary for&[u8]argument used previously to supportb"literals".&[u8]is still accepted. This new functionality has been contributed in #174 and #184.