neodyme-labs / neodyme-breakpoint-workshop

Solana Security Workshop for Breakpoint by Neodyme
91 stars 29 forks source link

error in compiling poc-framework 0.1.5 #3

Open vaioco opened 8 months ago

vaioco commented 8 months ago

Hi Im using the local setup configuration The workspace build was successful but I got an error while running the level with

RUST_BACKTRACE=1 cargo run --bin level3

I got

   Compiling poc-framework v0.1.5
error: expected None-delimited group
   --> /poc-framework-0.1.5/src/lib.rs:717:21
    |
717 |                     solana_bpf_loader_upgradeable_program!(),
    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: this error originates in the macro `solana_bpf_loader_upgradeable_program` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected None-delimited group
   --> /poc-framework-0.1.5/src/lib.rs:718:21
    |
718 |                     solana_bpf_loader_program!(),
    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: this error originates in the macro `solana_bpf_loader_program` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected None-delimited group
   --> /poc-framework-0.1.5/src/lib.rs:719:21
    |
719 |                     solana_bpf_loader_deprecated_program!(),
    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: this error originates in the macro `solana_bpf_loader_deprecated_program` (in Nightly builds, run with -Z macro-backtrace for more info)

error: could not compile `poc-framework` (lib) due to 3 previous errors

rust version solana toolchain version

➜  neodyme-breakpoint-workshop git:(main) ✗ rustc --version
rustc 1.75.0 (82e1608df 2023-12-21)
➜  neodyme-breakpoint-workshop git:(main) ✗ solana --version
solana-cli 1.17.14 (src:cc7c59af; feat:1237720363, client:SolanaLabs)
➜  neodyme-breakpoint-workshop git:(main) ✗ 

im running on mac OS. thanks

vaioco commented 8 months ago

to fix it update the line in Cargo.toml with latest crate for poc-framework

poc-framework = { version = "0.2.0" }