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

Compiling Errors When Using on Solana Contracts #114

Open
mdulin2 opened this issue Dec 30, 2024 · 1 comment
Open

Compiling Errors When Using on Solana Contracts #114

mdulin2 opened this issue Dec 30, 2024 · 1 comment

Comments

@mdulin2
Copy link

mdulin2 commented Dec 30, 2024

I've tried running the lints on the built-in Solana test contracts and on personal projects with the current toolchains that are set up. However, I keep getting errors in solana-program:

    Checking solana-program v1.18.26
error[E0658]: use of unstable library feature 'offset_of'
   --> /Users/strikeout/.cargo/registry/src/index.crates.io-6f17d22bba15001f/solana-program-1.18.26/src/program.rs:441:20
    |
441 |         assert_eq!(offset_of!(StableInstruction, program_id), 48);

When I tried to change the toolchain to the nightly setup, I also got build errors within clippy.

Am I missing something here? I am happy to admit fault on compiling the code but would appreciate some guidance on running the built-in Solana test contracts for the specific lints.

@mdulin2
Copy link
Author

mdulin2 commented Dec 30, 2024

This project is awesome though :) I'm looking to build some stuff on top of this.

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

No branches or pull requests

1 participant