1 2 3 4 5 6 7 8 9 10 11 12
use std::process; fn main() { let protoc_bin_path = match protoc_bin_vendored::protoc_bin_path() { Ok(p) => p, Err(e) => { eprintln!("protoc binary not found: {}", e); process::exit(1); } }; println!("{}", protoc_bin_path.display()); }