mirror of
https://github.com/openharmony/third_party_rust_libloading.git
synced 2026-07-21 08:45:21 -04:00
2487d27ca855a26257e5e05c99ab651f58660997
These tests include binary .dll files into the tests directory, because rustc does not allow us to export symbols through ordinal numbers on Windows, sadly. Both DLLs contain exactly 1 function (other than DllMain) each, with signature `fn() -> *const c_char` returning a pointer to "bunny\0". Thanks to WindowsBunny (aka. retep998) for building the DLLs.
libloading

A memory-safer wrapper around system dynamic library loading primitives. The most important safety
guarantee by this library is prevention of dangling-Symbols that may occur after a Library is
unloaded.
Using this library allows loading dynamic libraries (also known as shared libraries) as well as use functions and static variables these libraries contain.
libloading is distributed under ISC (MIT-like) license.
Note, that this library is not a drop-in replacement for the deprecated dynamic_lib. Many
dubious APIs (notably, library search path modification) were prunned and string arguments
take types that match conventions and system APIs better.
Description
Languages
Rust
100%