-
Notifications
You must be signed in to change notification settings - Fork 70
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
Core: Extract proto
from socket-layer
feature.
#2861
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Yury-Fridlyand <[email protected]>
@@ -13,10 +13,11 @@ fn build_protobuf() { | |||
.input("src/protobuf/response.proto") | |||
.input("src/protobuf/connection_request.proto") | |||
.customize(customization_options) | |||
.out_dir("src/generated") |
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 is not mandatory, but it puts generated files to a place where they could be found
@@ -28,7 +28,7 @@ use tokio::runtime::Runtime; | |||
#[derive(Debug)] | |||
pub struct CommandResponse { | |||
response_type: ResponseType, | |||
int_value: c_long, | |||
int_value: i64, |
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.
c_long
is i64
, but on windows is i32
🤦
In what case we don't need the proto? |
|
I completely understand. But now when you are changing, which is great, I'm wondering why Protobuf feature at all? Do we have a scenario when we don't use proto? |
Not yet. |
So i think we should remove it. If and when we will, we can add it. |
I just recalled that .Net client don't use it. But maybe it would. |
@Sa1Gur any input on C# usage (or not) of protobuf for communication? |
It is not using protobuf and frankly I would be surprised if using of protobuf would bring any benefit (but to be sure we need to measure of course). .NET have quite efficient support of native calls. And I doubt anything could bit that. But again - needs to be tested |
@Yury-Fridlyand so its seems that it is needed. |
No changes for clients or user API.
But we can build non-UDS clients on windows now: