Skip to content

Tracking Issue for proc_macro::{tracked_env, tracked_path} #99515

Description

@m-ou-se

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

  • The full API design.
    • The implementaiton PRs were mostly focussed on the implementation details behind the scenes of proc_macro, but there's barely been any discussion on the public interface.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-proc-macrosArea: Procedural macrosC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libsRelevant to the library team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions