Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
59 lines (52 loc) · 1.54 KB
/
Copy pathCargo.toml
File metadata and controls
59 lines (52 loc) · 1.54 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
[workspace]
members = [
"core/qnet-core",
"core/qnet-consensus",
"core/qnet-mempool",
"core/qnet-state",
"core/qnet-sharding",
"core/qnet-vm",
"core/qnet-device-attest",
"development/qnet-integration",
"development/qnet-loadtest",
"audit"
]
resolver = "2"
# Default features for production builds
[workspace.metadata]
default-features = ["production"]
[workspace.dependencies]
# Core blockchain dependencies - production ready versions
tokio = { version = "1.35", features = ["full"] }
serde = { version = "1.0.195", features = ["derive"] }
ed25519-dalek = { version = "2.0.0", features = ["std"] }
actix-web = "4.4"
rocksdb = "0.21"
# Production build profiles for entire workspace
[profile.release]
opt-level = 3
debug = false
# Keep the symbol table: a frozen node is diagnosed from thread backtraces on the host, and a
# stripped binary turns them into bare addresses. No DWARF is emitted (debug = false).
strip = "debuginfo"
lto = "fat"
codegen-units = 1
panic = "abort"
[profile.release-fast]
inherits = "release"
opt-level = 3
debug = false
strip = "debuginfo"
lto = "fat"
codegen-units = 1
panic = "abort"
overflow-checks = false
[profile.dev]
# Line tables only. Full debug info grew the crate rlib past 4 GB, which link.exe cannot read as an
# archive — it silently skips the library and the build dies on thousands of unresolved symbols.
# Panics still carry file:line.
debug = 1
[profile.test]
opt-level = 2 # Optimize tests for better performance
[profile.bench]
debug = true # Include debug info in benchmarks