Skip to content

Commit

Permalink
build: Skip empty protobuf files (tokio-rs#605)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangfenjin authored and mdrach committed Aug 3, 2022
1 parent a577931 commit 408f54e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions prost-build/src/lib.rs
Expand Up @@ -903,6 +903,10 @@ impl Config {

let modules = self.generate(requests)?;
for (module, content) in &modules {
if content.is_empty() {
continue;
}

let file_name = file_names
.get(module)
.expect("every module should have a filename");
Expand Down

0 comments on commit 408f54e

Please sign in to comment.