picky-asn1-der

Crates.iopicky-asn1-der
lib.rspicky-asn1-der
version0.4.1
sourcesrc
created_at2019-12-18 18:50:59.936658
updated_at2024-07-15 02:04:57.474803
descriptionAn ASN.1-DER subset for serde
homepage
repositoryhttps://github.com/Devolutions/picky-rs
max_upload_size
id190359
size92,720
BenoƮt Cortier (CBenoit)

documentation

README

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.

Commit count: 682

cargo fmt