Lightprotocol / light-protocol

The ZK Compression Protocol For Solana
https://www.zkcompression.com
GNU General Public License v3.0
157 stars 27 forks source link

#[lightprogram] conflicts with #[program] - cannot built example repositories. #1258

Open 0xNico opened 2 days ago

0xNico commented 2 days ago

Developers cannot built any of the example light-protocol compression repositories because of macro conflicts.

error[E0599]: no associated item named `__anchor_private_insert_idl_defined` found for struct `CompressedProof` in the current scope
  --> programs/riskoracle/src/lib.rs:10:1
   |
10 | #[program]
   | ^^^^^^^^^^ associated item not found in `CompressedProof`
   |
   = note: this error originates in the derive macro `AnchorSerialize` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: no associated item named `__anchor_private_gen_idl_type` found for struct `CompressedProof` in the current scope
  --> programs/riskoracle/src/lib.rs:10:1
   |
10 | #[program]
   | ^^^^^^^^^^ associated item not found in `CompressedProof`
   |
   = note: this error originates in the derive macro `AnchorSerialize` (in Nightly builds, run with -Z macro-backtrace for more info)