#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

#225 in Windows APIs

Download history 2194/week @ 2023-11-26 2037/week @ 2023-12-03 1839/week @ 2023-12-10 1864/week @ 2023-12-17 1385/week @ 2023-12-24 1149/week @ 2023-12-31 1707/week @ 2024-01-07 1678/week @ 2024-01-14 1573/week @ 2024-01-21 1892/week @ 2024-01-28 1689/week @ 2024-02-04 2194/week @ 2024-02-11 2215/week @ 2024-02-18 4191/week @ 2024-02-25 2813/week @ 2024-03-03 1459/week @ 2024-03-10

10,775 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–385KB