Skip to content

dynamic_library_name incompatible with libloading version 0.9.0 #3359

@elastosaur

Description

@elastosaur

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)
     }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions