Good day,
libloading changed their API slightly, specifically the trait bounds to Library::new: nagisa/rust_libloading@4b98285
As a result, bindings generated with dynamic_library_name present fail to compile.
Generated code should be changed something like this:
pub unsafe fn new<P>(path: P) -> Result<Self, ::libloading::Error>
where
- P: AsRef<::std::ffi::OsStr>,
+ P: ::libloading::AsFilename,
{
let library = ::libloading::Library::new(path)?;
Self::from_library(library)
}
Good day,
libloadingchanged their API slightly, specifically the trait bounds toLibrary::new: nagisa/rust_libloading@4b98285As a result, bindings generated with
dynamic_library_namepresent fail to compile.Generated code should be changed something like this:
pub unsafe fn new<P>(path: P) -> Result<Self, ::libloading::Error> where - P: AsRef<::std::ffi::OsStr>, + P: ::libloading::AsFilename, { let library = ::libloading::Library::new(path)?; Self::from_library(library) }