# A very small Rust binary indeed

DevFeed: [A very small Rust binary indeed](<https://devfeed.tech/articles/a-very-small-rust-binary-indeed-35370.md>)

Original publisher: [Read original article](<https://darkcoding.net/software/a-very-small-rust-binary-indeed/>)

Author: Graham King

Published: 2022-07-01T16:00:32Z

Content type: tutorial

Language: en

Sources: [Graham King](<https://devfeed.tech/sources/graham-king.md>)

Topics: [Rust](<https://devfeed.tech/topics/rust.md>), [Assembly](<https://devfeed.tech/topics/assembly.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [Optimization](<https://devfeed.tech/topics/optimization.md>), [x86](<https://devfeed.tech/topics/x86.md>), [standard](<https://devfeed.tech/topics/standard.md>)

Tags: [assembly](<https://devfeed.tech/tags/assembly.md>), [linux](<https://devfeed.tech/tags/linux.md>), [optimization](<https://devfeed.tech/tags/optimization.md>), [rust](<https://devfeed.tech/tags/rust.md>), [software](<https://devfeed.tech/tags/software.md>), [standard](<https://devfeed.tech/tags/standard.md>), [standard-library](<https://devfeed.tech/tags/standard-library.md>), [x86](<https://devfeed.tech/tags/x86.md>)

## AI overview

A tutorial explores how to reduce the size of an x86_64 Linux Rust binary, starting from 3.6 MiB and applying techniques such as stripping symbols, adjusting panic handling, link-time optimization, and rebuilding the standard library. It compares the result with a pure assembly program and explains relevant Linux program-loading and Rust runtime behavior.

## Source excerpt

Can we make a Rust program that's as small as it's assembler equivalent?