#asn-1 #information #rasn #der #ber #framework

rasn-smi

Data types for handling Structure for Management Information

61 releases (22 breaking)

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

#1195 in Network programming

Download history 181/week @ 2024-12-28 2176/week @ 2025-01-04 1128/week @ 2025-01-11 573/week @ 2025-01-18 923/week @ 2025-01-25 661/week @ 2025-02-01 680/week @ 2025-02-08 754/week @ 2025-02-15 722/week @ 2025-02-22 1012/week @ 2025-03-01 734/week @ 2025-03-08 440/week @ 2025-03-15 939/week @ 2025-03-22 489/week @ 2025-03-29 436/week @ 2025-04-05 438/week @ 2025-04-12

2,369 downloads per month
Used in 3 crates

MIT/Apache

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

~6MB
~122K SLoC