Files
wfe/wfe-server-protos/build.rs
Sienna Meridian Satterwhite 02a574b24e style: apply cargo fmt workspace-wide
Pure formatting pass from `cargo fmt --all`. No logic changes. Separating
this out so the 1.9 release feature commits that follow show only their
intentional edits.
2026-04-07 18:44:21 +01:00

20 lines
582 B
Rust

use std::path::PathBuf;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let proto_files = vec!["proto/wfe/v1/wfe.proto"];
let out_dir = PathBuf::from(std::env::var("OUT_DIR")?);
let descriptor_path = out_dir.join("wfe_descriptor.bin");
let mut prost_config = prost_build::Config::new();
prost_config.include_file("mod.rs");
tonic_prost_build::configure()
.build_server(true)
.build_client(true)
.file_descriptor_set_path(&descriptor_path)
.compile_with_config(prost_config, &proto_files, &["proto"])?;
Ok(())
}