#abstraction #beagle #org #generate #parser #image #beagle-board

bb-config

A library providing abstractions for parsing and generating BeagleBoard.org disros.json

1 unstable release

Uses new Rust 2024

new 0.1.0 Mar 19, 2025

#35 in #org

Download history 57/week @ 2025-03-14

57 downloads per month

MIT license

17KB
155 lines

BB Config

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.

Usage

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();

lib.rs:

Introduction

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.

Usage

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();

Dependencies

~3.5–5MB
~88K SLoC