-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathCargo.toml
68 lines (61 loc) · 1.78 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
[workspace]
members = [
"programs/*",
"modules/*",
]
resolver = "2"
# Lints to improve security
[workspace.lints.clippy]
# The following rules should be enabled but conflict with other open PRs.
# TODO enable the commented rules below
# cast_possible_truncation = "deny"
# cast_lossless= "deny"
# as_conversions = "deny"
# arithmetic_side_effects = "deny"
# TODO: These rules should probably be enabled. Expect and unwrap are used in some traits and signal that something
# has gone wrong with the program.
# expect_used = "deny"
# unwrap_used = "deny"
integer_division = "deny"
cast_possible_wrap = "deny"
cast_precision_loss = "deny"
cast_sign_loss = "deny"
unchecked_duration_subtraction = "deny"
overflow_check_conditional = "deny"
modulo_one = "deny"
manual_slice_size_calculation = "deny"
large_stack_arrays = "deny"
large_stack_frames = "deny"
large_futures = "deny"
recursive_format_impl = "deny"
eq_op = "deny"
lossy_float_literal = "deny"
float_cmp = "deny"
panic = "deny"
todo = "deny"
out_of_bounds_indexing = "deny"
unreachable = "deny"
cast_abs_to_unsigned = "deny"
[workspace.dependencies]
wormhole-io = "0.1.3"
wormhole-solana-utils = "0.2.0-alpha.15"
anchor-lang = "0.29.0"
anchor-spl = "0.29.0"
solana-program = "=1.18.10"
solana-program-runtime = "=1.18.10"
solana-program-test = "=1.18.10"
spl-token = "4.0.0"
spl-token-2022 = "3.0.2"
wormhole-anchor-sdk = { version = "0.29.0-alpha.1", default-features = false }
wormhole-sdk = { git = "https://github.com/wormhole-foundation/wormhole", rev = "eee4641" }
serde_wormhole = { git = "https://github.com/wormhole-foundation/wormhole", rev = "eee4641" }
hex = "0.4.3"
cfg-if = "1.0"
[profile.release]
overflow-checks = true
lto = "fat"
codegen-units = 1
[profile.release.build-override]
opt-level = 3
incremental = false
codegen-units = 1