Skip to content

Commit

Permalink
build: don't call cargo in build.rs (#150)
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 ff70e87
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions build.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use std::env;
use std::process::Command;

fn main() {
match env::var_os("TZF_RS_BUILD_PB") {
Expand All @@ -9,9 +8,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 ff70e87

Please sign in to comment.