#beagle #json

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

#335 in Configuration

Download history 140/week @ 2025-03-19 6/week @ 2025-03-26

146 downloads per month

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

~3.5–5MB
~88K SLoC