20
Is there a standard/trusted cryptography crate written in pure rust?
(sh.itjust.works)
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Credits
aws-lc-rs is probably the most popular but also quite annoying because it uses C, so cross-compiling is a bit of a pain. I only managed to do it thanks to cargo zigbuild which is amazing. (And kind of embarrassing that Rust has to use Zig to get a nice cross-compiling UX, but hey it works.)
The other one is ring, which I'm not really sure the status of but I recall they had some super weird versioning policies that weren't very popular.
As in
crossdidn't work for this?crossrequires Docker which is a really awkward dependency, especially on Windows and Mac, or if you're already in Docker, e.g. in CI or a dev container.Plus it's quite slow. Cargo zigbuild was a much nicer solution when I finally resorted to it. Zig is easy to install, even on Debian - just download and untar.