GPlugin is a custom plugin library that is used by libpurple3.
It currently supports C, C++, Lua, Python, and Vala and examples can be found in the documentation.
There is some experimental support for Rust in gplugin-rs but it wasn’t been tested outside of it’s initial success.