-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
19 lines (18 loc) · 970 Bytes
/
Copy pathCargo.toml
File metadata and controls
19 lines (18 loc) · 970 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[workspace]
members = ["kernel", "xtask"]
# libfont is a standalone crate with its own `[workspace]` (so the user-side
# crates that also depend on it build independently). The kernel now depends on
# it too for the diagnostic console's glyphs (D11); exclude it here so cargo
# treats it as an external package rather than finding a second workspace root.
exclude = ["libfont"]
resolver = "2"
# The kernel aborts on panic (no unwinding machinery), keeping panic paths
# small with the panic handler as the single point of failure handling. That
# comes from the bare-metal x86_64-unknown-none target spec (panic-strategy =
# abort), so it is deliberately NOT set as a workspace profile: a workspace-wide
# `panic = "abort"` also applies to the host-side `xtask` tool, whose
# precompiled std uses unwinding, and fails to link. The kernel and the user
# crates (a separate workspace) both get abort from the target regardless.
[profile.release]
opt-level = 3
lto = true