sharedlib

A cross-platform shared library loader.
Based on libloading by Simonas Kazlauskas.
sharedlib is a crate for loading shared libraries at runtime. This is a useful primitive for implementing other things like plugins. The advantage of this crate over other shared library crates is that it provides both lifetime-bound and ref-counted libraries, and it allows both functions and data to be loaded.
Quickstart
To load a library you can use any of the Lib, LibTracked, or LibUnsafe structs. Each of these structs provides different guarantees. For more information about the guarantees they provide see the choosing your guarantees section in the docs. We use Lib for the examples below:
Calling a function in another library
unsafe
Accessing data in another library
unsafe
Additional information
Plenty of additional information can be found in the docs.