![]() `docsrs` is a commonly used `cfg` identifier. `libloading`'s implementation is written in such a way that it cannot compile with this cfg set, but is still able to produce documentation. This is done so that the documentation is naturally covering all platform-specific details in a single page, without users having to e.g. switch between Windows® and Linux when reading the documentation on `docs.rs`. The downstream crates may accidentally set this `cfg` for `rustc` invocations as well, which can then cause them to fail to build, for no good reason! Using a cfg specific to a crate (e.g. `libloading_docs`) more accurately reflects the purpose of this cfg and avoids these problems altogether. Fixes #101 |
||
---|---|---|
.github/workflows | ||
src | ||
tests | ||
.gitignore | ||
Cargo.toml | ||
LICENSE | ||
README.mkd |
README.mkd
libloading
Bindings around the platform's dynamic library loading primitives with greatly improved memory safety. The most important safety guarantee of this library is the prevention of dangling Symbol
s that may occur after a Library
is unloaded.
Using this library allows the loading of dynamic libraries, also known as shared libraries, as well as the use of the functions and static variables that these libraries may contain.
libloading is available to use under ISC (MIT-like) license.