"Nine Rules for Elegant Rust Library APIs" (September 2022)

Описание к видео "Nine Rules for Elegant Rust Library APIs" (September 2022)

Presented by Carl Kadie on September 4th, 2022.

Article:   / nine-rules-for-elegant-rust-library-apis  

Slides: https://1drv.ms/p/s!AkoPP4cC5J64z6c1r...

Abstract: "I love creating software libraries. Four months ago, I started porting one of our Python packages into a Rust crate. Getting the Rust crate to match the Python package’s ease of use and expressiveness was not easy. To make it easier going forward, however, I learned nine rules that can help you create beautiful libraries in Rust.

The rules range from the general (“Create examples that don’t embarrass you”) to the specific (How to “[a]ccept all kinds of strings, paths, vectors, arrays, and iterables.”). In addition to the rules, I’ll talk about what makes Rust more challenging than Python for library creators. Even if you’re only making libraries for yourself, there should be something of interest to developers of all levels."

Комментарии

Информация по комментариям в разработке