| Crates.io | srex |
| lib.rs | srex |
| version | 0.1.0 |
| created_at | 2024-07-10 15:11:28.235622+00 |
| updated_at | 2024-07-10 15:11:28.235622+00 |
| description | Library for managing SRecord files. |
| homepage | |
| repository | https://github.com/krabbstek/srex |
| max_upload_size | |
| id | 1298412 |
| size | 83,602 |
Srex is a library for parsing SRec files.
use std::{fs, str::FromStr};
use srex::srecord::SRecordFile;
let srecord_str = fs::read_to_string("path/to/file.s37").unwrap();
let srecord_file = SRecordFile::from_str(&srecord_str).unwrap();
// Get data at address 0x123
let x: u8 = srecord_file[0x123];
println!("Data at address 0x123: {x}");
:warning: This tool is currently being built and may see large changes in future commits.