Guidance about cross compilation tools, especially targeting musl

This page summarizes the projects mentioned and recommended in the original post on

Our great sponsors
  • Scout APM - Less time debugging, more time building
  • SonarQube - Static code analysis for 29 languages.
  • OPS - Build and Run Open Source Unikernels
  • GitHub repo cross

    “Zero setup” cross compilation and “cross testing” of Rust crates

    Cross: seems to be the most popular, last commit was Jun 30, 2020, so maybe this project is abandonned?

  • GitHub repo rust-musl-builder

    Docker images for compiling static Rust binaries using musl-libc and musl-gcc, with static versions of useful C libraries. Supports openssl and diesel crates.

    rust-musl-builder: most popular in the musl compilation category, seems to be abandonned due to the removal of Docker Hub free tier as last commit was on Feb 13, 2021 with a lot of issues request updating to the newest stable Rust

  • Scout APM

    Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.

  • GitHub repo muslrust

    Docker environment for building musl based static rust binaries

    muslrust: seems to be active last commit on Oct 2, 2021. But what is the difference compared to the one above?

  • GitHub repo rust-musl-cross

    Docker images for compiling static Rust binaries using musl-cross

    rust-musl-cross: active as last commit was 10 days ago. It said it based on rust-musl-builder. But this repo was created years ago. So why would this exist when there is also rust-musl-builder. What are the differences compared to rust-musl-builder and muslrust?

  • GitHub repo broot

    A new way to see and navigate directory trees :

    cargo-cross works well for me. A big upside is that I use the same tool to build for all the targets except the native one* . This lets me have consistent scripts to build all targets, like this one.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts