rlvgl 0.2.1

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
//! Schema command for rlvgl-creator.
//!
//! Outputs a JSON schema describing the manifest structure.

use anyhow::Result;

use crate::manifest::Manifest;
use schemars;
use serde_json;

/// Emit the manifest JSON schema to stdout.
pub(crate) fn run() -> Result<()> {
    let schema = schemars::schema_for!(Manifest);
    println!("{}", serde_json::to_string_pretty(&schema)?);
    Ok(())
}