I'm currently building Rust to C bindings for libpcap and WinPcap, and was wondering if there were references out there I could read up on to learn what idiomatic Rust language bindings look like.
So far, I'm aware of the unsafe chapter in TRPL, the blog post Manish wrote about SDL bindings, and the existence of the bindgen crate that could automate the whole process for me anyway, at least for the raw bindings.
@vitalyd I have, the problem is that the code needs to be restructured into smaller files, and I felt that the time I spent getting up to speed understanding how best to do that could be spent on getting my own workflow going. The aim of this is to further my understanding of the problem domain.
@kornel Funny you mention this approach, someone I met today working on Rust bindings told me the exact same thing :). Thanks heaps for your guide, I'll take a look at it!