MaikKlein / unreal-rust

Rust integration for Unreal Engine 5
Apache License 2.0
2.11k stars 78 forks source link

Usage with rust-bindgen #28

Open Voidoz opened 1 year ago

Voidoz commented 1 year ago

Was thinking it might be possible to use the rust-bindgen package to generate ffi instead of writing it manually... Thoughts?

gedw99 commented 1 year ago

I was thinking the exact thing ..

is more sustainable

gedw99 commented 1 year ago

All the hard work has been done by @MaikKlein

the code gen just needs to shim out the code and then tap into it

MaikKlein commented 1 year ago

Yep that is quite important for the future of this project see also https://github.com/MaikKlein/unreal-rust/issues/22

gedw99 commented 1 year ago

Is the goal to create language bindings . For js, golang , etc ?

if yes then I have done it for golang if that helps?

Here is a demo example:

https://github.com/mediremi/rust-plus-golang