Optimize building speed (#442)

Make easytier-cli and easytier-core link to the easytier library to
avoid duplicate linking of mods.
This commit is contained in:
fanyang
2024-10-24 16:21:35 +08:00
committed by GitHub
parent efee3707da
commit b5c3726e67
8 changed files with 64 additions and 89 deletions

View File

@@ -147,7 +147,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
.type_attribute("peer_rpc.ForeignNetworkRouteInfoKey", "#[derive(Hash, Eq)]")
.type_attribute("common.RpcDescriptor", "#[derive(Hash, Eq)]")
.service_generator(Box::new(rpc_build::ServiceGenerator::new()))
.btree_map(&["."])
.btree_map(["."])
.compile_protos(&proto_files, &["src/proto/"])
.unwrap();