-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCargo.toml
More file actions
37 lines (31 loc) · 794 Bytes
/
Copy pathCargo.toml
File metadata and controls
37 lines (31 loc) · 794 Bytes
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
[package]
name = "hypervisor"
version = "0.1.0"
authors = ["Willam Hou <willamhou@example.com>"]
edition = "2021"
[lib]
name = "hypervisor"
path = "src/lib.rs"
[[bin]]
name = "hypervisor"
path = "src/main.rs"
[dependencies]
fdt = "0.1.5"
[profile.dev]
panic = "abort"
lto = false # Disable LTO to prevent code elimination
opt-level = 1 # Avoid debug-mode stack corruption across enter_guest
[features]
default = []
guest = []
linux_guest = []
multi_pcpu = ["linux_guest"]
multi_vm = ["linux_guest"]
sel2 = []
tfa_boot = ["linux_guest"]
[profile.release]
panic = "abort"
lto = true
opt-level = "s" # Optimize for size (less aggressive than "z")
codegen-units = 1 # Single codegen unit for better optimization
strip = "symbols" # Strip debug symbols from binary