From 6a164e7e38a35a7d9ecf3ca304e9347de6693f34 Mon Sep 17 00:00:00 2001 From: meelon-dev <0xmeel0n@gmail.com> Date: Sat, 14 Feb 2026 09:47:03 +0100 Subject: [PATCH] fix: make build.rs example compile by adding anyhow imports and Result return --- proto/README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/proto/README.md b/proto/README.md index cc5fa92ec1..489a7b64fe 100644 --- a/proto/README.md +++ b/proto/README.md @@ -13,8 +13,9 @@ generates the RPC component bindings and writes them into the `src/generated` di ```rust use std::{fs, path::PathBuf, env}; use miden_node_proto_build::rpc_api_descriptor; +use anyhow::{Context, Result}; -fn main() { +fn main() -> Result<()> { let crate_root: PathBuf = env::var("CARGO_MANIFEST_DIR").unwrap().into(); let dst_dir = crate_root.join("src").join("generated"); @@ -31,6 +32,8 @@ fn main() { .build_server(false) // this setting generates only the client side of the rpc api .compile_fds_with_config(prost_config, file_descriptors) .context("compiling protobufs")?; + + Ok(()) } ```