You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use prost_build;fnmain(){letmut prost_build = prost_build::Config::new();
prost_build.include_file("proto_mod.rs");
prost_build
.compile_protos(&["proto/common/header.proto","proto/module/header.proto","proto/module/items.proto",],&["."],).unwrap();}
proto_mod.rs:
// This file is @generated by prost-build.pubmod common {pubmod header {include!(concat!(env!("OUT_DIR"), "/common.header.rs"));}}pubmod module {pubmod header {include!(concat!(env!("OUT_DIR"), "/module.header.rs"));}pubmod items {include!(concat!(env!("OUT_DIR"), "/module.items.rs"));}}
project directories
common/header.proto:
module/header.proto:
module/items.proto:
build.rs
build output:
mod.rs:
The text was updated successfully, but these errors were encountered: