Sign inSign up

dhy1996/rust-cc

By dhy1996

•Updated over 6 years ago

cross compiler for rust projects. Tags are <RUSTUP-TARGET>_<GLIBC-VERSION>. From rust:1.41.0

Image
0

396

dhy1996/rust-cc repository overview

⁠Interactive version

tags suffixed with _it are interactive - they are basically rust images with the cross compiler target dependencies installed and are supposed to be able to have terminals started in them.

⁠Executable version

tags not suffixed with _it are executables and are supposed to be ran as such

docker run -v /path/to/rust/project:/proj dhy1996/rust-cc:<TAG>

If Cargo.toml pulls from private git repos, you can mount your .ssh directory with -v /home/your_account/.ssh:/home/user/.ssh

Essentially just runs cargo build --release --target=<RUSTUP-TARGET> in a docker container

Output will be in /path/to/rust/project/target/<RUSTUP-TARGET> , same as if you just compiled on the host.

Linkers available in images: aarch64-linux-gnu-gcc for arm64, arm-linux-gnueabihf-gcc for arm32hf. Don't forget to set those in your cargo config!

Tag summary

Content type

Image

Digest

Size

300.5 MB

Last updated

over 6 years ago

docker pull dhy1996/rust-cc:aarch64-unknown-linux-gnueabihf_2.24_it_root