Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Generating Ergonomic C++ APIs Using Rustdoc, Procedural Macros, and Serde

RustLab Conference via YouTube

Overview

Watch a 24-minute conference talk from RustLab that explores an innovative approach to generating ergonomic C++ APIs from existing Rust code. Learn how to combine procedural macros, Rustdoc's unstable JSON format, and Serde to create seamless integration between Rust and C++ codebases. Discover a production-tested framework that uses procedural macro attributes to generate extern "C" functions, handles data serialization across FFI interfaces, and produces both low-level bindings and high-level C++ APIs. Compare this solution with alternatives like cbindgen and cxx while understanding its performance trade-offs and benefits. Master the techniques for creating more developer-friendly API surfaces on both the Rust and C++ sides, making cross-language code integration more maintainable and efficient.

Syllabus

Generating ergonomic C++ APIs using Rustdoc, procedural macros, and Serde - Björn Wieczoreck

Taught by

RustLab Conference

Reviews

Start your review of Generating Ergonomic C++ APIs Using Rustdoc, Procedural Macros, and Serde

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.