include_dir
include_dir copied to clipboard
Fails to compile with `unknown feature track_path` in recent nightlies
In recent nightlies, e.g. nightly-2026-01-04, there's a compile error:
Probably related to https://github.com/rust-lang/rust/pull/149400
error[E0433]: failed to resolve: could not find `tracked_env` in `proc_macro`
--> /Users/niklas/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/include_dir_macros-0.7.4/src/lib.rs:255:17
|
255 | proc_macro::tracked_env::var(variable).ok()
| ^^^^^^^^^^^ could not find `tracked_env` in `proc_macro`
Checking notify v8.1.0
error[E0433]: failed to resolve: could not find `tracked_path` in `proc_macro`
--> /Users/niklas/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/include_dir_macros-0.7.4/src/lib.rs:265:17
|
265 | proc_macro::tracked_path::path(_path.to_string_lossy());
| ^^^^^^^^^^^^ could not find `tracked_path` in `proc_macro`
error[E0635]: unknown feature `track_path`
--> /Users/niklas/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/include_dir_macros-0.7.4/src/lib.rs:4:42
|
4 | #![cfg_attr(feature = "nightly", feature(track_path, proc_macro_tracked_env))]
| ^^^^^^^^^^