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

Compile error when using the offset_of macro in the solana-program crate #35622

Closed
yantao0527 opened this issue Aug 7, 2024 · 1 comment
Closed
Labels
community Community contribution

Comments

@yantao0527
Copy link

Problem

On the latest nightly build of Rust, the solana-program crate fails to compile because the use of the offset_of macro is considered an experimental feature.

Proposed Solution

Add the feature flag #![feature(offset_of)] to the top of the solana-program lib.rs file.

@yantao0527 yantao0527 added the community Community contribution label Aug 7, 2024
Copy link
Contributor

github-actions bot commented Aug 7, 2024

This repository is no longer in use. Please re-open this issue in the agave repo: https://github.com/anza-xyz/agave

@github-actions github-actions bot closed this as completed Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Community contribution
Projects
None yet
Development

No branches or pull requests

1 participant