1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#![allow(incomplete_features)]
#![allow(dead_code)]
#![allow(unused_imports)]
#![allow(unused_must_use)]
#![allow(unused_variables)]
//
mod db;
mod models;
mod mylog;
mod mymap;
mod myreflect;
mod mystring;
mod api;
mod cl;
mod configs;
mod myerror;
mod myif;
mod myjson;
mod myok;
mod mysome;
mod mystruct;
mod mytime;
mod daemon;
mod myshell;
mod tests;
mod myfield;
mod myparameter;
mod mygrpc;
mod gpbs;
mod grpcs;
mod cin;
mod myhttp;
mod myfile;
// pub use mystring::*;
// pub use configs::MysqlConfig;
// pub use myerror::MyError;
// pub use myjson::*;
use std::time;
use tracing::span;
use usc::gpbs::default::default_service_server::DefaultServiceServer;
//use tonic::{transport::Server, Request, Response, Status};
// use grpcprotos::{WorkwechatText,test_grpcserver::{WorkwechatTextService,WorkwechatText}};
//
// pub mod grpcprotos {
// tonic::include_proto!("grpcprotos");
// }
#[actix_web::main]
async fn main() -> std::io::Result<()> {
// let iface_files = &["grpcprotos/workwechat_text.proto"];
// let dirs = &["."];
// tonic_build::configure()
// .build_server(true)
// .compile(iface_files, dirs)
// .unwrap_or_else(|e| panic!("protobuf compilation failed: {}", e))
//mygrpc::grpcserver::start_server(vec![grpcs::default_business::DefaultBusiness::server()],true);
tests::test_myshell::main();
Ok(())
}