Thanks to visit codestin.com
Credit goes to lib.rs

#json #abstraction #beagle #beagle-board

bb-config

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

1 unstable release

Uses new Rust 2024

0.1.0 Mar 19, 2025

#1477 in Configuration

MIT license

17KB
155 lines

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

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

Dependencies

~4–5.5MB
~96K SLoC