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

Rework attachments #423

Merged
merged 14 commits into from
Jun 17, 2024
Merged

Conversation

jean-roland
Copy link
Contributor

@jean-roland jean-roland commented Jun 14, 2024

For 1.0, attachments are a simple payload internally and the key, value pair serialization must be done at the app level through the zenoh API. Task list:

  • Rework attachments internally to a simple payload.
  • Add attachment serialization API.
  • Add pub/sub attachment examples.
  • Add pub/sub attachment test.
  • Add query/queryable examples & test.

@jean-roland
Copy link
Contributor Author

Could you review this one @sashacmc?

@jean-roland jean-roland marked this pull request as ready for review June 14, 2024 15:32
Copy link
Member

@sashacmc sashacmc left a comment

Choose a reason for hiding this comment

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

Some small notes, others LGTM!

examples/unix/c11/z_queryable_attachment.c Outdated Show resolved Hide resolved
/**
* Enable attachments.
*/
#ifndef Z_FEATURE_ATTACHMENT
Copy link
Member

Choose a reason for hiding this comment

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

Maybe I missed something, but why the attachment now not a feature and can’t be disabled to reduce code size?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

With the change, the impact on code size should be minimal since all the code is now on the API, and it shouldn't be linked if not used by the application.

So I believe we should remove this token so users have one less config option to worry about

@milyin milyin merged commit aa7e7bc into eclipse-zenoh:dev/1.0.0 Jun 17, 2024
50 checks passed
@jean-roland jean-roland deleted the ft_attachment branch July 3, 2024 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

3 participants