Skip to content

Conversation

SuperFluffy
Copy link
Contributor

This fixes needing to explicitly import third party dependency at the expansion site of the select!, test-traced and test-async proc macros.

Since crates with proc-macro = true can only export items marked #[proc_macro], and since also proc macros don't contain the $crate:: magic as macro_rules! macros do, we need an indirection: commonware-macros reexports tracing, tracing-subscriber, and futures. commonware-proc-macros can then refer to the commonware-macros reexports, for example commonware_macros::futures.

This way users of commonware-macros don't need to explicitly import the third party crates (bit annoying to discover this).

This is WIP: I haven't yet figured out how to fix the doc tests. Thought to get your input first.

@SuperFluffy SuperFluffy marked this pull request as draft October 13, 2025 17:17
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.

1 participant