Skip to content

Commit

Permalink
chore: fix clippy and fmt errors
Browse files Browse the repository at this point in the history
Signed-off-by: Simon LUCIDO <[email protected]>
  • Loading branch information
lucido-simon committed Oct 24, 2023
1 parent 8711029 commit 0b0eca4
Show file tree
Hide file tree
Showing 15 changed files with 58 additions and 1,728 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/target
.env
**/grpc_definitions.rs

# Generated by Cargo
# will have compiled files and executables
Expand Down
9 changes: 9 additions & 0 deletions agent/build.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
use std::process::Command;

fn main() -> Result<(), Box<dyn std::error::Error>> {
tonic_build::configure()
.out_dir("lib/src/api/")
.compile(&["../shared/proto/lambdo.proto"], &["../shared/proto"])?;

let _ = Command::new(std::env::var("RUSTFMT").unwrap_or_else(|_| "rustfmt".to_owned()))
.arg("--emit")
.arg("files")
.arg(format!("{}/{}", "lib/src/api/", "grpc_definitions.rs"))
.output();

Ok(())
}
Loading

0 comments on commit 0b0eca4

Please sign in to comment.