Our great sponsors
-
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.
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?
Yes, cross compiling with https://github.com/cross-rs/cross is relatively painless. I recommend doing that instead of compiling on the PI.
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.
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.