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.
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
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++. 🤫
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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.
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!
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++. 🤫