Hey, relatively new to rust, I wanted to try my hand at using it for more than just a algo problem or two.
I've been wanting to build a cross editor snippet library, I originally planned on doing this in python, but after learning about PyO3 I decided to handle the snippet data structure(implemented as a trie ending in a struct containing snippet data) in rust, with the majority of the logic(such as handling editor input and deciding when to check for a set of snippets) being handled in python. I planned on doing this in kakoune, but I'm wondering if this could be possible in vscode, which would require interfacing with typescript. Neon, at first glance, seems to have it's own set of data structures which means I couldn't use it along side PyO3.
I know there are methods to creating multilanguage bindings for a library, given than OpenCV is available in almost every language I can think of, but I have no idea how this would work in rust. I could use something like a macro to change the language specific parts and generate multiple versions of the same file, but I'm not sure there isn't an alternative that would guarantee consistency across language implementations.