13 lines
254 B
Rust
13 lines
254 B
Rust
use std::env;
|
|
|
|
const VARLIBDIR_NAME: &str = "VARLIBDIR";
|
|
const VARLIBDIR_VALUE_DEFAULT: &str = "/var/lib/";
|
|
|
|
fn main() {
|
|
if env::var(VARLIBDIR_NAME).is_err() {
|
|
println!(
|
|
"cargo:rustc-env={}={}",
|
|
VARLIBDIR_NAME, VARLIBDIR_VALUE_DEFAULT
|
|
);
|
|
}
|
|
}
|