1 2 3 4 5 6 7 8
// Include generated code from proto files include!(concat!(env!("OUT_DIR"), "/proto/mod.rs")); use failure::Error; pub trait ToProto<T> { fn to_proto(&self) -> Result<T, Error>; }