-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathCargo.toml
More file actions
115 lines (108 loc) · 3.39 KB
/
Cargo.toml
File metadata and controls
115 lines (108 loc) · 3.39 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
[workspace]
resolver = "3"
members = [
"common",
"contract/*",
"fuzz",
"tools/*",
"client/*",
"mock/*",
"service/*",
"test-utils",
"universal-account",
]
[workspace.package]
version = "0.1.0"
license = "MIT"
repository = "https://github.com/Templar-Protocol/contracts"
edition = "2021"
[workspace.dependencies]
alloy = { version = "1", default-features = false }
alloy-primitives = { version = "1", default-features = false }
anyhow = "1.0.95"
arbitrary = { version = "1", features = ["derive"] }
async-trait = "0.1.88"
base64 = "0.22.1"
borsh = { version = "1.5", features = ["unstable__schema"] }
chrono = { version = "0.4", default-features = false, features = ["clock"] }
clap = { version = "4.5.23", features = ["derive", "env"] }
console = "0.16.2"
dirs = "6"
ed25519-dalek = "2.2.0"
futures = "0.3.31"
getrandom = { version = "0.2", features = ["custom"] }
hex = { version = "0.4.3", features = ["serde"] }
hex-literal = "0.4"
itertools = "0.14.0"
k256 = "0.13.4"
libfuzzer-sys = "0.4"
near-account-id = "1.1.4"
near-chain-configs = "0.31.1"
near-contract-standards = "5.17.2"
near-crypto = "0.31.1"
near-fetch = "0.9.0"
near-jsonrpc-client = "0.18.0"
near-jsonrpc-primitives = "0.31.1"
near-parameters = "0.31.1"
near-primitives = "0.31.1"
near-sdk = { version = "5.17.2", features = ["unstable"] }
near-sdk-contract-tools = { git = "https://github.com/near/near-sdk-contract-tools", branch = "140-nep-245-multitoken-component" }
near-workspaces = { version = "0.21.0", features = ["unstable"] }
p256 = "0.13.2"
primitive-types = { version = "0.14.0", features = ["serde"] }
redstone = { git = "https://github.com/redstone-finance/rust-sdk", tag = "3.1.0-pre1", default-features = false }
rstest = { version = "0.24" }
schemars = { version = "0.8" }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
sha2 = "0.10.9"
solana-sdk = "3.0.0"
templar-common = { path = "./common" }
templar-redstone-bridge = { path = "./service/redstone-bridge" }
templar-tools-common = { path = "./tools/tools-common" }
templar-universal-account = { path = "./universal-account" }
templar-vault-contract = { path = "./contract/vault" }
test-utils = { path = "./test-utils" }
thiserror = "2.0.11"
tokio = { version = "1.30.0", features = ["full"] }
tower = "0.4.13"
tower-http = { version = "0.6.6", features = ["full"] }
tracing = "0.1.41"
tracing-appender = "0.2"
tracing-subscriber = { version = "0.3.19", features = ["env-filter"] }
uniffi = "0.31.0"
wiremock = "0.5.22"
zeroize = "1.8.1"
[workspace.lints.clippy]
pedantic = { level = "warn", priority = -1 }
must_use_candidate = "allow"
large_futures = "allow"
redundant_closure_for_method_calls = "allow"
module_name_repetitions = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
unwrap_used = "warn"
expect_used = "warn"
large_digit_groups = "warn"
wildcard_imports = "warn"
[profile.dev]
incremental = true
[profile.release]
codegen-units = 1
# Tell `rustc` to optimize for small code size.
opt-level = "z"
lto = true
debug = false
panic = "abort"
# Opt into extra safety checks on arithmetic operations https://stackoverflow.com/a/64136471/249801
overflow-checks = true
# https://github.com/launchbadge/sqlx?tab=readme-ov-file#compile-time-verification
[profile.dev.package.sqlx-macros]
opt-level = 3
# Coverage profile for testing
[profile.coverage]
inherits = "dev"
debug = true
# Disable optimizations to get accurate coverage
opt-level = 0
overflow-checks = false