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

Automate unmarshaling #52

Open
Tracked by #27
stv0g opened this issue Jul 31, 2023 · 0 comments
Open
Tracked by #27

Automate unmarshaling #52

stv0g opened this issue Jul 31, 2023 · 0 comments

Comments

@stv0g
Copy link
Collaborator

stv0g commented Jul 31, 2023

By @koraa in #27 (comment)

https://github.com/stv0g/go-rosenpass/blob/d7e38ecaf9e7803f2824a03ac24ac34944a53af6/messages.go#L184-201

Severity: B – Manual offset arithmetic like that is treacherous. There is a danger of subtle errors.
In the Rust implementation we put a lot of work into writing a macro that automatically generates this code.
Would it be possible to do something similar in rust?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant