Skip to content

Conversation

@Shourya742
Copy link
Contributor

This PR builds on the discussion in the Zulip thread: #t-compiler/rust-analyzer > proc-macro-srv: bidirectional messaging

At a high level, it removes the rigid FnMut callback introduced in the initial bidirectional messaging implementation on the srv side, and instead introduces a ProcMacroClientInterface trait owned by the srv. This allows the cli to implement the interface for any transport, without the srv needing to know about transport details. The srv simply calls trait methods to obtain the data it needs.

The PR also removes the duplicated SubRequest and SubResponse types added in the earlier bidirectional PR,

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 27, 2025
Copy link
Member

@Veykril Veykril left a comment

Choose a reason for hiding this comment

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

Nice looking better already

@Veykril Veykril added this pull request to the merge queue Dec 27, 2025
Merged via the queue into rust-lang:master with commit f9e29cf Dec 27, 2025
15 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 27, 2025
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.

3 participants