-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
132 lines (127 loc) · 4.66 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# Licensed under the Apache-2.0 license
[workspace]
members = [
"emulator/app",
"emulator/bmc/pldm-fw-pkg",
"emulator/bus",
"emulator/caliptra",
"emulator/compliance-test",
"emulator/cpu",
"emulator/derive",
"emulator/periph",
"emulator/types",
"registers/generated-emulator",
"registers/generated-firmware",
"registers/generator",
"registers/systemrdl",
"rom",
"romtime",
"runtime",
"runtime/apps/example",
"runtime/apps/libtock/apis/interface/buttons",
"runtime/apps/libtock/apis/interface/buzzer",
"runtime/apps/libtock/apis/interface/console",
"runtime/apps/libtock/apis/interface/leds",
"runtime/apps/libtock/apis/kernel/low_level_debug",
"runtime/apps/libtock/apis/peripherals/adc",
"runtime/apps/libtock/apis/peripherals/alarm",
"runtime/apps/libtock/apis/peripherals/gpio",
"runtime/apps/libtock/apis/peripherals/i2c_master",
"runtime/apps/libtock/apis/peripherals/i2c_master_slave",
"runtime/apps/libtock/apis/peripherals/rng",
"runtime/apps/libtock/apis/sensors/air_quality",
"runtime/apps/libtock/apis/sensors/ambient_light",
"runtime/apps/libtock/apis/sensors/ninedof",
"runtime/apps/libtock/apis/sensors/proximity",
"runtime/apps/libtock/apis/sensors/temperature",
"runtime/apps/libtock/apis/storage/key_value",
"runtime/apps/libtock/panic_handlers/debug_panic",
"runtime/apps/libtock/panic_handlers/small_panic",
"runtime/apps/libtock/platform",
"runtime/apps/libtock/runner",
"runtime/apps/libtock/runtime",
"runtime/apps/libtock/syscalls_tests",
"runtime/apps/libtock/tools/print_sizes",
"runtime/apps/libtock/ufmt",
"runtime/apps/libtock/unittest",
"runtime/apps/libtockasync",
"runtime/capsules",
"runtime/i3c",
"tests/hello",
"tests/integration",
"xtask",
]
resolver = "2"
[workspace.package]
version = "0.1.0"
edition = "2021"
authors = ["Caliptra contributors"]
[workspace.dependencies]
arrayref = "0.3.6"
bitfield = "0.14.0"
bit-vec = "0.6.3"
clap = { version = "4.5.11", features = [
"cargo",
"derive",
"env",
"string",
"unicode",
"wrap_help",
] }
caliptra-api-types = { git = "https://github.com/chipsalliance/caliptra-sw.git", rev = "2f6de531e321b7bb24b17b1bd02b43d2854aef3a" }
caliptra-emu-bus = { git = "https://github.com/chipsalliance/caliptra-sw.git", rev = "2f6de531e321b7bb24b17b1bd02b43d2854aef3a" }
caliptra-emu-cpu = { git = "https://github.com/chipsalliance/caliptra-sw.git", rev = "2f6de531e321b7bb24b17b1bd02b43d2854aef3a" }
caliptra-emu-periph = { git = "https://github.com/chipsalliance/caliptra-sw.git", rev = "2f6de531e321b7bb24b17b1bd02b43d2854aef3a" }
caliptra-hw-model = { git = "https://github.com/chipsalliance/caliptra-sw.git", rev = "2f6de531e321b7bb24b17b1bd02b43d2854aef3a" }
caliptra-registers = { git = "https://github.com/chipsalliance/caliptra-sw.git", rev = "2f6de531e321b7bb24b17b1bd02b43d2854aef3a" }
clap_derive = "4.5.11"
crossterm = "0.28.1"
ctrlc = "3.4.5"
elf = "0.7.4"
emulator-bus = { path = "emulator/bus" }
emulator-caliptra = { "path" = "emulator/caliptra" }
emulator-cpu = { path = "emulator/cpu" }
emulator-derive = { path = "emulator/derive" }
emulator-periph = { path = "emulator/periph" }
emulator-registers-generated = { path = "registers/generated-emulator" }
emulator-types = { path = "emulator/types" }
gdbstub = "0.6.3"
gdbstub_arch = "0.2.4"
getrandom = "0.2"
hex = "0.4.3"
i3c-driver = { path = "runtime/i3c" }
flash-driver = { path = "runtime/flash" }
capsules-runtime = { path = "runtime/capsules" }
lazy_static = "1.4.0"
num-derive = "0.4.2"
num_enum = "0.7.2"
num-traits = "0.2"
proc-macro2 = "1.0.66"
romtime = { path = "romtime" }
quote = "1.0"
registers-generated = { path = "registers/generated-firmware" }
registers-generator = { path = "registers/generator" }
registers-systemrdl = { path = "registers/systemrdl" }
serde = { version = "1.0.209", features = ["alloc", "derive", "serde_derive"] }
serde_json = { version = "1.0.127", features = ["alloc"] }
syn = "1.0.107"
tock-registers = { git = "https://github.com/tock/tock.git", rev = "b128ae817b86706c8c4e39d27fae5c54b98659f1" }
zerocopy = { version = "0.8.7", features = ["derive"] }
crc = "3.2.1"
# Always optimize the emulator during tests, as it is a major bottleneck for
# test speed.
[profile.test.package.emulator-bus]
opt-level = 3
[profile.test.package.emulator-cpu]
opt-level = 3
[profile.test.package.emulator-periph]
opt-level = 3
[profile.test.package.emulator-types]
opt-level = 3
[profile.test.package.tock-registers]
opt-level = 3
[profile.release]
debug = true # Keep debug symbols in the release ELF so that we can debug more easily.
lto = true
opt-level = "s"
codegen-units = 1