forked from fleek-network/lightning
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
102 lines (96 loc) · 3.01 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
101
102
[workspace]
resolver = "2"
members = [
"core/*",
"core/interfaces/proc",
"etc/workspace-hack",
"lib/*",
"services/*",
"services/ai/examples/rust/*",
]
exclude = [
"lib/cdk",
"lib/blake3-js",
"lib/cdk-x-platform-test",
"etc/ebpf-apps/ebpf",
"etc/ebpf-apps/common",
"etc/ebpf-apps/guard",
"etc/socket-logger",
"etc/tui",
]
[workspace.package]
version = "0.1.0"
edition = "2021"
[workspace.dependencies]
anyhow = "1.0"
async-trait = "0.1"
autometrics = { version = "0.6.0", features = ["prometheus-exporter"] }
axum = { version = "0.6.18", features = ["tokio"] }
bincode = "1.3.3"
cid = "0.10.1"
ethers = "2.0.10"
num-bigint = "0.4.0"
base64 = "0.21"
bytes = "1.4"
futures = "0.3"
lru = "0.10.0"
multihash = "0.19"
rand = { version = "0.8.5", features = ["small_rng"] }
reqwest = "0.11.18"
serde = { version = "1.0", features = ["derive"] }
serde-big-array = "0.5.1"
serde_json = "1.0.96"
humantime-serde = "1.1.1"
thiserror = "1.0"
parking_lot = "0.12.1"
tokio = { version = "1.28", features = ["full", "tracing"] }
tokio-stream = "0.1"
tokio-util = { version = "0.7", features = ["time"] }
tracing = "0.1.37"
zeroize = "1.6"
scc = "1.8.1"
num-traits = "0.2.15"
num-derive = "0.3.3"
lazy_static = "1.4.0"
schemars = "0.8.1"
rkyv = { version = "0.7.44", features = [
"validation",
"alloc",
"std",
"hashbrown",
"bytecheck",
] }
triomphe = "0.1"
tempfile = "3.10.1"
hyper = { version = "0.14.27", features = ["server", "full"] }
tower = { version = "0.4.13", features = ["tokio", "steer"] }
# Our libraries
lightning-types = { path = "core/types" }
affair = { path = "lib/affair" }
atomo = { path = "lib/atomo" }
atomo-rocks = { path = "lib/atomo-rocks" }
fleek-crypto = { path = "lib/fleek-crypto" }
fleek-ipld = { path = "lib/fleek-ipld" }
hp-fixed = { path = "lib/hp-fixed" }
ink-quill = { path = "lib/ink-quill" }
resolved-pathbuf = { path = "lib/resolved-pathbuf" }
panic-report = { path = "lib/panic-report" }
better-shutdown = { path = "lib/better-shutdown" }
fleek-blake3 = "1.5"
# Since MystenLabs uses Hakari in the sui repository, and we bring narwhal in from there, this
# results into all of their dependencies and packages to be listed in their workspace-hack crate.
# That adds a huge amount of unwanted dependencies to our crate. The `empty-workspace-hack` is an
# empty crate which only depends on `strum` which is the only dependency narwhal cared about.
[patch.'https://github.com/MystenLabs/sui.git']
workspace-hack = { git = "https://github.com/fleek-network/empty-workspace-hack.git", rev = "c07eb1e343a455d57a5481b50eada03c62b4f2c6" }
sui-types = { git = "https://github.com/daltoncoder/narwhal-hack.git" }
sui-keys = { git = "https://github.com/daltoncoder/narwhal-hack.git" }
[profile.release]
# include some debug info, useful for backtraces
debug = 1
# perform "fat" link time optimization on the workspace and all dependencies
lto = true
# enables full optimization, disregarding binary size, with loop vectorization
opt-level = 3
# On panic terminate the process.
panic = 'abort'