slowly moving forward
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
// build.rs
|
||||
// common/build.rs
|
||||
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
tonic_build::configure()
|
||||
.build_server(true)
|
||||
.out_dir("src/proto")
|
||||
.file_descriptor_set_path("src/proto/descriptor.bin")
|
||||
.compile(
|
||||
.compile_protos( // Changed from .compile()
|
||||
&[
|
||||
"proto/common.proto",
|
||||
"proto/adresar.proto",
|
||||
|
||||
@@ -1,15 +1,20 @@
|
||||
// src/lib.rs
|
||||
// common/src/lib.rs
|
||||
pub mod proto {
|
||||
pub mod multieko2_adresar {
|
||||
include!("proto/multieko2.adresar.rs");
|
||||
}
|
||||
pub mod multieko2_common {
|
||||
include!("proto/multieko2.common.rs");
|
||||
}
|
||||
pub mod multieko2_table_structure {
|
||||
include!("proto/multieko2.table_structure.rs");
|
||||
}
|
||||
pub mod multieko2_uctovnictvo {
|
||||
include!("proto/multieko2.uctovnictvo.rs");
|
||||
pub mod multieko2 {
|
||||
pub mod adresar {
|
||||
include!("proto/multieko2.adresar.rs");
|
||||
}
|
||||
pub mod common {
|
||||
include!("proto/multieko2.common.rs");
|
||||
}
|
||||
pub mod table_structure {
|
||||
include!("proto/multieko2.table_structure.rs");
|
||||
}
|
||||
pub mod uctovnictvo {
|
||||
include!("proto/multieko2.uctovnictvo.rs");
|
||||
}
|
||||
pub const FILE_DESCRIPTOR_SET: &[u8] =
|
||||
include_bytes!("proto/descriptor.bin");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user