From 3280249c730fe27b14eaf19c15ae11eeadb3dfd5 Mon Sep 17 00:00:00 2001 From: Noah Gundotra Date: Tue, 1 Oct 2024 11:41:51 -0400 Subject: [PATCH] Fix usage of anchor's idl-build feature in account compression (#7318) fix idl-build --- account-compression/Cargo.lock | 10 +++++----- .../programs/account-compression/Cargo.toml | 3 ++- .../src/state/concurrent_merkle_tree_header.rs | 1 + 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/account-compression/Cargo.lock b/account-compression/Cargo.lock index b62f3b8d5e4..69900d7e0e4 100644 --- a/account-compression/Cargo.lock +++ b/account-compression/Cargo.lock @@ -1564,7 +1564,7 @@ dependencies = [ [[package]] name = "spl-account-compression" -version = "0.4.0" +version = "0.4.1" dependencies = [ "anchor-lang", "bytemuck", @@ -1631,18 +1631,18 @@ dependencies = [ [[package]] name = "thiserror" -version = "1.0.63" +version = "1.0.64" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c0342370b38b6a11b6cc11d6a805569958d54cfa061a29969c3b5ce2ea405724" +checksum = "d50af8abc119fb8bb6dbabcfa89656f46f84aa0ac7688088608076ad2b459a84" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.63" +version = "1.0.64" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4558b58466b9ad7ca0f102865eccc95938dca1a74a856f2b57b6629050da261" +checksum = "08904e7672f5eb876eaaf87e0ce17857500934f4981c4a0ab2b4aa98baac7fc3" dependencies = [ "proc-macro2", "quote", diff --git a/account-compression/programs/account-compression/Cargo.toml b/account-compression/programs/account-compression/Cargo.toml index f3398be4909..d390b1f8540 100644 --- a/account-compression/programs/account-compression/Cargo.toml +++ b/account-compression/programs/account-compression/Cargo.toml @@ -16,9 +16,10 @@ no-idl = [] no-log-ix-name = [] cpi = ["no-entrypoint"] default = [] +idl-build = ["anchor-lang/idl-build"] [dependencies] -anchor-lang = { version = "0.29.0", features = ["idl-build"] } +anchor-lang = { version = "0.29.0" } bytemuck = "1.13" solana-program = ">=1.18.11,<=2" spl-concurrent-merkle-tree = { version = "0.4.0", path = "../../../libraries/concurrent-merkle-tree" } diff --git a/account-compression/programs/account-compression/src/state/concurrent_merkle_tree_header.rs b/account-compression/programs/account-compression/src/state/concurrent_merkle_tree_header.rs index cbe2ce0161f..5483a12947f 100644 --- a/account-compression/programs/account-compression/src/state/concurrent_merkle_tree_header.rs +++ b/account-compression/programs/account-compression/src/state/concurrent_merkle_tree_header.rs @@ -24,6 +24,7 @@ impl std::fmt::Display for CompressionAccountType { } } +#[cfg(feature = "idl-build")] impl anchor_lang::IdlBuild for CompressionAccountType {} /// Initialization parameters for an SPL ConcurrentMerkleTree.