Hi, guys
I'm thinking of write functions in rust, compile it to library (static/shared), and invoke them from FPC.
I searched a lot both in google/lazarus wiki/lazarus forum, but cannot find valid information about FFI related stuff.
Here are my questions:
1. is it possible to write functions in rust, compile it to static linked lib and link it in lazaru in order to build a single executable? Ideally I should build the static lib for macOS/linux/windows so I can distribute single cross-platform executable to user.
2. is it possible to build the rust functions into shared lib and invoke functions in lazarus?
If there is any document I could study about FFI, it will be much appreciated.
Any hint will be much helpful, thanks!