freenet-stdlib 0.0.5

Freeenet standard library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::process::Command;

fn main() {
    let status = Command::new("flatc")
        .arg("--rust")
        .arg("-o")
        .arg("src")
        .arg("../../schemas/flatbuffers/common.fbs")
        .arg("../../schemas/flatbuffers/client_request.fbs")
        .arg("../../schemas/flatbuffers/host_response.fbs")
        .status();
    if let Err(err) = status {
        println!("failed compiling flatbuffers schema: {err}");
        println!("refer to https://github.com/google/flatbuffers to install the flatc compiler");
    }
}