DEV Community

Discussion on: Creating an FFI-compatible C-ABI library in Rust

Collapse
 
jeikabu profile image
jeikabu

I’m not particularly interested in PHP, but I enjoy seeing Rust ffi shenanigans. cbindgen has been on my mind for a while but I’ve yet had occasion to use it. Anyway, interesting stuff.

Collapse
 
ojrask profile image
Otto Rask

The post cdylib and header output should work as is with non-PHP callees as well, unless I've done some shady stuff in the code that I do not understand about. :D

Thanks!

Collapse
 
jeikabu profile image
jeikabu

I only gave it a quick glance, but looks sane to me. Multi-platform development and ffi in general has given me a newfound appreciation for C. Death to c++. 🤫