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

rasn-smi

Data types for handling Structure for Management Information

51 releases (17 breaking)

0.20.2 Oct 18, 2024
0.20.0 Sep 30, 2024
0.16.0 Jul 17, 2024
0.13.1 Mar 21, 2024
0.3.1 Jul 19, 2021

#520 in Data structures

Download history 1527/week @ 2024-07-28 1280/week @ 2024-08-04 1238/week @ 2024-08-11 2314/week @ 2024-08-18 1959/week @ 2024-08-25 1600/week @ 2024-09-01 2150/week @ 2024-09-08 1592/week @ 2024-09-15 2188/week @ 2024-09-22 3041/week @ 2024-09-29 2138/week @ 2024-10-06 1506/week @ 2024-10-13 2010/week @ 2024-10-20 2391/week @ 2024-10-27 847/week @ 2024-11-03 1840/week @ 2024-11-10

7,161 downloads per month
Used in 3 crates

MIT/Apache

785KB
18K 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
~144K SLoC