Hacker GitHub

← All repos

johnthagen/min-sized-rust

View on GitHub ↗ ★ 9,871 Rust

🦀 How to minimize Rust binary size 📦 https://github.com/johnthagen/min-sized-rust

55 mentions on Hacker News by 48 people: 3 stories, 52 comments · first 2019-04-26 · latest 2026-10-21

Mentions per year 55 mentions · busiest year 2024 (11)
20082026
  1. ▲ 149
    Minimizing Rust Binary Size
    story by xanthine · 2020-06-12 · 46 comments
  2. …pretty tiny rust binaries if you don’t link the std library though. Check this out for some tricks: https://github.com/johnthagen/min-sized-rust That blog post explains the vga buffer quite nicely so you should also be able to use the same…
  3. …for size by default, there's a lot of easy ways to shrink binaries (like stripping symbols). https://github.com/johnthagen/min-sized-rust
    comment by maccam94 · 2020-04-29 · in How we use Rust in our mobile SDK
  4. …should built with many smaller crates that are cached better and have fewer dependencies? Also: https://github.com/johnthagen/min-sized-rust
    comment by ijiiijji1 · 2019-08-21 · in Thoughts on Rust bloat
  5. …where size matters, there are some articles about how to slim it down even more, here's an example: https://github.com/johnthagen/min-sized-rust
    comment by bluejekyll · 2019-04-26 · in Futures Is Stable on Rust 1.36