This post demonstrates how to implement plugins for Rust using QuickJS in WebAssembly for safe arbitrary code execution. It relies heavily on on the work done by Shopify with Javy (
https://github.com/Shopify/javy) but makes the deployment process easier.
I hope it is useful.