Calling a Rust library from Go with CGO_ENABLED=0
Stoolap is a database engine written in Rust. We ship it as a shared library so non-Rust users can call it. When I wrote the Go driver for it, I wanted the driver to work with CGO_ENABLED=0. This post is about what that took, what I borrowed from other projects, and what I had to be careful about.
Stoolap