
How to write a dynamic plugin system for a Rust app
Photo by Susan Q Yin on Unsplash Dynamic plugins let you add new features to an application without rebuilding it. You compile a plugin into a shared library, put it next to your app, and the app loads it when needed. This is how text editors load syntax highlighting, game engines load mods, and servers load additional handlers. I’ve done that in the past with C++ but I was wondering how to do this in Rust, so decided to check it. Turns out, Rust supports this, but there’s one important thing to know: Rust does not have a stable ABI. ...






