Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
47 lines (44 loc) · 1.77 KB
/
Copy pathCargo.toml
File metadata and controls
47 lines (44 loc) · 1.77 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
[workspace]
resolver = "3"
members = ["crates/raven", "crates/raven-gui"]
# Shared by both crates so they cannot drift apart: the GUI is unusable
# against a library of a different age, and release-please gives them one
# version.
[workspace.package]
version = "0.8.0" # x-release-please-version
license = "GPL-3.0-or-later"
repository = "https://github.com/Project-Colony/Raven"
edition = "2024"
rust-version = "1.100"
# Every dependency is declared once, here, at its full current version, and the
# crates inherit it with `dep.workspace = true`. Features stay with the crate
# that needs them. `raven` is path-only on purpose: release-please rewrites the
# version in [workspace.package], and a version field here would be a second
# copy it does not know about.
[workspace.dependencies]
raven = { path = "crates/raven" }
anyhow = "1.0.105"
clap = "4.6.9"
colony-ui = "0.1.6"
iced = "0.14.0"
nt-hive = "0.3.0"
regf = "0.3.0"
rustix = "1.1.6"
serde = "1.0.229"
thiserror = "2.0.21"
tokio = "1.54.1"
toml = "1.2.2"
# The organisation's release profile (Project-Colony-Resources,
# design/releases.md, "Release profile"), shared by both binaries so they are
# built one way. `raven` runs once per .exe launch, so start-up and size are
# what it pays for. Against the default profile, the first measured profile (fat
# LTO) took it from 1.9 MB to 1.2 MB and left start-up unchanged within noise
# (numbers in docs/project/consolidation.md, 3.1). Fat LTO bought no start-up,
# so Raven uses the organisation's thin LTO, which also links `raven-gui` (wgpu
# and iced under one codegen unit) faster.
# `panic = "abort"` is deliberately not set: it trades backtraces away for
# little, and that decision is recorded in docs/project/consolidation.md.
[profile.release]
lto = "thin"
codegen-units = 1
strip = "symbols"