bytesandbrains-core 0.2.2

Core traits and types for BytesAndBrains decentralized networking and ML protocols
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
fn main() {
    let manifest_dir = std::env::var("CARGO_MANIFEST_DIR").unwrap();
    let proto_include = format!("{manifest_dir}/src/proto");
    println!("cargo:include={proto_include}");
    println!("cargo:rerun-if-changed=src/proto");

    #[cfg(feature = "proto")]
    {
        prost_build::compile_protos(
            &["src/proto/onnx-ml.proto", "src/proto/bb_core.proto"],
            &["src/proto/"],
        )
        .unwrap();
    }
}