User Tools

Site Tools


rust

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
rust [2026-02-22 16:48 UTC (3 months ago)] whitetailanirust [2026-04-11 00:46 UTC (7 weeks ago)] (current) – add framebuffer link here 1e1001
Line 4: Line 4:
 You can run rust on the pm3 by compiling a rust project for ''armv7-unknown-linux-gnueabihf'' like so: 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''+  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. 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] 
-[target.armv7-unknown-linux-gnueabihf] +  rustflags = ["-C", "target-feature=+crt-static"]
-rustflags = ["-C", "target-feature=+crt-static"] +
-''+
  
 <del>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. <del>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.
Line 19: Line 17:
 scp works fine provided the -O (legacy) flag is provided. scp works fine provided the -O (legacy) flag is provided.
  
-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+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 ([[framebuffer]])
  
rust.1771778907.txt.gz · Last modified: by whitetailani