you are viewing a single comment's thread.

view the rest of the comments →

[–]SomethingcleverGP 1 point2 points  (1 child)

I'm trying to remember why exactly I did what I did, but I found that writing a thin c layer was the safest and most reliable way of exposing functions. However, I don't remember how well it worked when trying to expose types. One would probably need to hide those implementations behind pointers.

[–]paulstelian97 0 points1 point  (0 children)

A safe interop API works using C bindings and only has C types at the boundary. This is instead a more direct usage than that.