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

refactor: polish payload (de)serializationn with macro #579

Draft
wants to merge 2 commits into
base: dev/1.0.0
Choose a base branch
from

Conversation

YuanYuYuan
Copy link
Contributor

@YuanYuYuan YuanYuYuan commented Aug 7, 2024

  • Shorten the (de)serialization implementations with a helper macro.
  • Other dependencies have already used the additional crate paste in the Cargo.lock.

@YuanYuYuan YuanYuYuan marked this pull request as draft August 8, 2024 09:37
@milyin milyin added the internal Changes not included in the changelog label Oct 21, 2024
@milyin
Copy link
Contributor

milyin commented Oct 21, 2024

Looks nice, but I have concerns about bindgen processing for the exported functions. Correct me if I'm wrong, but as far as I remember the bindgen can't extract "extern C" functions to C headers if they are macro generated

@YuanYuYuan
Copy link
Contributor Author

Looks nice, but I have concerns about bindgen processing for the exported functions. Correct me if I'm wrong, but as far as I remember the bindgen can't extract "extern C" functions to C headers if they are macro generated

No, it can't. I guess we need to some help from bindgen and that's why I marked this PR as a draft.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Changes not included in the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants