0/24 уроков (0%)
– из 24
Mistakes to Avoid When Writing a Wrapper Around a C Library
YouTube·RustFest
Discover common pitfalls and best practices for creating Rust wrappers around C libraries in this 35-minute conference talk from RustFest Zürich 2017. Explore safety issues like leak safety, API design considerations, and implementation challenges. Learn how to avoid transmuting tuples, handle hidden global variables, and properly implement lock APIs. Gain insights on testing strategies, memory layout assumptions, and dealing with Rust panics. Benefit from Pierre Krieger's expertise in graphics programming and game development as he shares valuable lessons for creating robust and efficient Rust wrappers for C libraries.