1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-09-02 03:12:25 +01:00

Rerun build script only when necessary

This commit is contained in:
cyqsimon
2023-11-02 23:29:42 +08:00
committed by Martin Nordholts
parent 79a03b4299
commit 5498c24c33
2 changed files with 12 additions and 0 deletions

View File

@@ -3,6 +3,10 @@ mod application;
mod util;
fn main() -> anyhow::Result<()> {
// only watch manually-designated files
// see: https://doc.rust-lang.org/cargo/reference/build-scripts.html#rerun-if-changed
println!("cargo:rerun-if-changed=build/");
#[cfg(feature = "application")]
application::gen_man_and_comp()?;