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 solana-program crate #35608

Closed
sigurd4 opened this issue Jul 19, 2024 · 1 comment
Closed

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

sigurd4 opened this issue Jul 19, 2024 · 1 comment
Labels
community Community contribution

Comments

@sigurd4
Copy link

sigurd4 commented Jul 19, 2024

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 top of the solana-program lib.rs file.

@sigurd4 sigurd4 added the community Community contribution label Jul 19, 2024
Copy link
Contributor

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

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