~/talk

Really Small Rust

Talkat RustWeek 2025 · 2025-05-13..05-17· [rust, embedded-and-hardware]
slides:none on file

Claims that Rust runs on tiny firmware with only kilobytes of resources and shipping hardware get proved with concrete numbers and tools: building for a 37¢ STM32C011 yields an empty release binary of ~260 B (192 B vector table, 68 B code including 60 B runtime startup), measured with cargo, size, readelf and nm; turning on LTO and opt-level = "s" and using panic-halt vs semihosting (≈4 KB cost) changes flash by kilobytes; examples include Hubris OS and oxide firmware with 1–1.5 KB demos and practical tips like monomorphization hacks, const vs static and zero-init to avoid flash bloat.

AI-written summary · about

  1. 0:00Introduction to scaling down
  2. 0:35Microcontrollers explained
  3. 1:38Inside the chip package
  4. 2:55Integration and features
  5. 4:04Understanding constraints
  6. 5:05Why choose modern chips
  7. 6:24Compiling Rust for small chips
  8. 7:29Analyzing binary contents
  9. 8:26Inlining and optimizations
  10. 10:49Configuration for small code
  11. 11:47Handling panics
  12. 14:13Writing idiomatic small code
  13. 17:28The role of unsafe
  14. 17:54Const versus static
  15. 19:16Managing zero-initialized RAM
  16. 21:54Passing data by reference
  17. 23:11Conclusion and resources
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.