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

rasn-smi

Data types for handling Structure for Management Information

56 releases (20 breaking)

0.24.0 Jan 30, 2025
0.22.2 Jan 5, 2025
0.22.0 Nov 26, 2024
0.16.0 Jul 17, 2024
0.3.1 Jul 19, 2021

#594 in Data structures

Download history 2108/week @ 2024-10-17 2497/week @ 2024-10-24 1244/week @ 2024-10-31 1363/week @ 2024-11-07 1900/week @ 2024-11-14 1814/week @ 2024-11-21 1958/week @ 2024-11-28 2601/week @ 2024-12-05 1839/week @ 2024-12-12 720/week @ 2024-12-19 32/week @ 2024-12-26 1679/week @ 2025-01-02 1563/week @ 2025-01-09 596/week @ 2025-01-16 774/week @ 2025-01-23 767/week @ 2025-01-30

4,286 downloads per month
Used in 3 crates

MIT/Apache

1MB
20K 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

~8MB
~142K SLoC