nagisa / rust_libloading

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

Loading dynamic library from memory #137

Closed rohitjoshi closed 8 months ago

rohitjoshi commented 8 months ago

How to load dynamic library from memory? The dynamic library is an encrypted file which needs to be decrypted in memory before loading.

nagisa commented 8 months ago

You could probably achieve something using memfds on linux. No idea about other platforms. But regardless this won't be portable.

That said, this is not a support forum. Please consider asking your question in users.rust-lang.org or a similar avenue.