Search videos
View all results →
← EuroRust 2024
Generating ergonomic C++ APIs using Rustdoc, procedural macros, and Serde
EuroRust
This talk introduces a novel approach to generate C++ APIs from an existing Rust API by using procedural macros, Rustdoc, and Serde. Functions and impl blocks which should be exposed in the C++ API are annotated with a procedural macro attribute. This macro generates low level extern “C” functions for the corresponding function definitions. Arguments and return values of these functions are passed as byte buffers in this case. Ultimately, Rustdoc’s unstable JSON format is used to generate a set
Player unavailable or embedding blocked? Use the YouTube link above.