Installing Rust in a Raspberry Pi 3A+

This page summarizes the projects mentioned and recommended in the original post on /r/rust

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • Rustup

    The Rust toolchain installer

  • Don't get me wrong, please. This ain't a rant against rustup. I love the tool and really appreciate all the work behind it. I am just curious about your opinion on whether we should push to have an installer that is more benevolent. This has been reported before, but the conclusion was that 512MB was too tight for Rust development. What do you think?

  • cross

    “Zero setup” cross compilation and “cross testing” of Rust crates

  • Yes, cross compiling with https://github.com/cross-rs/cross is relatively painless. I recommend doing that instead of compiling on the PI.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • moonfire-nvr

    Moonfire NVR, a security camera network video recorder

  • But I would definitely avoid compiling Rust on the Raspberry Pi 3 if you can avoid it. I set up a Docker cross-compile environment for this reason.

  • Vagrant

    Vagrant is a tool for building and distributing development environments.

  • And, for the record, if you ever need to do something cross falls down on and Docker isn't suited to (eg. some of my sites are on a shared webhost that uses FreeBSD), the simplest way I've found is to use Vagrant with a script like this to run inside Vagrant to copy the project in, trigger a build, and then copy the binary out.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts