From ff70e875cbddd2e8e094b0d7f59532f3255714ee Mon Sep 17 00:00:00 2001 From: Sylvain Laperche Date: Wed, 13 Mar 2024 14:19:48 +0100 Subject: [PATCH] build: don't call cargo in build.rs (#150) This doesn't work when building outside of Cargo (e.g. using Bazel that invoke rustc directly). --- build.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/build.rs b/build.rs index 632882f..a27c9a6 100644 --- a/build.rs +++ b/build.rs @@ -1,5 +1,4 @@ use std::env; -use std::process::Command; fn main() { match env::var_os("TZF_RS_BUILD_PB") { @@ -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"); }