mod proto { include!(concat!(env!("OUT_DIR"), "/routeguide.rs")); include!(concat!(env!("OUT_DIR"), "/routeguide.serde.rs")); } fn main() { serde_json::to_writer_pretty( std::io::stdout(), &proto::Point { latitude: 123, longitude: -234, }, ) .unwrap(); }