#winapi #boilerplate #targeting #no-std #executable #globalalloc

min32

Minimal boilerplate code for targeting win32 with no-std

1 unstable release

Uses new Rust 2024

new 0.1.2 Mar 22, 2025
0.1.1 Mar 20, 2025
0.1.0 Mar 20, 2025

#4 in #globalalloc

Download history 131/week @ 2025-03-15

131 downloads per month

GPL-3.0-only

6KB
76 lines

Min32

This is a minimal library that can be used to help create no-std executables for win32 targets.

It implements GlobalAlloc, #[panic_handler], and also assists with defining entry points (i.e. WinMain and DllMain).

Compatibility

Please note that Min32 is only tested for Windows 2000 or newer.

Actual target support depends on the linker you use as well as CPU architecture.

We recommend using the *-pc-windows-gnu targets, though *-pc-windows-msvc targets should compile.

License

Min32 is licensed under version 3.0 of the GNU General Public License.


lib.rs:

Min32

This is a minimal library that can be used to help create no-std executables for win32 targets.

It implements GlobalAlloc, #[panic_handler], and also assists with defining entry points (i.e. WinMain and DllMain).

Dependencies

~9–17MB
~223K SLoC