I'm doing the same with C++ at the moment. Hoping to get through it this time.
Then maybe swift if I feel up to it.
@cubuspl42 has had some luck with his alternative TypeScript implementation with about 50x speed boost for his use case. Just needs to be polished off for production use.
I should switch off logging in the rust version, as it will probably hurt performance. (printf debugging code). Hopefully it can be done with just a flag somewhere, so I can still debug it later.
Maybe I'll add
sodium_ctx.set_verbose(true); to the API for debugging. Because I'd still like to debug it for any issues found externally from another application that is using it.