johnthagen/min-sized-rust

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

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 18 minutes ago
Added to GitGenius on September 6th, 2026
Created on December 9th, 2018
Open Issues & Pull Requests: 12 (+0)
GitHub issues: Enabled
Number of forks: 247
Total Stargazers: 9,849 (+0)
Total Subscribers: 114 (+0)

Repository Insights (GitGenius)

Most active contributors

Sign in to see contributor activity.

Related repositories by overlapping contributors

No overlapping-contributor repos identified yet.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Issue API getrepoissuespagesummary failed: 429 Rate limit exceeded. Please try again later.

Detailed Description

min-sized-rust is a guide that documents techniques for reducing the size of compiled Rust binaries.

The project addresses the problem that Rust binaries can be substantially larger than necessary for deployment, particularly in resource-constrained environments like containers and embedded systems. It works by collecting and explaining practical optimization strategies that developers can apply during compilation and post-processing. The guide covers approaches including link-time optimization, stripping symbols, using no-std environments, and binary compression tools.

Developers working on containerized applications, WebAssembly targets, or embedded systems where binary size directly impacts deployment costs or runtime constraints should find this guide most relevant. It suits projects where reducing artifact size is a concrete requirement rather than a minor optimization. The guide is structured as a reference resource rather than a framework or library, making it useful for anyone building Rust applications who needs to understand the tradeoffs between different size-reduction techniques.

The project maintains a focused scope on binary size optimization without attempting to cover the broader Rust ecosystem. Documentation is organized around specific techniques with explanations of their effects and applicability. The repository serves as a living reference that collects established practices in this domain rather than introducing novel approaches.