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

lang: Add feature flag for using repr(packed) for zero copy #1198

Closed
armaniferrante opened this issue Dec 27, 2021 · 1 comment
Closed

lang: Add feature flag for using repr(packed) for zero copy #1198

armaniferrante opened this issue Dec 27, 2021 · 1 comment
Labels
help wanted Extra attention is needed lang

Comments

@armaniferrante
Copy link
Member

#1106 introduced a breaking change to use repr(C). However, this breaks existing programs using repr(packed). We should introduce a feature flag to use repr(packed) instead (or alternatively add an optional argument, e.g. #[account(zero_copy, repr(packed))]).

@paul-schaaf
Copy link
Contributor

closed by #1273

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed lang
Projects
None yet
Development

No branches or pull requests

2 participants