File: build.rs

package info (click to toggle)
rust-rustls-webpki-0.101 0.101.7-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,688 kB
  • sloc: python: 1,519; perl: 282; sh: 140; makefile: 17
file content (7 lines) | stat: -rw-r--r-- 287 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
use std::env::VarError::NotPresent;
fn main() {
    println!("cargo:rerun-if-env-changed=SOURCEPACKAGEDIR");
    if std::env::var("SOURCEPACKAGEDIR") == Err(NotPresent) {
        println!("cargo:rustc-env=SOURCEPACKAGEDIR={}",std::env::current_dir().unwrap().to_str().unwrap());
    }
}