# Building static Rust binaries for Linux

DevFeed: [Building static Rust binaries for Linux](<https://devfeed.tech/articles/building-static-rust-binaries-for-linux-38530.md>)

Original publisher: [Read original article](<https://msfjarvis.dev/posts/building-static-rust-binaries-for-linux/>)

Author: Harsh Shandilya

Published: 2021-10-17T06:30:00Z

Content type: tutorial

Language: en

Sources: [Posts on Harsh Shandilya](<https://devfeed.tech/sources/posts-on-harsh-shandilya.md>)

Topics: [Rust](<https://devfeed.tech/topics/rust.md>), [Linux](<https://devfeed.tech/topics/linux.md>)

Tags: [binaries](<https://devfeed.tech/tags/binaries.md>), [building](<https://devfeed.tech/tags/building.md>), [curl](<https://devfeed.tech/tags/curl.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [linux](<https://devfeed.tech/tags/linux.md>), [openssl](<https://devfeed.tech/tags/openssl.md>), [rust](<https://devfeed.tech/tags/rust.md>), [rust-build-static-binary](<https://devfeed.tech/tags/rust-build-static-binary.md>), [rust-static-binary](<https://devfeed.tech/tags/rust-static-binary.md>), [rust-static-linking](<https://devfeed.tech/tags/rust-static-linking.md>), [static](<https://devfeed.tech/tags/static.md>), [wasm](<https://devfeed.tech/tags/wasm.md>)

## AI overview

A tutorial on building statically linked Rust binaries for Linux. It explains static linking with MUSL and glibc, describes a Cargo-related issue, and shows how to identify and remove dependencies that require dynamic linking.

## Source excerpt

Some tips on building static binaries of Rust projects targeting Linux