Registry / serialization / asn1-rs

asn1-rs

JSON →
library0.7.2rscratesunverified

Parser and encoder for ASN.1 BER/DER data, supporting a wide range of ASN.1 types.

# Cargo.toml [dependencies] asn1-rs = "0.7.2"
INSTALL
IMPORT
SIG · ASN1-RS
A
asn1-rs
serializationrustv0.7.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

from_der
✓ use asn1_rs::from_der;

Decode a DER-encoded ASN.1 integer.

use asn1_rs::from_der; fn main() -> Result<(), asn1_rs::Error> { let data = &[0x02, 0x01, 0x2a]; // DER-encoded integer 42 let (_, integer) = from_der::<i32>(data)?; println!("Decoded integer: {}", integer); Ok(()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.7.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
33 hits · last 30 days
node
30
OpenAI (training)
1
Resources
asn1-rs — cargo add asn1-rs · libregistry