13 releases

0.5.2 Jan 16, 2025
0.5.1 Nov 26, 2024
0.5.0 Jul 15, 2024
0.4.1 Aug 24, 2023
0.2.0 Dec 23, 2019

#202 in Encoding

Download history 10377/week @ 2024-10-22 8521/week @ 2024-10-29 8265/week @ 2024-11-05 9061/week @ 2024-11-12 9075/week @ 2024-11-19 9801/week @ 2024-11-26 10613/week @ 2024-12-03 11649/week @ 2024-12-10 11336/week @ 2024-12-17 3881/week @ 2024-12-24 6357/week @ 2024-12-31 9685/week @ 2025-01-07 10032/week @ 2025-01-14 12207/week @ 2025-01-21 9977/week @ 2025-01-28 9188/week @ 2025-02-04

43,276 downloads per month
Used in 59 crates (16 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
~22K SLoC