-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathCargo.toml
153 lines (139 loc) · 6.92 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
[workspace]
resolver = "2"
members = [
"program-libs/aligned-sized",
"program-libs/batched-merkle-tree",
"program-libs/bloom-filter",
"program-libs/hasher",
"program-libs/utils",
"program-libs/verifier",
"program-libs/merkle-tree-metadata",
"program-libs/zero-copy",
"program-libs/concurrent-merkle-tree",
"program-libs/hash-set",
"program-libs/indexed-merkle-tree",
"programs/account-compression",
"programs/system",
"programs/compressed-token",
"programs/registry",
"sdk-libs/client",
"sdk-libs/macros",
"sdk-libs/sdk",
"sdk-libs/photon-api",
"sdk-libs/program-test",
"xtask",
"examples/token-escrow/programs/*",
"program-tests/account-compression-test/",
"program-tests/compressed-token-test/",
"program-tests/e2e-test/",
"program-tests/registry-test/",
"program-tests/system-cpi-test/",
"program-tests/system-test/",
"program-tests/sdk-test-program/programs/sdk-test/",
"program-tests/create-address-test-program/",
"program-tests/utils",
"program-tests/merkle-tree",
"forester-utils",
"forester",
]
[profile.release]
overflow-checks = true
[profile.test]
opt-level = 2
[workspace.dependencies]
# Solana
solana-banks-client = "=1.18.22"
solana-banks-interface = "=1.18.22"
solana-program = "=1.18.22"
solana-sdk = "=1.18.22"
solana-program-test = "=1.18.22"
solana-client = "=1.18.22"
solana-cli-output = "=1.18.22"
solana-transaction-status = "=1.18.22"
solana-account-decoder = "=1.18.22"
solana-rpc = "=1.18.22"
spl-token = "=4.0.0"
spl-token-2022 = {version="3.0.5", no-default-features = true, features = ["no-entrypoint"]}
# Anchor
anchor-lang = "=0.29.0"
anchor-spl = "=0.29.0"
# Anchor compatibility
borsh = "0.10.0"
# Macro helpers
proc-macro2 = "1.0"
quote = "1.0"
syn = { version = "2.0", features = ["visit-mut", "full"] }
# Async ecosystem
tokio = { version = "1.39.1", features = ["rt", "macros", "rt-multi-thread"] }
async-trait = "0.1.82"
bb8 = "0.8.6"
# Logging
log = "0.4"
# Error handling
thiserror = "1.0"
# Light Protocol
light-hash-set = { version = "1.2.0", path = "program-libs/hash-set" }
light-indexed-merkle-tree = { version = "1.1.0", path = "program-libs/indexed-merkle-tree" }
light-concurrent-merkle-tree = { version = "1.1.0" , path= "program-libs/concurrent-merkle-tree"}
light-client = { path = "sdk-libs/client", version = "0.9.1" }
light-hasher = { path = "program-libs/hasher", version = "1.1.0" }
light-macros = { path = "program-libs/macros", version = "1.1.0" }
light-merkle-tree-reference = { path = "program-tests/merkle-tree", version = "1.1.0" }
light-heap = { path = "program-libs/heap", version = "1.1.0" }
light-prover-client = { path = "prover/client", version = "1.2.0" }
light-sdk = { path = "sdk-libs/sdk", version = "0.11.0" }
light-sdk-macros = { path = "sdk-libs/macros", version = "0.4.0" }
light-utils = { path = "program-libs/utils", version = "1.1.0" }
light-verifier = { path = "program-libs/verifier", version = "1.1.0" }
light-zero-copy = { path = "program-libs/zero-copy", version = "0.1.0" }
photon-api = { path = "sdk-libs/photon-api", version = "0.45.0" }
forester-utils = { path = "forester-utils", version = "1.2.0" }
account-compression = { path = "programs/account-compression", version = "1.2.0", features = ["cpi"] }
light-compressed-token = { path = "programs/compressed-token", version = "1.2.0", features = ["cpi"] }
light-system-program = { path = "programs/system", version = "1.2.0", features = ["cpi"] }
light-registry = { path = "programs/registry", version = "1.2.0", features = ["cpi"]}
create-address-test-program = { path = "program-tests/create-address-test-program", version = "1.0.0", features = ["cpi"] }
light-program-test = { path = "sdk-libs/program-test", version = "0.1.0" }
light-batched-merkle-tree = { path = "program-libs/batched-merkle-tree", version = "0.1.0" }
light-merkle-tree-metadata = { path = "program-libs/merkle-tree-metadata", version = "0.1.0" }
aligned-sized = { path = "program-libs/aligned-sized", version = "1.1.0" }
light-bloom-filter = { path = "program-libs/bloom-filter", version = "0.1.0" }
light-bounded-vec = { version = "1.1.0" }
light-poseidon = { version = "0.2.0" }
light-test-utils = { path = "program-tests/utils", version = "1.2.1" }
create-address-program-test = { path = "program-tests/create-address-test-program", version = "1.0.0" }
bytemuck = { version = "1.17" }
# Math and crypto
num-bigint = "0.4.6"
num-traits = "0.2.19"
# HTTP client
reqwest = "0.11.26"
# Testing
serial_test = "3.1.1"
[patch.crates-io]
"solana-account-decoder" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.22-enforce-cpi-tracking" }
"solana-accounts-db" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.22-enforce-cpi-tracking" }
"solana-banks-client" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.22-enforce-cpi-tracking" }
"solana-banks-interface" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.22-enforce-cpi-tracking" }
"solana-banks-server" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.22-enforce-cpi-tracking" }
"solana-program" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.22-enforce-cpi-tracking" }
"solana-cli-output" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.22-enforce-cpi-tracking" }
"solana-program-test" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.22-enforce-cpi-tracking" }
"solana-program-runtime" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.22-enforce-cpi-tracking" }
"solana-rpc" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.22-enforce-cpi-tracking" }
"solana-rpc-client" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.22-enforce-cpi-tracking" }
"solana-rpc-client-api" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.22-enforce-cpi-tracking" }
"solana-runtime" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.22-enforce-cpi-tracking" }
"solana-sdk" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.22-enforce-cpi-tracking" }
"solana-sdk-macro" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.22-enforce-cpi-tracking" }
"solana-client" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.22-enforce-cpi-tracking" }
"solana-zk-token-sdk" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.22-enforce-cpi-tracking" }
"solana-frozen-abi" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.22-enforce-cpi-tracking" }
"solana-frozen-abi-macro" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.22-enforce-cpi-tracking" }
"solana-transaction-status" = { git = "https://github.com/lightprotocol/agave", branch = "v1.18.22-enforce-cpi-tracking" }
[workspace.lints.rust.unexpected_cfgs]
level = "allow"
check-cfg = [
'cfg(target_os, values("solana"))',
'cfg(feature, values("frozen-abi", "no-entrypoint"))',
]