Commit Graph

122 Commits

Author SHA1 Message Date
bit-aloo
3d7509e53c update ProcMacroClientHandle implementation 2026-02-19 09:35:50 +05:30
bit-aloo
ea31902442 add span_source implementation in proc-macro-srv-cli 2026-02-16 20:57:13 +05:30
Laurențiu Nicola
c75729db68 Merge pull request #21538 from Shourya742/2026-01-28-fix-linking-of-postcard-test
Fix linking of postcard test
2026-02-09 05:53:36 +00:00
bit-aloo
f303bd5cea correct handler generic input 2026-02-01 15:19:03 +05:30
bit-aloo
0afeff11d3 replace panic_any with resume_unwind on Client panic cancelled message 2026-02-01 15:17:00 +05:30
bit-aloo
6334fee6d2 add suggested changes: have a internal error variant, comment on unwindsafe 2026-02-01 15:17:00 +05:30
bit-aloo
c37366e13f adapt ByteRange to new roundtrip 2026-02-01 15:17:00 +05:30
bit-aloo
b9e6c160d2 add error variant for cancelled expansion 2026-02-01 15:16:59 +05:30
bit-aloo
f6bb2dd069 remove repititive error block in callbacks 2026-02-01 15:16:32 +05:30
bit-aloo
0f47fea887 don't kill server on cancellation 2026-02-01 15:15:49 +05:30
bit-aloo
a010936009 make sure we panic in callback so the srv panics and stops 2026-02-01 15:15:48 +05:30
bit-aloo
154c878099 remove postcard dep from proc-macro-srv-cli 2026-01-30 07:30:41 +05:30
bit-aloo
7afcfa71bb adapt proc-macro-srv-cli and test 2026-01-30 00:12:14 +05:30
bit-aloo
df044ee754 fix linking of postcard test 2026-01-28 00:13:32 +05:30
Laurențiu Nicola
86821a1b90 Fix linking of proc-macro-srv-cli 2026-01-27 15:19:00 +02:00
bit-aloo
06fb5a7695 rename send and drive to request and receive and remove auto* 2026-01-19 12:34:08 +05:30
bit-aloo
20bbc61951 adapt json test 2026-01-19 12:34:08 +05:30
bit-aloo
7ad02d3243 add bidirectional test 2026-01-19 12:34:08 +05:30
bit-aloo
33191a91e5 add bidirectional flow 2026-01-19 12:34:08 +05:30
bit-aloo
b4b5761c66 remove postcard from legacy 2026-01-14 16:34:31 +05:30
Lukas Wirth
92b2168d26 Merge pull request #21439 from Veykril/push-okkmmxmnwyxm
internal: Land integration test infra for proc-macro-srv-cli
2026-01-12 06:47:11 +00:00
bit-aloo
5956c5ab02 add write read imports 2026-01-11 15:51:33 +05:30
bit-aloo
f8e5c666d3 add byte range to main loop and direct the request via callback and define the callback on client side 2026-01-11 15:08:42 +05:30
Lukas Wirth
72e5894aa7 internal: Landing integration test infra for proc-macro-srv-cli 2026-01-10 17:02:45 +01:00
Lukas Wirth
4341269540 Abstract proc-macro-srv input and output away 2026-01-10 16:11:01 +01:00
Till Adam
d1a55e6b19 Implement Span::line() and Span::column() for proc-macro server
Add proper line/column resolution for proc-macro spans via a callback
mechanism. Previously these methods returned hardcoded 1 values.

The implementation adds:
- SubRequest::LineColumn and SubResponse::LineColumnResult to the
  bidirectional protocol
- ProcMacroClientInterface::line_column() method
- Callback handling in load-cargo using LineIndex
- Server implementation in RaSpanServer that uses the callback
- a test for Span::line() and Span::column() in proc-macro server

Add fn_like_span_line_column test proc-macro that exercises the new
line/column API, and a corresponding test with a mock callback.
2026-01-05 08:41:00 +01:00
Lukas Wirth
dc36ad329f Add a README.md to proc-macro-srv-cli 2026-01-04 12:09:44 +01:00
Lukas Wirth
148028ba33 internal: Clean up proc-macro-srv callback trait 2026-01-04 11:46:34 +01:00
bit-aloo
49c15b2eeb remove span related API from proc-macro-srv/cli/api and remove span from procmacrosrvcli 2026-01-03 20:10:00 +05:30
bit-aloo
cff51826dd refactor subreq/resp variants to carry span 2026-01-03 19:15:42 +05:30
bit-aloo
eef4f3d24c add span to proc-macro-srv-cliy 2026-01-03 19:13:06 +05:30
bit-aloo
26b3c82562 use fullpath instead of filename 2026-01-03 15:13:53 +05:30
bit-aloo
94674e87c2 add roundtrip abstraction to remove subrequest subresponse boilerplate code 2025-12-31 17:54:22 +05:30
bit-aloo
03d58fedb2 add bidirectional flow for local file method 2025-12-31 17:50:20 +05:30
bit-aloo
c734ae11e9 add bidirectional flow for file method 2025-12-31 17:50:14 +05:30
bit-aloo
2a37f9c254 remove unwanted comment 2025-12-31 14:23:56 +05:30
Lukas Wirth
70d64cb2e6 minor: Remove unneded allocation in proc-macro-srv-cli 2025-12-28 10:17:37 +01:00
bit-aloo
ab6b315aed remove unwraps from source_text impl 2025-12-27 17:52:16 +05:30
bit-aloo
637effe91d rename BidirectionalStruct to ProcMacroClientHandle 2025-12-27 17:49:32 +05:30
bit-aloo
2e3365c3bb remove read and write generics, also remove lock from the beginning and follow lock when required pattern 2025-12-27 17:44:31 +05:30
bit-aloo
6ae410ccc7 remove crossbeam-channel from proc-macro-srv-cli 2025-12-27 10:40:42 +05:30
bit-aloo
5a91849218 make source_text take non mutable reference of self 2025-12-27 09:43:01 +05:30
bit-aloo
76ea9828a7 rename handler's to be context specific 2025-12-27 09:21:32 +05:30
bit-aloo
91b5c3c664 add bidirectional handle in proc-macro-srv-cli to interact with client and srv 2025-12-27 09:07:08 +05:30
Lukas Wirth
c8d3e3abed Merge pull request #21249 from Shourya742/2025-11-27-bidirectional-protocol
Add bidirectional messaging proc-macro-srv
2025-12-26 08:08:24 +00:00
Lukas Wirth
af45994feb Introduce cargo-machete ci step 2025-12-25 10:38:05 +01:00
bit-aloo
9b03499a3b chore: remove unwanted comments, extra lines and putting cli srv on default 2025-12-23 18:30:47 +05:30
bit-aloo
1f64a69249 remove channels with callbacks in proc-macro-srv 2025-12-23 11:59:56 +05:30
bit-aloo
336f025424 remove internal callbacks, and move callback to rust-analyzer level 2025-12-23 07:58:53 +05:30
bit-aloo
2c71fa8cd4 rename PostcardNew to bidirectional-postcard-prototype 2025-12-22 20:56:16 +05:30