| Crates.io | rasn-smi |
| lib.rs | rasn-smi |
| version | 0.27.2 |
| created_at | 2021-07-18 19:26:22.62725+00 |
| updated_at | 2025-08-30 08:48:44.07545+00 |
| description | Data types for handling Structure for Management Information |
| homepage | |
| repository | https://github.com/librasn/rasn.git |
| max_upload_size | |
| id | 424460 |
| size | 44,948 |
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();