I'm not well practiced in Rust, but that is a good idea. I have been meaning to learn Rust. Although an extension does allow for features that may not be accepted into Lemmy.
I've been considering making something like RES for Lemmy. Not sure if I really have the time, but if nobody else steps up to it in the next couple of weeks, I'll see if I can.