File: build.rs

package info (click to toggle)
rust-rustls-webpki 0.103.4-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental, sid
  • size: 10,632 kB
  • sloc: python: 2,278; sh: 61; makefile: 12
file content (7 lines) | stat: -rw-r--r-- 287 bytes parent folder | download | duplicates (4)
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());
    }
}