0/1 уроков (0%)
– из 1
A Rust Crate that Also Quacks Like a Modern C++ Library
YouTube·RustFest
Explore a conference talk from RustFest Paris 2018 that delves into the API design of encoding_rs, a Rust crate for character encoding conversion. Learn how this crate replaced Firefox's previous C++ encoding conversion library in version 56, and discover the API design characteristics that allowed for seamless mapping between Rust, C, and C++ interfaces. Gain insights into patterns that facilitate easy integration of Rust code into C++ codebases, focusing on the specific case study of encoding_rs. Understand how to create idiomatic C APIs and modern C++ analogs from Rust APIs, providing valuable knowledge for developers working on cross-language projects or migrating existing C++ codebases to Rust.