4 releases

✓ Uses Rust 2018 edition

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

#183 in Encoding

Download history 46/week @ 2019-12-14 44/week @ 2019-12-21 23/week @ 2019-12-28 236/week @ 2020-01-04 184/week @ 2020-01-11

142 downloads per month
Used in 1 crate

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.7–1.2MB
~27K SLoC