-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
72 lines (66 loc) · 2.59 KB
/
Copy pathCargo.toml
File metadata and controls
72 lines (66 loc) · 2.59 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
[workspace]
resolver = "2"
members = ["test-cli", "client", "interface", "programs/settlement", "programs/test/cpi-caller"]
[workspace.package]
version = "0.1.0"
# Solana recommends edition 2021: https://solana.com/docs/programs/rust
edition = "2021"
# Most crates in this repository use MIT or Apache-2.0 dual license.
license = "MIT OR Apache-2.0"
[workspace.dependencies]
anyhow = "1"
arrayref = "0.3"
clap = { version = "4", features = ["derive", "env"] }
solana-commitment-config = "3"
solana-program-pack = "3"
solana-rpc-client = "3"
derive_more = { version = "1", features = ["deref"] }
hex-literal = "1"
litesvm = "0.12.0"
litesvm-token = "0.12.0"
num_enum = "0.7"
pinocchio = "0.11.1"
pinocchio-system = "0.6"
pinocchio-token = "0.6"
proptest = "1"
settlement-client = { path = "client" }
settlement-interface = { path = "interface" }
solana-account-view = "2"
solana-address = "2"
solana-address-lookup-table-interface = "3"
solana-hash = "3"
solana-instruction = "3"
solana-program-error = "3"
solana-pubkey = "3"
solana-sdk = "3"
solana-sdk-ids = "3"
solana-sha256-hasher = { version = "3", features = ["sha2"] }
solana-system-interface = "3"
spl-associated-token-account-interface = { version = "2" }
spl-token = "9"
spl-token-interface = "2"
[workspace.metadata.cli]
# Used to help solana-verify identify the correct build image.
solana = "3.1.14"
[workspace.lints.clippy]
# Promote arithmetic side effect lint to hard error.
# The settlement program (and related crates) need to do safe integer
# manipulation. This lint makes sure that we're aware of overflow-underflow
# issues in arithmetic operations.
# https://rust-lang.github.io/rust-clippy/master/index.html#arithmetic_side_effects
arithmetic_side_effects = "deny"
# Silence compiler warning produced by a Pinocchio macro.
# Pinocchio's `entrypoint!` macro expands to `#[cfg(target_os = "solana")]`. The
# Solana toolchain sets that target_os when building via `cargo build-sbf`, but
# host `rustc` doesn't know "solana" is a valid value and warns. Registering it
# via `check-cfg` matches the pattern used by official SPL programs (e.g.
# https://github.com/solana-program/address-lookup-table program/Cargo.toml).
#
# Only the `programs/settlement` crate actually uses this. This workaround sits
# at the workspace level only because Cargo doesn't currently allow combining
# `[lints] workspace = true` with crate-local `[lints.rust.*]`. Once that
# changes, this can be moved to `programs/settlement/Cargo.toml`.
# https://github.com/rust-lang/cargo/issues/13157
[workspace.lints.rust.unexpected_cfgs]
level = "warn"
check-cfg = ['cfg(target_os, values("solana"))']