Macro dlib::external_library [−][src]
Main macro of this library, used to generate the the FFI bindings.
The expected arguments are, in order:
- (Optional) The name of the cargo feature conditionning the usage of dlopen, in the form
feature="feature-name"
. If ommited, the feature"dlopen"
will be used. - The name of the struct that will be generated when the dlopen-controlling feature is enabled
- The link name of the target library
- The desctription of the statics, functions, and vararg functions that should be linked
See crate-level documentation for a detailed example of use.