#codec #encoding-rules #asn-1 #ietf-rfc #data-encoding #information

rasn-smi

Data types for handling Structure for Management Information

55 releases (19 breaking)

new 0.23.0 Jan 25, 2025
0.22.0 Nov 26, 2024
0.16.0 Jul 17, 2024
0.13.1 Mar 21, 2024
0.3.1 Jul 19, 2021

#586 in Data structures

Download history 1519/week @ 2024-10-09 1636/week @ 2024-10-16 2668/week @ 2024-10-23 1728/week @ 2024-10-30 1037/week @ 2024-11-06 1723/week @ 2024-11-13 2233/week @ 2024-11-20 1224/week @ 2024-11-27 3401/week @ 2024-12-04 1578/week @ 2024-12-11 1039/week @ 2024-12-18 34/week @ 2024-12-25 1097/week @ 2025-01-01 1962/week @ 2025-01-08 635/week @ 2025-01-15 634/week @ 2025-01-22

4,328 downloads per month
Used in 3 crates

MIT/Apache

1MB
19K SLoC

Structure of Management Information

rasn-smi is an implementation of the ASN.1 data types from the IETF RFCs 1155 and 2578 on the Structure of Management Information the rasn codec framework. These definitions are both transport layer agnostic, and encoding rule agnostic.

// Replace with your data.
let data: &[u8] = &[];
// Decode object from BER.
let object: rasn_smi::v2::ObjectSyntax = rasn::ber::decode(&data).unwrap();
// Encode it back into DER
let data = rasn::der::encode(&object).unwrap();

Dependencies

~7.5MB
~142K SLoC