forked from near-guildnet/nearcore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
100 lines (85 loc) · 2.59 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
[package]
name = "nearcore"
version = "0.1.0"
authors = ["Near Inc <[email protected]>"]
edition = "2018"
[workspace]
members = [
"core/chain-configs",
"core/crypto",
"core/primitives",
"core/runtime-configs",
"core/store",
"core/metrics",
"utils/actix",
"runtime/runtime",
"runtime/runtime-standalone",
"runtime/near-runtime-fees",
"runtime/near-vm-logic",
"runtime/near-vm-runner",
"runtime/near-vm-runner-standalone",
"runtime/runtime-params-estimator",
"chain/chain",
"chain/chunks",
"chain/epoch_manager",
"chain/pool",
"chain/client",
"chain/network",
"chain/jsonrpc",
"chain/jsonrpc/client",
"chain/jsonrpc/test-utils",
"test-utils/testlib",
"test-utils/loadtester",
"test-utils/state-viewer",
"test-utils/store-validator",
"neard/",
"tools/rpctypegen/core",
"tools/rpctypegen/macro",
"genesis-tools/genesis-csv-to-json",
"genesis-tools/genesis-populate",
"genesis-tools/keypair-generator",
"tools/restaked"
]
[dependencies]
# pins this version to fix https://github.com/actix/actix-net/issues/129
actix-rt = "=1.1.1"
[dev-dependencies]
actix = "0.9"
lazy_static = "1.4"
log = "^0.4.6"
rand = "0.7"
serde_json = "1"
futures = "0.3"
near-logger-utils = { path = "./test-utils/logger" }
near-chain-configs = { path = "./core/chain-configs" }
near-crypto = { path = "./core/crypto" }
near-primitives = { path = "./core/primitives" }
near-store = { path = "./core/store" }
node-runtime = { path = "./runtime/runtime" }
near-jsonrpc = { path = "./chain/jsonrpc" }
near-network = { path = "./chain/network" }
neard = { path = "./neard"}
testlib = { path = "./test-utils/testlib" }
[profile.release]
lto = true # Enable full link-time optimization.
codegen-units = 1 # Use only 1 codegen-unit to enable full optimizations.
overflow-checks = true
[profile.bench]
lto = true
codegen-units = 1 # Use only 1 codegen-unit to enable full optimizations.
overflow-checks = true
[profile.dev.package.hex]
opt-level = 3 # BLS library is too slow to use in debug
[profile.dev.package.ring]
opt-level = 3 # BLS library is too slow to use in debug
[profile.dev.package.rand]
opt-level = 3 # BLS library is too slow to use in debug
[profile.dev.package.bs58]
opt-level = 3 # bs58 library is too slow to use in debug
[features]
expensive_tests = ["neard/expensive_tests"]
regression_tests = []
old_tests = []
adversarial = ["neard/adversarial", "near-jsonrpc/adversarial", "near-store/adversarial"]
no_cache = ["node-runtime/no_cache", "near-store/no_cache"]
metric_recorder = ["neard/metric_recorder"]