nagisa / rust_libloading

Bindings around the platform's dynamic library loading primitives with greatly improved memory safety.
https://docs.rs/libloading
ISC License
1.22k stars 100 forks source link

Support load main process symbol when share library path is null #144

Open zhangyuang opened 5 months ago

zhangyuang commented 5 months ago

As the description of dlopen is If the filename is NULL, then the returned handle is for the main program. It looks like libloading don't provide the feature, if filePath is None will cause error

nagisa commented 5 months ago

Does os::unix::Library::this do what you need it to?