Skip to content
martintPublic

About

Environment for cross compiling Rust programs to various platforms

Resources

Stars

4 stars

Watchers

1 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

This is a docker image that contains an environment for cross-compiling Rust projects to the following platforms:

  • aarch64-unknown-linux-gnu
  • x86_64-unknown-linux-gnu
  • powerpc64le-unknown-linux-gnu
  • x86_64-apple-darwin
  • aarch64-apple-darwin

To use it:

docker run --mount type=bind,source="$(pwd)",target=/mnt ghcr.io/martint/rustxc:latest \
    cargo build \
      --target powerpc64le-unknown-linux-gnu \
      --target x86_64-unknown-linux-gnu \
      --target aarch64-unknown-linux-gnu \
      --target x86_64-apple-darwin \
      --target aarch64-apple-darwin

To build the image locally:

docker build . -t rustxc

To rebuild and publish the image manually, open the repository's Actions tab, select Docker (manual), and click Run workflow. The workflow must first be merged into the default branch. You can also trigger it with the GitHub CLI:

gh workflow run docker-publish-manual.yml --ref master

Each manual build pulls fresh base images to update the Rust toolchain, builds for AMD64 and ARM64, and publishes to ghcr.io/martint/rustxc:latest.

Resources

About

Environment for cross compiling Rust programs to various platforms

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages