-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Integrate postcard support into proc-macro server CLI #20986
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrate postcard support into proc-macro server CLI #20986
Conversation
75a35ea to
15b818d
Compare
203a757 to
6065248
Compare
477abf2 to
470b87b
Compare
c666eef to
aa34990
Compare
| let create_srv = || { | ||
| let mut process = Process::run(process_path, env.clone())?; | ||
| let mut srv = { | ||
| let mut process = match Process::run(process_path, env.clone(), &protocol) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I just checked something and it seems I messed up the cli parsing in the proc-macro server. It doesnt validate things so it always spawns successfully. Given you did this hcange in the version check as well it seems you noticed that though, so that should work out I tihnk 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It struck me a bit later while reviewing the code that we basically accept any garbage after --format, apart from the valid values. That was actually going to be my next PR idea. 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would love a fix for that for sure as a follow up :)
aa34990 to
cae902c
Compare
Veykril
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright, looks good to me now, thanks!
|
Also cc @jamesmunns |
|
I'll need to catch up on the history here, but if you want something a bit more protocol'y structured, I've been working on |
This PR introduces a postcard binary transport layer for communication between the proc-macro client and server.