michalrus/esp-rust-nix-sandbox: Nix devshell for Rust on ESP/ESP32. Pre-built compiler runs in a strict Bubblewrap sandbox.
github.com·3d·
Discuss: r/NixOS
🐧Rust for Linux
Preview
Report Post

esp-rust-nix-sandbox

Nix devshell for Rust on ESP/ESP32. Pre-built compiler runs in a strict Bubblewrap sandbox.

Supports Xtensa (ESP32) and RISC-V 32-bit (ESP32-C3 / ESP32-C2 / ESP32-C6 / ESP32-H2 / …).

Rationale

The ESP Rust toolchain story is a bit unusual, because the Xtensa architecture support is not yet available in the mainline Rust:

  • The esp-rs/rust fork ships pre-built rustc/rustdoc binaries.
  • It’s similar with Espressif ESP GCC toolchain.
  • Those binaries are big, powerful, and hard to audit.
  • At the same time, fully rebuilding the forked compiler from source in every project is slow, fragile, and requires lots of RAM. Not to mention reading the actual changes made to mainl…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help