10 releases

0.4.1 Aug 24, 2023
0.4.0 Nov 8, 2022
0.3.1 May 20, 2022
0.3.0 Feb 2, 2022
0.2.0 Dec 23, 2019

#105 in Encoding

Download history 7735/week @ 2024-01-03 8574/week @ 2024-01-10 11081/week @ 2024-01-17 14508/week @ 2024-01-24 11254/week @ 2024-01-31 11817/week @ 2024-02-07 9560/week @ 2024-02-14 8240/week @ 2024-02-21 8443/week @ 2024-02-28 6993/week @ 2024-03-06 9689/week @ 2024-03-13 7158/week @ 2024-03-20 7098/week @ 2024-03-27 7018/week @ 2024-04-03 7571/week @ 2024-04-10 5464/week @ 2024-04-17

28,465 downloads per month
Used in 36 crates (10 directly)

MIT/Apache

155KB
3K SLoC

Crates.io docs.rs Crates.io

Compatible with rustc 1.60. 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.5–1.1MB
~26K SLoC