-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
38 lines (31 loc) · 1.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
[workspace]
members = [
"git-registry",
"git-server",
"gosh",
"gosh-builder",
"gosh-builder-config",
"gosh-builder-grpc-api",
"gosh-cargo-dependencies-loader",
"gosh-get",
"gosh-sbom",
"gosh-utils",
]
[profile.dev]
opt-level = 1 # Make debug builds run faster
panic = "abort" # This leads to better optimizations and smaller binaries (and is the default in Wasm anyways).
# Optimize all dependencies even in debug builds (does not affect workspace packages):
[profile.dev.package."*"]
opt-level = "z" # Optimize for size.
[profile.release]
codegen-units = 1 # Reduce number of codegen units to increase optimizations.
lto = true # Enable Link Time Optimization
panic = "abort" # Abort on panic
strip = true # Automatically strip symbols from the binary.
[profile.release.package."*"]
opt-level = "z" # Optimize for size.
[workspace.package]
[workspace.dependencies]
anyhow = "1.0.71"
tracing = "0.1.37"
tracing-subscriber = { version = "0.3.17", features = ["env-filter"] }