acyclic-inference 0.1.5

Rust SDK for immutable Inference Contexts, recoverable Runs, and warm commitments
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Generates the exact customer transport from the committed descriptor set.

use prost::Message;

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let descriptors = prost_types::FileDescriptorSet::decode(
        include_bytes!("inference_descriptor.bin").as_slice(),
    )?;
    tonic_prost_build::configure()
        .build_client(true)
        .build_server(true)
        .compile_fds_with_config(descriptors, tonic_prost_build::Config::new())?;
    println!("cargo:rerun-if-changed=inference_descriptor.bin");
    Ok(())
}