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

Update to RustDDS with DeserializeSeed support #20

Merged
merged 5 commits into from
Apr 15, 2024

Conversation

phil-opp
Copy link
Contributor

Updates ros2-client to the RustDDS changes in Atostek/RustDDS#313.

The main changes are:

  • Update the RustDDS trait implementations for ServiceDeserializerAdapter
    • The no_key::DeserializerAdapter trait changed.
    • Provide a new WrapperDecoder and implement DefaultDecoder
  • Remove some DeserializeOwned bounds that are no longer needed.
  • Provide new take_seed and async_stream_seed methods on Subscription that support stateful deserialization using serde's DeserializeSeed trait.

This PR is marked as a draft as it should only be merged once Atostek/RustDDS#313 is merged and released.

@phil-opp phil-opp force-pushed the deserialize-seed-2 branch from 23cbcc8 to 008b76c Compare April 5, 2024 16:07
@phil-opp
Copy link
Contributor Author

Updated to use Atostek/RustDDS#334. I didn't squash the commits yet to make it clear what changed.

@rlidwka
Copy link

rlidwka commented Jun 14, 2024

Provide new take_seed and async_stream_seed methods on Subscription that support stateful deserialization using serde's DeserializeSeed trait.

Can we have similar functionality (stateful deserialization) for Service::Response?

If so, do you have any pointers to how I can make that work?

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