Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion proto/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand All @@ -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(())
}
```

Expand Down