Skip to content
Myr

Clean up build.rs

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by sharkdp · committed by David Peter · parent 4815ee4 · Browse files · 1 file+5 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+5 added−5 removed

  • other:+5 added−5 removed

1 file+5 added−5 removed

modified:build.rs+5 added-5 removed
1use std::fs;2use std::io::{self, Write};3use std::process::exit;23use clap::Shell;45include!("src/app.rs");67fn main() {8 let min_version = "1.36";910 match version_check::is_min_version("1.36") {10 match version_check::is_min_version(min_version) {11 Some(true) => {}12 // rustc version too small or can't figure it out13 _ => {14 writeln!(&mut io::stderr(), "'fd' requires rustc >= 1.36").unwrap();15 exit(1);14 eprintln!("'fd' requires rustc >= {}", min_version);15 std::process::exit(1);16 }17 }1819 let var = std::env::var_os("SHELL_COMPLETIONS_DIR").or(std::env::var_os("OUT_DIR"));
12 unmodified lines