4 releases

0.2.2 Jan 14, 2020
0.2.1 Jan 10, 2020
0.2.0 Dec 23, 2019
0.1.0 Dec 18, 2019

#361 in Encoding

Download history 212/week @ 2020-04-05 355/week @ 2020-04-12 521/week @ 2020-04-19 378/week @ 2020-04-26 269/week @ 2020-05-03 428/week @ 2020-05-10 172/week @ 2020-05-17 279/week @ 2020-05-24 329/week @ 2020-05-31 260/week @ 2020-06-07 256/week @ 2020-06-14 177/week @ 2020-06-21 199/week @ 2020-06-28 266/week @ 2020-07-05 233/week @ 2020-07-12 269/week @ 2020-07-19

861 downloads per month
Used in 3 crates

MIT/Apache

130KB
2.5K 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 this types is also supported out of the box.

Check out doc.rs for tested code examples.

Dependencies

~0.6–1MB
~25K SLoC