Skip to content
A Rust Crate that also quacks like a modern C++ Library (rustfest18) episode artwork

May 25, 2018 30 min

A Rust Crate that also quacks like a modern C++ Library (rustfest18)

from Chaos Computer Club - archive feed (high quality) Hosted by Henri Sivonen

In Firefox 56, the encoding_rs character encoding conversion crate replaced Firefox’s previous encoding conversion library that was written in C++. This talk examines the API design characteristics that allowed the Rust API of encoding_rs to be mapped to an idiomatic C API and how it was possible to re-create an almost exact modern C++ analog of the Rust API on top of the C API. Rather than trying to cover the mapping of an arbitrary Rust API to C++, this talk focuses on patterns that are easy to map to C++ to help others to aim for such patterns when bringing Rust to C++ code bases. about this event: https://c3voc.de

Episode details come from the podcast's RSS feed.

Embed this episode

Ready to play

A Rust Crate that also quacks like a modern C++ Library (rustfest18)

0:00 30:48

No transcript yet.

Requests help us decide what to transcribe next.

Frequently asked questions

How long is this episode of Chaos Computer Club - archive feed (high quality)?

This episode is 30 minutes long.

When was this Chaos Computer Club - archive feed (high quality) episode published?

This episode was published on May 25, 2018.

Can I download this Chaos Computer Club - archive feed (high quality) episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.