| Crates.io | bb-config |
| lib.rs | bb-config |
| version | 0.1.0 |
| created_at | 2025-03-19 14:45:56.661724+00 |
| updated_at | 2025-03-19 14:45:56.661724+00 |
| description | A library providing abstractions for parsing and generating BeagleBoard.org disros.json |
| homepage | |
| repository | https://openbeagle.org/ayush1325/bb-imager-rs |
| max_upload_size | |
| id | 1598072 |
| size | 61,742 |
BeagleBoard.org maintains a json file with the list of all board images which can be used by applications (like BeagleBoard Imaging Utility) to get a list of latest images for each board.
This crate provides abstractions to parse and generate distros.json file.
let config: bb_config::Config = reqwest::blocking::get(bb_config::DISTROS_URL)
.unwrap()
.json()
.unwrap();
// Convert back to JSON
let json_config = serde_json::to_string_pretty(&config).unwrap();