Expand description
Optional in-process loader for trusted, first-party Rust dylib plugins.
The dynamic loader is available on Linux, macOS and Windows (x64, MSVC);
other targets retain the static host build without compiling
platform-specific loader code. The checks before a library is opened, the
cache, retention and the plugin factory are shared (loader); each
platform module only opens libraries, finds symbols and locates the loaded
SDK. See docs/dylib-sdk-implementation.md for platform differences.
On Windows, plugins are opened with LoadLibraryExW by full path and
LOAD_LIBRARY_SEARCH_APPLICATION_DIR | LOAD_LIBRARY_SEARCH_SYSTEM32, and the
cached file is held with read-only sharing from the hash check until it is
mapped. Static initializers of a plugin (.CRT$XCU, e.g. the ctor
crate) run under the loader lock and must not wait for other threads.
Structsยง
- Dylib
Config - Load
Error - Loader
- Host-side loader. Construct it after the independent bundle launcher has verified the host, SDK and dynamic libstd files, and before creating root.
- Module
- Module
Diagnostic