Skip to content
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

Issue #25: Switch to Bincode2 #36

Merged
merged 38 commits into from
Jan 22, 2020
Merged

Issue #25: Switch to Bincode2 #36

merged 38 commits into from
Jan 22, 2020

Conversation

tkaitchuck
Copy link
Member

Change log description

  • Moves over to bincode2 to avoid the need for JavaString instances.

Purpose of the change
Fixes #35 . Also incidentally fixes #34 .

What the code does
Uses bincode2's config rather than a custom type for serialization/deserialization.
Adds backtraces to errors.

tkaitchuck and others added 30 commits December 19, 2019 17:10
Signed-off-by: Tom Kaitchuck <tom.kaitchuck@emc.com>
Signed-off-by: Tom Kaitchuck <tom.kaitchuck@emc.com>
Signed-off-by: Tom Kaitchuck <tom.kaitchuck@emc.com>
…client-rust into clippy

� Conflicts:
�	src/wire_protocol/commands.rs
�	src/wire_protocol/wire_commands.rs
Signed-off-by: Tom Kaitchuck <tom.kaitchuck@emc.com>
Signed-off-by: Tom Kaitchuck <tom.kaitchuck@emc.com>
Signed-off-by: Tom Kaitchuck <tom.kaitchuck@emc.com>
Signed-off-by: Tom Kaitchuck <tom.kaitchuck@emc.com>
tkaitchuck and others added 7 commits January 10, 2020 18:12
Signed-off-by: Tom Kaitchuck <tom.kaitchuck@emc.com>
Signed-off-by: Tom Kaitchuck <tom.kaitchuck@emc.com>
Signed-off-by: Tom Kaitchuck <tom.kaitchuck@emc.com>
Signed-off-by: Tom Kaitchuck <tom.kaitchuck@emc.com>
Signed-off-by: Tom Kaitchuck <tom.kaitchuck@emc.com>
Signed-off-by: Tom Kaitchuck <tom.kaitchuck@emc.com>
Copy link
Contributor

@zwx14700 zwx14700 left a comment

Choose a reason for hiding this comment

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

That's a great change.

Copy link
Contributor

@shrids shrids left a comment

Choose a reason for hiding this comment

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

LGTM.

@shrids
Copy link
Contributor

shrids commented Jan 22, 2020

Observing that the rust file auto generated from the Controller.proto is not being built with the new change.

error[E0277]: the trait bound `controller::StreamInfo: prost::message::Message` is not satisfied
    --> /home/osboxes/code/master/pravega-client-rust/target/debug/build/pravega-controller-client-3df4ddb1cd436cfb/out/io.pravega.controller.stream.api.grpc.v1.rs:1095:28306
 = note: required because of the requirements on the impl of `tonic::codec::Codec` for `tonic::codec::prost::ProstCodec<controller::DelegationToken, controller::StreamInfo>`

@shrids shrids merged commit 955b172 into master Jan 22, 2020
@shrids shrids deleted the bincode2 branch January 22, 2020 05:54
@tkaitchuck
Copy link
Member Author

@shrids I don't thinks this is on us, we upgraded a version: hyperium/tonic#249

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.

Depend on bincode2 Add backtraces to errors
3 participants