▲ | nicce a day ago | |||||||||||||||||||||||||
There is also rasn library for Rust that now supports most of the codecs (BER/CER/DER/PER/APER/OER/COER/JER/XER). Disclaimer: I have contributed a lot recently. OER codec (modern flair of ASN.1) is very optimized (almost as much as it can be with safe Rust and without CPU specific stuff). I am still working with benchmarking results, which I plan to share in close future. But it starts to be the fastest there is in open-source world. It is also faster than Google's Protobuf libraries or any Protobuf library in Rust. (naive comparison, no reflection support). Hopefully other codecs could be optimized too. | ||||||||||||||||||||||||||
▲ | cryptonector 15 hours ago | parent | next [-] | |||||||||||||||||||||||||
Neat! I do object to the idea that one should manually map ASN.1 to Rust (or any other language) type definitions because that conversion is going to be error-prone. I'd rather have a compiler that generates everything. It seems that rasn has that, yes? https://github.com/librasn/compiler | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||
▲ | lilyball 19 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||
This one looks interesting. A few years ago I looked at all of the Rust ASN.1 libraries I could find and they all had various issues. I'm a little surprised I didn't find this one. | ||||||||||||||||||||||||||
▲ | a day ago | parent | prev | next [-] | |||||||||||||||||||||||||
[deleted] | ||||||||||||||||||||||||||
▲ | timewizard a day ago | parent | prev [-] | |||||||||||||||||||||||||
[flagged] | ||||||||||||||||||||||||||
|