View all comments
Feature gate: #![feature(proc_macro_tracked_env, proc_macro_tracked_path)]
This is a tracking issue for proc_macro::tracked*, to allow adding files and environment variables to the build system's dependency tracking.
Public API
// proc_macro
mod tracked {
pub fn env_var<K: AsRef<OsStr> + AsRef<str>>(key: K) -> > Result<String, VarError>;
pub fn path<P: AsRef<Path>>(path: P);
}
Steps / History
Unresolved Questions
View all comments
Feature gate:
#![feature(proc_macro_tracked_env, proc_macro_tracked_path)]This is a tracking issue for
proc_macro::tracked*, to allow adding files and environment variables to the build system's dependency tracking.Public API
Steps / History
tracked_env::var: proc_macro: Add API for tracked access to environment variables #74653tracked_path::path: addtrack_path::pathfn for usage inproc_macros #84029pathto acceptAsRef<Path>instead ofAsRef<str>Unresolved Questions
proc_macro, but there's barely been any discussion on the public interface.