{"repo":"Ragnaroek/rust-on-raspberry-docker","free":true,"listed":false,"github":"https://github.com/Ragnaroek/rust-on-raspberry-docker","clone":"git clone https://github.com/Ragnaroek/rust-on-raspberry-docker.git","description":"cross compiling rust for the raspberry pi in a docker container","language":"Shell","stars":82,"topics":["cross-compiler","docker-image","rust-compiler","raspberry-pi"],"license":"GPL-3.0","category":"deployment-docker-iac","readme_excerpt":"Updates Beginning with Rust version 1.78.0 the docker images will be based on Debian bookworm . Please report any issues you have with this update in the issue section of this repo. Cross compiling with Docker The native process, as described in https://github.com/Ogeon/rust-on-raspberry-pi, for cross-compiling for the Raspberry Pi sets some environment variables and writes to config files on your host machine. Thus it can be difficult to remember these changes when you want to remove or upgrade the cross compiler or even repeat that process for different versions of rust on the same machine. To make cross-compiling Rust code for the Raspberry easier you can use the Docker image as build from the code in this repository for building your rust code but. Basically the steps for cross compiling your project with the help of docker look like: 1. Pulling the Docker image from the dockerhub 2. Running a Docker container from that Docker image which takes your rust project (and it's platform dependencies) and then cross compiles it You can optionally build the docker image yourself. This may be necessary if depend on stuff that is not in the image provided on the dockerhub. See section \"Building your own Docker image\" for a detailed instruction on how to build the image yourself. Cross compiling your project with the image from the dockerhub You need to pull the image first from the dockerhub (assuming you have docker installed): where is the Rust compiler version. The docker images","default_branch":null,"files":null,"tree":[],"storefront":"/r/Ragnaroek","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Ragnaroek/rust-on-raspberry-docker/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}