Skip to content

Commit

Permalink
Adding nanopb to gitignore, sorting files before generation
Browse files Browse the repository at this point in the history
  • Loading branch information
clayrosenthal committed Jan 21, 2025
1 parent 7ee6fb0 commit d0b58ea
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 290 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ Cargo.lock

# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb

# Nanopb protobufs aren't necessary for the project
# its name _.rs because there's no package name in the source file
src/generated/_.rs
2 changes: 2 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ fn generate_protobufs() -> std::io::Result<()> {
protos.push(path.to_owned());
}

protos.sort_by(|a, b| a.cmp(b));

let mut config = prost_build::Config::new();

let mut derive_string = String::from("#[derive(");
Expand Down
290 changes: 0 additions & 290 deletions src/generated/_.rs

This file was deleted.

0 comments on commit d0b58ea

Please sign in to comment.