use std::io::Result;
fn main() -> Result<()> {
let manifest_dir = std::env::var("CARGO_MANIFEST_DIR").unwrap();
// With the streamlit symlink in place, proto files are always at streamlit/proto/*.proto
// protoc will automatically handle the imports
prost_build::Config::new()
.default_package_filename("proto")
.compile_protos(
&[
"streamlit/proto/ForwardMsg.proto",
"streamlit/proto/BackMsg.proto",
],
&[&manifest_dir],
)?;
Ok(())
}