#bindings #memory #loading #module #windows #github #com-fancycode-memory-module

sys memory-module-sys

Bindings to the MemoryModule library for loading libraries from memory on Windows

3 releases (breaking)

0.3.0 Mar 23, 2020
0.2.0 Mar 23, 2020
0.1.0 Feb 26, 2020

#272 in Windows APIs

Download history 2445/week @ 2024-03-14 2591/week @ 2024-03-21 2926/week @ 2024-03-28 3149/week @ 2024-04-04 3433/week @ 2024-04-11 3098/week @ 2024-04-18 3580/week @ 2024-04-25 3420/week @ 2024-05-02 3162/week @ 2024-05-09 3736/week @ 2024-05-16 3975/week @ 2024-05-23 4213/week @ 2024-05-30 3270/week @ 2024-06-06 3768/week @ 2024-06-13 3901/week @ 2024-06-20 3051/week @ 2024-06-27

14,744 downloads per month
Used in 2 crates (via python-oxidized-importer)

MPL-2.0 license

49KB
1K SLoC

C 1K SLoC // 0.1% comments Rust 81 SLoC // 0.1% comments

Rust Bindings to Memory Module Library

This repository contains low-level Rust bindings to the library at https://github.com/fancycode/MemoryModule that facilitates loading Windows PE files from memory on Windows. i.e. it allows you to import a DLL/EXE from a &[u8] without requiring the library to be backed by a file.

The Rust library simply compiles the upstream library and declares extern "C" unsafe bindings to it. This being a -sys crate, that is all it will ever do: higher-level bindings would exist in a separate crate.

License

This crate is licensed under the same terms as the MemoryModule library, which is MPL 2.0.

The MemoryModule library is maintained by Joachim Bauch.


lib.rs:

Load DLLs/EXEs from memory on Windows.

This crate declares a library interface to https://github.com/fancycode/MemoryModule.

The initial developer of the original code is Joachim Bauch. See the copyright in the vendored .c/.h files for a more detailed copyright notice.

Dependencies

~0.4–395KB