How inventory works and platform support
masterThe inventory crate uses runtime initialization functions (similar to C's __attribute__((constructor)) or the ctor crate) to register plugins.
- Registration Timing: Registration happens dynamically during the 'life-before-main' phase for statically linked elements. For dynamically loaded libraries, registration occurs when
dlopenis called. - Platform Support: Supported on Linux, macOS, iOS, FreeBSD, Android, Windows, and WebAssembly. On unsupported platforms, the registry will simply be empty (no plugins will be registered).