-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
188 lines (179 loc) · 16.1 KB
/
Cargo.toml
File metadata and controls
188 lines (179 loc) · 16.1 KB
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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
[workspace.package]
authors = ["QF Network <admin@qfnetwork.xyz>"]
edition = "2021"
homepage = "https://qfnetwork.xyz/"
license = ""
repository = "https://github.com/QuantumFusion-network"
[workspace]
resolver = "2"
members = [
"client/*",
"node",
"pallets/*",
"parachain/node",
"primitives/*",
"runtimes/*",
]
exclude = ["runtimes/qf-testnet-runtime"]
[workspace.dependencies]
async-trait = { version = "0.1.88" }
clap = { version = "4.5.13" }
codec = { version = "3.7.5", default-features = false, package = "parity-scale-codec" }
color-print = { version = "0.3.4" }
docify = { version = "0.2.9" }
env_logger = { version = "0.11.2" }
futures = { version = "0.3.31" }
hex-literal = { version = "0.4.1", default-features = false }
image = { version = "0.24.7", default-features = false }
jsonrpsee = { version = "0.24.3" }
libc = "0.2.155"
libsecp256k1 = { version = "0.7.0", default-features = false }
log = { version = "0.4.22", default-features = false }
parking_lot = { version = "0.12.1", default-features = false }
paste = { version = "1.0.15", default-features = false }
rustc-hex = { version = "2.1.0", default-features = false }
ruzstd = { version = "0.5.0", default-features = false }
scale-info = { version = "2.11.6", default-features = false }
schnellru = { version = "0.2.3" }
serde = { version = "1.0.214", default-features = false }
serde_json = { version = "1.0.132", default-features = false }
smallvec = { version = "1.11.0", default-features = false }
tempfile = { version = "3.8.1" }
thiserror = { version = "1.0.64" }
tokio = { version = "1.45.0", default-features = false }
tracing = { version = "0.1.37", default-features = false }
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
# Polkadot SDK
cumulus-pallet-parachain-system = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
cumulus-primitives-aura = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
finality-grandpa = { version = "0.16.3", default-features = false }
frame = { package = "polkadot-sdk-frame", tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
frame-benchmarking = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
frame-benchmarking-cli = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
frame-election-provider-support = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
frame-executive = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
frame-metadata-hash-extension = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
frame-support = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
frame-system = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
frame-system-benchmarking = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
frame-system-rpc-runtime-api = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
frame-try-runtime = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
pallet-assets = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
pallet-aura = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
pallet-authorship = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
pallet-balances = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
pallet-grandpa = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
pallet-multisig = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
pallet-revive = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
pallet-session = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
pallet-staking = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
pallet-staking-reward-curve = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
pallet-staking-runtime-api = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
pallet-sudo = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
pallet-template = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
pallet-timestamp = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
pallet-transaction-payment = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
pallet-transaction-payment-rpc = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
pallet-transaction-payment-rpc-runtime-api = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
pallet-utility = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
pallet-vesting = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
polkadot-parachain-primitives = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
polkadot-sdk = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
prometheus-endpoint = { package = "substrate-prometheus-endpoint", tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
sc-basic-authorship = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
sc-block-builder = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
sc-chain-spec = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
sc-cli = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
sc-client-api = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
sc-consensus = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
sc-consensus-grandpa = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
sc-consensus-grandpa-rpc = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
sc-consensus-slots = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
sc-executor = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
sc-keystore = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
sc-network = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
sc-network-types = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
sc-offchain = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
sc-rpc = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
sc-rpc-api = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
sc-serde-json = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
sc-service = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
sc-telemetry = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
sc-tracing = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
sc-transaction-pool = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
sc-transaction-pool-api = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
sp-api = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
sp-application-crypto = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
sp-block-builder = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
sp-blockchain = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
sp-consensus = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
sp-consensus-grandpa = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
sp-consensus-slots = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
sp-core = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
sp-genesis-builder = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
sp-inherents = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
sp-io = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
sp-keyring = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
sp-keystore = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
sp-offchain = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
sp-runtime = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
sp-session = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
sp-staking = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
sp-std = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
sp-storage = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
sp-timestamp = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
sp-tracing = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
sp-transaction-pool = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
sp-trie = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
sp-version = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
sp-version-proc-macro = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
substrate-build-script-utils = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
substrate-frame-rpc-system = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
substrate-test-runtime-client = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
substrate-wasm-builder = { tag = "polkadot-stable2509-2", git = "https://github.com/paritytech/polkadot-sdk.git", default-features = false }
# Local
pallet-claims = { path = "pallets/claim", default-features = false }
pallet-spin = { path = "pallets/spin", default-features = false }
pallet-spin-anchoring = { path = "pallets/spin-anchoring", default-features = false }
pallet-spin-polkadot = { path = "pallets/spin-polkadot", default-features = false }
qf-parachain-runtime = { path = "runtimes/parachain", default-features = false }
qf-runtime = { path = "runtimes/qf-runtime", default-features = false }
qfc-consensus-spin = { path = "client/consensus-spin", default-features = false }
qfp-consensus-spin = { path = "primitives/consensus-spin", default-features = false }
[workspace.lints.rust]
suspicious_double_ref_op = { level = "allow", priority = 2 }
unexpected_cfgs = { level = "warn", check-cfg = [
'cfg(build_opt_level, values("3"))',
'cfg(build_profile, values("debug", "release"))',
'cfg(enable_alloc_error_handler)',
'cfg(fuzzing)',
] }
[workspace.lints.clippy]
all = { level = "allow", priority = 0 }
bind_instead_of_map = { level = "allow", priority = 2 } # stylistic
borrowed-box = { level = "allow", priority = 2 } # Reasonable to fix this one
complexity = { level = "warn", priority = 1 }
correctness = { level = "warn", priority = 1 }
default_constructed_unit_structs = { level = "allow", priority = 2 } # stylistic
derivable_impls = { level = "allow", priority = 2 } # false positives
eq_op = { level = "allow", priority = 2 } # In tests we test equality.
erasing_op = { level = "allow", priority = 2 } # E.g. 0 * DOLLARS
extra-unused-type-parameters = { level = "allow", priority = 2 } # stylistic
identity-op = { level = "allow", priority = 2 } # One case where we do 0 +
if-same-then-else = { level = "allow", priority = 2 }
needless-lifetimes = { level = "allow", priority = 2 } # generated code
needless_option_as_deref = { level = "allow", priority = 2 } # false positives
nonminimal-bool = { level = "allow", priority = 2 } # maybe
option-map-unit-fn = { level = "allow", priority = 2 } # stylistic
stable_sort_primitive = { level = "allow", priority = 2 } # prefer stable sort
too-many-arguments = { level = "allow", priority = 2 } # (Turning this on would lead to)
type_complexity = { level = "allow", priority = 2 } # raison d'etre
unit_arg = { level = "allow", priority = 2 } # stylistic
unnecessary_cast = { level = "allow", priority = 2 } # Types may change
useless_conversion = { level = "allow", priority = 2 } # Types may change
while_immutable_condition = { level = "allow", priority = 2 } # false positives
zero-prefixed-literal = { level = "allow", priority = 2 } # 00_1000_000
[profile.release]
# runtime requires unwinding.
panic = "unwind"
opt-level = 3