1
0
mirror of https://github.com/sharkdp/bat.git synced 2024-10-05 18:31:06 +01:00
bat/build/main.rs

18 lines
431 B
Rust
Raw Permalink Normal View History

2023-10-30 09:49:50 +00:00
#[cfg(feature = "application")]
mod application;
2023-11-02 08:27:26 +00:00
mod syntax_mapping;
2023-10-30 09:49:50 +00:00
mod util;
fn main() -> anyhow::Result<()> {
2023-11-02 15:29:42 +00:00
// 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/");
2023-11-02 08:27:26 +00:00
syntax_mapping::build_static_mappings()?;
2023-10-30 09:49:50 +00:00
#[cfg(feature = "application")]
application::gen_man_and_comp()?;
Ok(())
}