#information #rasn #der #asn-1 #rasn-smi

rasn-smi

Data types for handling Structure for Management Information

63 releases (22 breaking)

new 0.26.4 Apr 29, 2025
0.26.1 Mar 28, 2025
0.22.0 Nov 26, 2024
0.16.0 Jul 17, 2024
0.3.1 Jul 19, 2021

#7 in #rasn

Download history 2012/week @ 2025-01-07 941/week @ 2025-01-14 715/week @ 2025-01-21 877/week @ 2025-01-28 521/week @ 2025-02-04 724/week @ 2025-02-11 731/week @ 2025-02-18 719/week @ 2025-02-25 1212/week @ 2025-03-04 559/week @ 2025-03-11 639/week @ 2025-03-18 796/week @ 2025-03-25 393/week @ 2025-04-01 467/week @ 2025-04-08 618/week @ 2025-04-15 558/week @ 2025-04-22

2,147 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