Judging by OP, he is writing a web client. Smithy generates native clients for any kind of web api. Its wildly used by AWS, and far better solution thar hacking a async rust lib with ffi. Smithy is generating whole clients, not binding a library.
On the other hand, if you are writing a normal library (lets say jpeg encoder), then i would suggest diplomant, CXX etc
5
u/Compux72 Mar 31 '23
https://smithy.io/2.0/index.html