autocfg

Function rerun_env

source
pub fn rerun_env(var: &str)
Expand description

Writes a line telling Cargo to rerun the build script if the environment variable var changes.

This looks like: cargo:rerun-if-env-changed=VAR

This requires at least cargo 0.21.0, corresponding to rustc 1.20.0. Earlier versions of cargo will simply ignore the directive.