49 releases (18 breaking)

new 0.20.0 Nov 21, 2024
0.18.0 Oct 24, 2024
0.16.2 Jun 2, 2024
0.16.1 Mar 4, 2024
0.1.0 Jul 21, 2015

#55 in Parser implementations

Download history 52714/week @ 2024-08-01 53134/week @ 2024-08-08 45710/week @ 2024-08-15 52622/week @ 2024-08-22 50214/week @ 2024-08-29 52956/week @ 2024-09-05 48235/week @ 2024-09-12 45369/week @ 2024-09-19 51270/week @ 2024-09-26 54470/week @ 2024-10-03 53882/week @ 2024-10-10 60605/week @ 2024-10-17 60713/week @ 2024-10-24 55411/week @ 2024-10-31 56135/week @ 2024-11-07 51480/week @ 2024-11-14

234,509 downloads per month
Used in 5 crates

BSD-3-Clause

195KB
5K SLoC

rust-asn1

Dependency Status Documentation

This is a Rust library for parsing and generating ASN.1 data (DER only).

Installation

Add asn1 to the [dependencies] section of your Cargo.toml:

[dependencies]
asn1 = "0.20"

Builds on Rust 1.59.0 and newer.

rust-asn1 is compatible with #![no_std] environments:

asn1 = { version = "0.20", default-features = false }

Changelog

[0.20.0]

🚨 Breaking changes

  • Removed Writer::{write_explicit_element, write_optional_explicit_element, write_implicit_element, write_optional_implicit_element}. These can all be better accomplished with the asn1::Explicit and asn1::Implicit types.

Fixes

[0.19.0]

🚨 Breaking changes

  • GeneralizedTime has been renamed to X509GeneralizedTime. The type does not allow fractional seconds, however this restriction is not actually a DER rule, it is specific to X.509. (#494)

  • GeneralizedTime is a new type that accepts fractional seconds replacing the old GeneralizedTime. (#492)

  • #[derive(asn1::Asn1Read)] and #[derive(asn1::Asn1Write)] now implement "perfect derives". (#496)

Dependencies

~225–670KB
~16K SLoC