#asn-1 #information #ber #codec #der #encoding-rules #framework

rasn-smi

Data types for handling Structure for Management Information

60 releases (22 breaking)

new 0.26.1 Mar 28, 2025
0.25.1 Mar 9, 2025
0.22.0 Nov 26, 2024
0.16.0 Jul 17, 2024
0.3.1 Jul 19, 2021

#1139 in Network programming

Download history 2498/week @ 2024-12-06 1760/week @ 2024-12-13 348/week @ 2024-12-20 97/week @ 2024-12-27 2063/week @ 2025-01-03 1232/week @ 2025-01-10 556/week @ 2025-01-17 936/week @ 2025-01-24 703/week @ 2025-01-31 527/week @ 2025-02-07 745/week @ 2025-02-14 796/week @ 2025-02-21 948/week @ 2025-02-28 858/week @ 2025-03-07 470/week @ 2025-03-14 641/week @ 2025-03-21

3,019 downloads per month
Used in 3 crates

MIT/Apache

1MB
23K 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
~147K SLoC