I’m pretty sure Rust doesn’t allow this, but I’m not 100% sure.
Always a good starting point: rust.audio and Ian Hobson - An introduction to Rust for audio developers
Just discovered someone wrote up pure data bindings for rust: https://github.com/x37v/puredata-rust and they created some macros and build scripts for making externals. Unfortunately something’s up with the packaging and I wasn’t able to get it fully working last night (building worked but doesn’t output a useable .pd_linux), hopefully better luck today!
figured out the build step, it was entirely naming.
[package]
[lib]