aboutsummaryrefslogtreecommitdiff
path: root/Cargo.toml
blob: ce2372a65eafe73b59991a54316cf17ef1b81abb (plain)
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
[package]
name = "oar-p2p"
version = "0.2.18"
edition = "2024"

[dependencies]
clap = { version = "4.5.40", features = ["derive", "env"] }
color-eyre = "0.6.5"
eyre = "0.6.12"
futures = "0.3.31"
serde = { version = "1.0.219", features = ["derive"] }
serde_json = "1.0.140"
thiserror = "2.0.12"
tokio = { version = "1.46.1", features = ["full"] }
tracing = "0.1.41"
tracing-subscriber = { version = "0.3.19", features = ["env-filter"] }

[profile.release]
# Optimize for size
opt-level = "z"          # Optimize for size
lto = true               # Enable Link Time Optimization
codegen-units = 1        # Compile crates one after another for better optimizations
strip = true             # Strip symbols from binary
debug = false            # Disable debug info

# Additional size optimizations
[profile.release.package."*"]
opt-level = "z"
strip = "symbols"