File: build.rs

package info (click to toggle)
rust-rustfft 6.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 3,104 kB
  • sloc: python: 309; makefile: 2
file content (16 lines) | stat: -rw-r--r-- 495 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
extern crate version_check;

static MIN_RUSTC: &str = "1.61.0";

fn main() {
    println!("cargo:rerun-if-changed=build.rs");
    match version_check::is_min_version(MIN_RUSTC) {
        Some(true) => {}
        Some(false) => panic!(
            "\n====\nUnsupported rustc version {}\nRustFFT needs at least {}\n====\n",
            version_check::Version::read().unwrap(),
            MIN_RUSTC
        ),
        None => panic!("Unable to determine rustc version."),
    };
}