espforge 0.1.24

A scaffolding++ project generator for ESP32 projects
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use anyhow::Result;
use espforge_configuration::EspforgeConfiguration;
use serde_yaml_ng::Value;

pub trait SectionProcessor {
    fn section_key(&self) -> &'static str;
    fn priority(&self) -> u32 {
        50
    }
    fn process(&self, content: &Value, model: &mut EspforgeConfiguration) -> Result<()>;
}

pub struct ProcessorRegistration {
    pub factory: fn() -> Box<dyn SectionProcessor>,
}

inventory::collect!(ProcessorRegistration);