This is an old revision of the document!
You can run rust on the pm3 by compiling a rust project for armv7-unknown-linux-gnueabihf like so:
cross build –release –target armv7-unknown-linux-gnueabihf
Because the pm3 uses an ancient version of glibc, you'll need to add a .cargo/config.toml file to your project.
[target.armv7-unknown-linux-gnueabihf]
rustflags = [“-C”, “target-feature=+crt-static”]
scp doesn't seem to work, but moving binaries to the device can still be accomplished in a number of ways and this is what occurred to hypha first.
cat target/armv7-unknown-linux-gnueabihf/release/project | ssh root@pm3ip 'cat - > /tmp/project; chmod +x /tmp/project'
As a bonus tip, you can use slint on the device for building a GUI with the slint-backend-linuxfb crate, which will software render directly to /dev/fb0
