Docker images for compiling static Rust binaries using musl-libc, with static C libraries for openssl, diesel, and sqlx.
rust-musl-builder is a set of Docker images that facilitate building static Rust binaries using musl-libc. It solves the problem of creating portable, dependency-free executables by pre-configuring static C libraries like OpenSSL and libpq, which are commonly needed by Rust crates such as diesel and sqlx.
Rust developers who need to deploy applications as single static binaries, particularly those using database drivers or TLS libraries that rely on native C dependencies.
It simplifies the toolchain setup for static compilation, provides tested configurations for popular Rust crates, and integrates seamlessly with Docker-based build pipelines, reducing the friction of producing distributable Rust applications.
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.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Includes static versions of OpenSSL, libpq, libz, and SQLite3, configured to work out of the box with popular Rust crates like diesel and sqlx, reducing linking headaches.
Designed for integration with Travis CI and GitHub releases, with examples for automating static binary builds and deploying to Alpine Linux containers.
Bundles tools like mdbook, cargo about, cargo deb, and cargo deny, aiding in documentation, licensing, packaging, and security checks.
Abstracts the complexity of musl-libc setup, providing a Docker environment that just works for creating dependency-free executables.
The README openly states the project is 'effectively dead' due to the decreasing need for OpenSSL, making it a legacy choice for new projects.
Only supports x86_64 and basic armv7 targets, lacking the broader architecture support found in alternatives like cross.
Efficient build caching necessitates extra Docker volume mounts and permission fixes, adding complexity compared to turnkey solutions.