Unwrap()Ing Rust on Embedded Linux
summary
Company migrates C to Rust progressively one file at a time, using C FFI via build.rs and the cc crate and keeping reproducible cross builds with cross (cross-rs). For Yocto use either meta-rust (builds compiler from source) or meta-rust-bin (prebuilt toolchain) depending on speed and distro. Measure size with cargo-bloat: initial hello world drops from ~4.4 MB to ~372 KB with stripping and size opts, going no_std can yield ~16 KB binary or 1.2 KB code section. Tests run from unit to qemu integration.
AI-written summary · about
chapters (12)
- 0:00Rust on embedded Linux
- 3:37Toolchain and compiler support
- 7:51Building Rust with Yocto
- 14:18Adopting Rust in projects
- 18:52Rust learning resources
- 21:19Rust borrow checker
- 24:51Errors and panics in Rust
- 27:39Rust concurrency patterns
- 30:07Optimizing Rust binary size
- 37:11Choosing size-efficient libraries
- 39:1418 months of Rust lessons
- 40:00Q&A on dynamic linking
related talks
54mUnwrap()Ing Rust on Embedded Linux
26mIntroducing Rust into a Legacy Embedded System
21mRust - Cargo Cult?
31mReally Small Rust
01h 02mRewriting of a small component from C to Rust
50mRust: Removing the Sharp Edges from Systems Programming
26mMoving to modern languages in long-living projects
01h 00mFrom Tiny Chips to Server Racks: Deploying AI Everywhere with Rust
