Skip to content

Docker container containing a Rust compiler that uses the musl libc on Linux

Notifications You must be signed in to change notification settings

fzgregor/docker-rust-musl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-rust-musl

This repository contains a Dockerfile that builds an image with the rust toolchain installed, targeting the musl libc. This uses the experimental musl support that was recently merged into the compiler. Since this is experimental, things might not work! If you have a problem, please feel free to file an issue.

This image is also an automated build on the Docker hub - you can fetch it by running: docker pull andrewd/rust-musl.

How To Use

Pass the --target x86_64-unknown-linux-musl flag to cargo build. The build output will be in the ./target/x86_64-unknown-linux-musl/ directory.

Note: you might get errors about being unable to find the c library - e.g. if you're using the libc crate. The rustc script in this repository can help solve that problem - see the comment at the top of the file.

About

Docker container containing a Rust compiler that uses the musl libc on Linux

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%