I've been playing around with Rust bindings for wlroots. Help from people familiar with Rust would be welcome!
https://git.sr.ht/~emersion/wlroots-rs/tree/master/item/wlroots-sys/examples/basic.rs
@emersion Playing with rust and pointer arithmetic, what a brave man.
Be careful about offset_of. It will UB, should $field contain any kind of smart pointer, because field access automatically dereferences variables to the struct type.
rip C arrows
This looks great otherwise!!! I'm sure "Beyond Memory Safety with Types (2016)" from @InsanityBit@twitter.com will come in handy!
Good luck!
@hubert Ah, I see, thanks!