HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
mcountryman
min-sized-rust-windows
Rust2020–2020
mcountryman / min-sized-rust-windows

min-sized-rust-windows

:crab: 464b rust binary on windows

4Distinct people
5Mentions
0Explicit recommenders
243GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

:crab: 464b rust binary on windows

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 5:04:57 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by 3-hour interval5 dated mentions

Observed mentions: 2020-11-30 20:21:29 UTC to 2020-12-02 21:31:14 UTC.

01232020-11-30 18:00:00 UTC to 2020-11-30 21:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 commentsNov 30, 18:002020-11-30 21:00:00 UTC to 2020-12-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-12-01 00:00:00 UTC to 2020-12-01 03:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-12-01 03:00:00 UTC to 2020-12-01 06:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-12-01 06:00:00 UTC to 2020-12-01 09:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-12-01 09:00:00 UTC to 2020-12-01 12:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-12-01 12:00:00 UTC to 2020-12-01 15:00:00 UTC (exclusive): 3 mentions; 0 submissions, 3 comments2020-12-01 15:00:00 UTC to 2020-12-01 18:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-12-01 18:00:00 UTC to 2020-12-01 21:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 commentsDec 1, 18:002020-12-01 21:00:00 UTC to 2020-12-02 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-12-02 00:00:00 UTC to 2020-12-02 03:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-12-02 03:00:00 UTC to 2020-12-02 06:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-12-02 06:00:00 UTC to 2020-12-02 09:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-12-02 09:00:00 UTC to 2020-12-02 12:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-12-02 12:00:00 UTC to 2020-12-02 15:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-12-02 15:00:00 UTC to 2020-12-02 18:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-12-02 18:00:00 UTC to 2020-12-02 21:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-12-02 21:00:00 UTC to 2020-12-03 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsDec 2, 21:00

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Nov 30, 18:002020-11-30 18:00:00 UTC2020-11-30 21:00:00 UTC110
Nov 30, 21:002020-11-30 21:00:00 UTC2020-12-01 00:00:00 UTC000
Dec 1, 00:002020-12-01 00:00:00 UTC2020-12-01 03:00:00 UTC000
Dec 1, 03:002020-12-01 03:00:00 UTC2020-12-01 06:00:00 UTC000
Dec 1, 06:002020-12-01 06:00:00 UTC2020-12-01 09:00:00 UTC000
Dec 1, 09:002020-12-01 09:00:00 UTC2020-12-01 12:00:00 UTC000
Dec 1, 12:002020-12-01 12:00:00 UTC2020-12-01 15:00:00 UTC303
Dec 1, 15:002020-12-01 15:00:00 UTC2020-12-01 18:00:00 UTC000
Dec 1, 18:002020-12-01 18:00:00 UTC2020-12-01 21:00:00 UTC000
Dec 1, 21:002020-12-01 21:00:00 UTC2020-12-02 00:00:00 UTC000
Dec 2, 00:002020-12-02 00:00:00 UTC2020-12-02 03:00:00 UTC000
Dec 2, 03:002020-12-02 03:00:00 UTC2020-12-02 06:00:00 UTC000
Dec 2, 06:002020-12-02 06:00:00 UTC2020-12-02 09:00:00 UTC000
Dec 2, 09:002020-12-02 09:00:00 UTC2020-12-02 12:00:00 UTC000
Dec 2, 12:002020-12-02 12:00:00 UTC2020-12-02 15:00:00 UTC000
Dec 2, 15:002020-12-02 15:00:00 UTC2020-12-02 18:00:00 UTC000
Dec 2, 18:002020-12-02 18:00:00 UTC2020-12-02 21:00:00 UTC000
Dec 2, 21:002020-12-02 21:00:00 UTC2020-12-03 00:00:00 UTC101

What Hacker News says

5 sources
It's very easy and fast to try: using 0.7.0+51d7c14ce from https://ziglang.org/download/ and: const std = @import("std"); pub fn main() void { std.debug.print("Hello, world!\n", .{}); } ---------- zig build-exe hello.zig -O ReleaseSmall --strip --single-threaded -target x86_64-windows Resulting hello.exe is 3072 bytes. From these 2560 are zero bytes. The only system calls from the resulting binary are to ExitProcess, GetLastError and WriteFile from KERNEL32.dll Additionally, changing the release optimizations: zig build-exe hello.zig -O ReleaseFast --single-threaded --strip -target x86_64-windows produces hello.exe of 2560 bytes, 1849 from which are zeroes. Note all: winter_blue has right to mention Zig. It's about what's provided out of the box in that new language and the provided optimizations are really effective.
Read the rest
Edit: asking mcountryman to explain: "the compiled rust exe has 480 non-zero bytes" -- I think you mean not just "compiled" but "hand-optimized writing hundreds of lines of the rust source code and not using standard library"? https://github.com/mcountryman/min-sized-rust-windows/blob/m... https://github.com/mcountryman/min-sized-rust-windows/blob/m... Edit2: Please note that zig doesn't eventually link to printf and libc there, but links and resolves the std calls from the source to the calls to KERNEL32.dll.
In Show HN: Tiny 1k Rust binary on Windows

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.