File: build.rs

package info (click to toggle)
rust-cairo-sys-rs 0.21.1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 192 kB
  • sloc: makefile: 4
file content (13 lines) | stat: -rw-r--r-- 290 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
#[cfg(not(docsrs))]
use std::process;

#[cfg(docsrs)]
fn main() {} // prevent linking libraries to avoid documentation failure

#[cfg(not(docsrs))]
fn main() {
    if let Err(s) = system_deps::Config::new().probe() {
        println!("cargo:warning={s}");
        process::exit(1);
    }
}