Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 3280249

Browse files
authored
Fix usage of anchor's idl-build feature in account compression (#7318)
fix idl-build
1 parent 03078f5 commit 3280249

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

account-compression/Cargo.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

account-compression/programs/account-compression/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ no-idl = []
1616
no-log-ix-name = []
1717
cpi = ["no-entrypoint"]
1818
default = []
19+
idl-build = ["anchor-lang/idl-build"]
1920

2021
[dependencies]
21-
anchor-lang = { version = "0.29.0", features = ["idl-build"] }
22+
anchor-lang = { version = "0.29.0" }
2223
bytemuck = "1.13"
2324
solana-program = ">=1.18.11,<=2"
2425
spl-concurrent-merkle-tree = { version = "0.4.0", path = "../../../libraries/concurrent-merkle-tree" }

account-compression/programs/account-compression/src/state/concurrent_merkle_tree_header.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ impl std::fmt::Display for CompressionAccountType {
2424
}
2525
}
2626

27+
#[cfg(feature = "idl-build")]
2728
impl anchor_lang::IdlBuild for CompressionAccountType {}
2829

2930
/// Initialization parameters for an SPL ConcurrentMerkleTree.

0 commit comments

Comments
 (0)