Skip to content

Conversation

dzbarsky
Copy link
Contributor

@dzbarsky dzbarsky commented Sep 9, 2025

We can stop forcing users to sort their deps into deps and proc_macro_deps; instead all deps are supplied to deps in the public macros and the rules sort it out.

Best reviewed commit by commit.

I kept the proc_macro_deps attribute named the same just in case, but it would be nice to rename to exec_configured_deps at some point to reflect reality.

Fixes #2893

crate_info = dep[rust_common.crate_info] if rust_common.crate_info in dep else None,
dep_info = dep[rust_common.dep_info] if rust_common.crate_info in dep else None,
crate_info = dep[CrateInfo] if CrateInfo in dep else None,
dep_info = dep[DepInfo] if DepInfo in dep else None,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cleaned up provider references while I was here and discovered dep_info was cheking for the CrateInfo provider but using DepInfo one :)

@dzbarsky dzbarsky force-pushed the zbarsky/proc-macros-3 branch from 5a6ee86 to 662ca6d Compare September 9, 2025 14:36
@thesayyn
Copy link

thesayyn commented Sep 9, 2025

I love this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mix proc_macro_deps with normal deps
2 participants