6 releases

0.2.5 May 27, 2021
0.2.4 Aug 31, 2020
0.2.2 Jan 14, 2020
0.2.0 Dec 23, 2019
0.1.0 Dec 18, 2019

#92 in Encoding

Download history 1109/week @ 2021-02-26 711/week @ 2021-03-05 1032/week @ 2021-03-12 629/week @ 2021-03-19 563/week @ 2021-03-26 667/week @ 2021-04-02 744/week @ 2021-04-09 494/week @ 2021-04-16 733/week @ 2021-04-23 2047/week @ 2021-04-30 1870/week @ 2021-05-07 1245/week @ 2021-05-14 686/week @ 2021-05-21 894/week @ 2021-05-28 1447/week @ 2021-06-04 764/week @ 2021-06-11

4,075 downloads per month
Used in 4 crates

MIT/Apache

130KB
3K SLoC

Crates.io docs.rs Crates.io

picky-asn1-der

Portions of project serde_asn1_der are held by Keziah Biermann, 2019 as part of this project.

This crate implements an ASN.1-DER subset for serde.

The following types have built-in support:

  • bool: The ASN.1-BOOLEAN-type
  • u8, u16, u32, u64, u128, usize: The ASN.1-INTEGER-type
  • (): The ASN.1-NULL-type
  • &[u8], Vec<u8>: The ASN.1-OctetString-type
  • &str, String: The ASN.1-UTF8String-type

More advanced types are supported through wrappers:

  • Integer (as big integer)
  • Bit String
  • Object Identifier
  • Utf8 String
  • Numeric String
  • Printable String
  • IA5 String
  • Generalized Time
  • UTC Time
  • Application Tags from 0 to 15
  • Context Tags from 0 to 15

Everything sequence-like combined out of these types is also supported out of the box.

Check out doc.rs for tested code examples.

Dependencies

~0.7–1.3MB
~30K SLoC