“Using rust with bitbake and meta-rust”
summary
Overview of using Rust with Yocto: explains how meta-rust builds a cross-compiler, cargo and tooling, and provides a cargo bitbake tool that generates BitBake recipes from Cargo.toml, pulls transitive crates via the crate fetcher, and prevents network access during do_compile. Shows production use at Lexmark, Rust running on a 256 KB RAM microcontroller, a 400k vs 270k requests/sec HTTP benchmark, and tradeoffs: static linking inflates code size, shared std is supported, and unsafe blocks remain a manual risk.
AI-written summary · about
chapters (15)
- 0:00Intro
- 0:38Rust & Go Similarities
- 1:29Rust vs. Go
- 3:11Algebraic Data Types
- 4:59Rust enum
- 9:00No Undefined Behavior in Rust
- 9:54Rust is strongly typed
- 11:09No buffer overflow
- 14:19No iterator invalidation
- 15:41No data races
- 18:06Safe vs. Unsafe rust
- 20:08Why use rust?
- 24:02Why not use rust?
- 25:50meta-rust
- 28:38cargo-bitbake
