I gave a presentation and demo on "Using Rust with Yocto Project" at the Yocto Project (Virtual) Summit Europe 2020 on 22nd October 2020. I introduced a couple of simple applications written in Rust and showed how to use the cargo-bitbake tool to automatically generate Yocto Project recipes for each project. I also discussed how the Cargo build tool and package manager interacts with the license compliance features provided by Yocto Project.

Summary

The Rust programming language has been named the "most loved programming language" in the Stack Overflow Developer Survey every year since 2016. However, many Embedded Linux developers are unfamiliar with this language and with the benefits it can provide. There is also a knowledge gap on how to build and deploy software written in Rust using OpenEmbedded and Yocto Project.

This session will focus on demonstrating how to use Rust with Yocto Project. Two basic applications will be written along with the metadata needed by the Cargo build tool. Yocto Project recipes will be generated for each application and added to a layer. An image will then be built containing both applications and this will be tested out under qemu. In addition some brief thoughts on how Rust and the Cargo build tool interact with the license compliance features of Yocto Project will be discussed. This talk is aimed at an intermediate audience. No familiarity with the Rust programming language is assumed.

Video

Slides