rlvgl 0.2.4

A modular, idiomatic Rust reimplementation of the LVGL graphics library for embedded and simulator use.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Nordic YAML adapter used in BSP tests.
//!
//! Converts vendor-supplied YAML directly into the generic [`Ir`] structure
//! without additional processing. This demonstrates how non-STM32 boards can
//! feed the generator pipeline without vendor-specific tables.

use crate::ir::Ir;
use anyhow::Result;

/// Parse a YAML specification into [`Ir`].
///
/// # Errors
/// Returns any `serde_yaml` parsing failures.
pub fn yaml_to_ir(text: &str) -> Result<Ir> {
    let spec: Ir = serde_yaml::from_str(text)?;
    Ok(spec)
}