pub type DynLibUnloadHook = fn(handle: DynLibId);Expand description
Function-pointer signature for unloading a dynamic library, installed on
GlobalState::dynlib_unload_hook.
Called from the _CLIBS __gc metamethod when the Lua state closes.
libloading’s safety model requires every loaded library to outlive the
last symbol it exports; the CLI backend is therefore free to ignore this
hook and keep libraries alive until process exit.