I wanted to see if you could write DSP code in Rust then link to that code in a standard SC UGen. Well, you can! I have made an example, and very basic, UGen here:
You should be able to download and compile this with a combination of cargo and cmake. Instructions are in the ReadMe. I don’t claim this is a good idea or the best implementation, but more of a proof of concept for those of us who might like coding in Rust. It does seem efficient, though not as efficient as LFSaw.
One thing that I am unsure of is whether the destructor ever gets called in the Rust code. It should be called from the UGen destructor.