Skip to main content

Module tracked

Module tracked 

Source
๐Ÿ”ฌThis is a nightly-only experimental API. (proc_macro_tracked_path #99515)
Expand description

Functionality for adding environment state to the build dependency info.

Re-exportsยง

use std::env; ๐Ÿ”’
use std::env::VarError; ๐Ÿ”’
use std::ffi::OsStr; ๐Ÿ”’
use std::path::Path; ๐Ÿ”’
use crate::BridgeMethods; ๐Ÿ”’ Experimental

Functionsยง

env_varExperimental
Retrieve an environment variable and add it to build dependency info. The build system executing the compiler will know that the variable was accessed during compilation, and will be able to rerun the build when the value of that variable changes. Besides the dependency tracking this function should be equivalent to env::var from the standard library, except that the argument must be UTF-8.
pathExperimental
Track a file or directory explicitly.