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>> {
|
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
tonic_build::configure()
|
tonic_build::configure()
|
||||||
.build_server(true)
|
.build_server(true)
|
||||||
.out_dir("src/proto")
|
.out_dir("src/proto")
|
||||||
.file_descriptor_set_path("src/proto/descriptor.bin")
|
.file_descriptor_set_path("src/proto/descriptor.bin")
|
||||||
.compile(
|
.compile_protos( // Changed from .compile()
|
||||||
&[
|
&[
|
||||||
"proto/common.proto",
|
"proto/common.proto",
|
||||||
"proto/adresar.proto",
|
"proto/adresar.proto",
|
||||||
|
|||||||
@@ -1,15 +1,20 @@
|
|||||||
// src/lib.rs
|
// common/src/lib.rs
|
||||||
pub mod proto {
|
pub mod proto {
|
||||||
pub mod multieko2_adresar {
|
pub mod multieko2 {
|
||||||
|
pub mod adresar {
|
||||||
include!("proto/multieko2.adresar.rs");
|
include!("proto/multieko2.adresar.rs");
|
||||||
}
|
}
|
||||||
pub mod multieko2_common {
|
pub mod common {
|
||||||
include!("proto/multieko2.common.rs");
|
include!("proto/multieko2.common.rs");
|
||||||
}
|
}
|
||||||
pub mod multieko2_table_structure {
|
pub mod table_structure {
|
||||||
include!("proto/multieko2.table_structure.rs");
|
include!("proto/multieko2.table_structure.rs");
|
||||||
}
|
}
|
||||||
pub mod multieko2_uctovnictvo {
|
pub mod uctovnictvo {
|
||||||
include!("proto/multieko2.uctovnictvo.rs");
|
include!("proto/multieko2.uctovnictvo.rs");
|
||||||
}
|
}
|
||||||
|
pub const FILE_DESCRIPTOR_SET: &[u8] =
|
||||||
|
include_bytes!("proto/descriptor.bin");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// src/main.rs
|
// src/main.rs
|
||||||
use std::env;
|
use std::env;
|
||||||
use dotenvy::dotenv;
|
use dotenvy::dotenv;
|
||||||
use multieko2::db;
|
use crate::db;
|
||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
|
|||||||
Reference in New Issue
Block a user