Skip to content

Commit

Permalink
build: don't call cargo in build.rs
Browse files Browse the repository at this point in the history
This doesn't work when building outside of Cargo (e.g. using Bazel that
invoke rustc directly).
  • Loading branch information
grim7reaper committed Mar 13, 2024
1 parent f05ba02 commit 8a1a2e0
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,4 @@ fn main() {
.unwrap_or_default(),
None => println!("no need for pb"),
}

Command::new("cargo")
.args(["fmt", "--", "src/*.rs"])
.status()
.expect("cargo fmt failed");
}

0 comments on commit 8a1a2e0

Please sign in to comment.