skynet_api_monitor 0.8.0

API for Skynet monitor plugin.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::{io::Result, path::PathBuf};
use walkdir::WalkDir;

fn main() -> Result<()> {
    prost_build::compile_protos(
        &WalkDir::new("proto")
            .into_iter()
            .filter(|e| {
                e.as_ref()
                    .is_ok_and(|e| e.path().extension().is_some_and(|e| e == "proto"))
            })
            .map(|e| e.unwrap().into_path())
            .collect::<Vec<PathBuf>>(),
        &["proto"],
    )?;
    Ok(())
}