Skip to content

Commit 4fefc87

Browse files
committed
add cfgs lint to compression and oracles anchor examples
1 parent b3eea2a commit 4fefc87

File tree

4 files changed

+26
-2
lines changed

4 files changed

+26
-2
lines changed

compression/cnft-burn/anchor/programs/cnft-burn/Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,15 @@ no-entrypoint = []
1515
no-idl = []
1616
no-log-ix-name = []
1717
idl-build = ["anchor-lang/idl-build"]
18+
anchor-debug = []
19+
custom-heap = []
20+
custom-panic = []
1821

1922
[dependencies]
2023
anchor-lang = "0.32.1"
2124
mpl-bubblegum = "1.3.0"
2225
spl-account-compression = { version="0.3.0",features = ["no-entrypoint","cpi"] }
2326
ahash = "=0.8.7"
27+
28+
[lints.rust]
29+
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(target_os, values("solana"))'] }

compression/cnft-vault/anchor/programs/cnft-vault/Cargo.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,15 @@ no-idl = []
1414
no-log-ix-name = []
1515
cpi = ["no-entrypoint"]
1616
default = []
17+
anchor-debug = []
18+
custom-heap = []
19+
custom-panic = []
1720

1821
[dependencies]
1922
anchor-lang = "0.26.0"
2023
solana-program = "1.14"
2124
spl-account-compression = { version="0.1.8", features = ["cpi"] }
22-
mpl-bubblegum = { version = "0.7.0", features = ["no-entrypoint", "cpi"] }
25+
mpl-bubblegum = { version = "0.7.0", features = ["no-entrypoint", "cpi"] }
26+
27+
[lints.rust]
28+
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(target_os, values("solana"))'] }

compression/cutils/anchor/programs/cutils/Cargo.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ no-idl = []
1414
no-log-ix-name = []
1515
cpi = ["no-entrypoint"]
1616
default = []
17+
anchor-debug = []
18+
custom-heap = []
19+
custom-panic = []
1720

1821
[dependencies]
1922
anchor-lang = "0.26.0"
@@ -24,4 +27,7 @@ mpl-bubblegum = { version = "0.7.0", features = ["no-entrypoint", "cpi"] }
2427
# Added due to anchor and solana-cli wonkyness as of late
2528
getrandom = { version = "0.2.10", features = ["custom"] }
2629
winnow = "=0.4.1"
27-
toml_datetime = "=0.6.1"
30+
toml_datetime = "=0.6.1"
31+
32+
[lints.rust]
33+
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(target_os, values("solana"))'] }

oracles/pyth/anchor/programs/pythexample/Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,13 @@ no-entrypoint = []
1515
no-idl = []
1616
no-log-ix-name = []
1717
idl-build = ["anchor-lang/idl-build"]
18+
anchor-debug = []
19+
custom-heap = []
20+
custom-panic = []
21+
1822

1923
[dependencies]
2024
anchor-lang = "0.32.1"
2125
pyth-solana-receiver-sdk = "0.3.2"
26+
27+
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(target_os, values("solana"))'] }

0 commit comments

Comments
 (0)