11 releases

0.5.0 Jul 15, 2024
0.4.1 Aug 24, 2023
0.4.0 Nov 8, 2022
0.3.1 May 20, 2022
0.2.0 Dec 23, 2019

#107 in Encoding

Download history 9182/week @ 2024-07-17 9553/week @ 2024-07-24 11301/week @ 2024-07-31 8858/week @ 2024-08-07 8794/week @ 2024-08-14 9459/week @ 2024-08-21 9548/week @ 2024-08-28 9249/week @ 2024-09-04 6812/week @ 2024-09-11 6625/week @ 2024-09-18 7736/week @ 2024-09-25 10640/week @ 2024-10-02 8811/week @ 2024-10-09 9777/week @ 2024-10-16 9827/week @ 2024-10-23 8594/week @ 2024-10-30

39,584 downloads per month
Used in 41 crates (13 directly)

MIT/Apache

155KB
3K SLoC

Crates.io docs.rs Crates.io

Compatible with rustc 1.61. Minimal rustc version bumps happen only with minor number bumps in this project.

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.4–1MB
~23K SLoC