-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.rs
36 lines (35 loc) · 990 Bytes
/
build.rs
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
use std::io::Result;
fn main() -> Result<()> {
// env::set_var("OUT_DIR", "target/pb");
let out_dir = "src/pb";
std::fs::create_dir_all(out_dir).unwrap();
prost_build::Config::new().out_dir(out_dir).compile_protos(
&[
"Common.proto",
"InitConnect.proto",
"KeepAlive.proto",
"GetUserInfo.proto",
"Qot_Common.proto",
"GetGlobalState.proto",
"protocol.proto",
"Qot_GetMarketState.proto",
"Qot_GetSecuritySnapshot.proto",
"Qot_GetUserSecurity.proto",
"Qot_GetUserSecurityGroup.proto",
"Qot_ModifyUserSecurity.proto",
"Trd_GetAccList.proto",
],
&["futu_proto/", "src/pb/"],
)?;
// prost_build::compile_protos(
// &[
// "futu_proto_7.1.3308/Common.proto",
// "futu_proto_7.1.3308/InitConnect.proto",
// "futu_proto_7.1.3308/KeepAlive.proto",
// "GetUserInfo.proto",
// "protocol.proto",
// ],
// &["futu_proto_7.1.3308/", "src/"],
// )?;
Ok(())
}