2019-12-30 23:04:13 +00:00
|
|
|
[package]
|
2021-04-04 20:30:40 +00:00
|
|
|
name = "mingo"
|
|
|
|
version = "0.13.0"
|
2019-12-30 23:04:13 +00:00
|
|
|
authors = ["Andre Richter <andre.o.richter@gmail.com>"]
|
2021-10-11 13:46:01 +00:00
|
|
|
edition = "2021"
|
2019-12-30 23:04:13 +00:00
|
|
|
|
2020-11-23 21:44:31 +00:00
|
|
|
[profile.release]
|
|
|
|
lto = true
|
|
|
|
|
2019-12-30 23:04:13 +00:00
|
|
|
[features]
|
|
|
|
default = []
|
2021-07-06 20:57:44 +00:00
|
|
|
bsp_rpi3 = ["tock-registers"]
|
|
|
|
bsp_rpi4 = ["tock-registers"]
|
2021-03-11 22:14:08 +00:00
|
|
|
test_build = ["qemu-exit"]
|
2020-10-28 10:45:28 +00:00
|
|
|
|
|
|
|
##--------------------------------------------------------------------------------------------------
|
|
|
|
## Dependencies
|
|
|
|
##--------------------------------------------------------------------------------------------------
|
2019-12-30 23:04:13 +00:00
|
|
|
|
|
|
|
[dependencies]
|
|
|
|
test-types = { path = "test-types" }
|
|
|
|
|
|
|
|
# Optional dependencies
|
2021-07-06 20:57:44 +00:00
|
|
|
tock-registers = { version = "0.7.x", default-features = false, features = ["register_types"], optional = true }
|
2021-12-19 23:01:38 +00:00
|
|
|
qemu-exit = { version = "3.x.x", optional = true }
|
2019-12-30 23:04:13 +00:00
|
|
|
|
2020-10-28 10:45:28 +00:00
|
|
|
# Platform specific dependencies
|
|
|
|
[target.'cfg(target_arch = "aarch64")'.dependencies]
|
2021-12-19 23:01:38 +00:00
|
|
|
cortex-a = { version = "7.x.x" }
|
2020-10-28 10:45:28 +00:00
|
|
|
|
2019-12-30 23:04:13 +00:00
|
|
|
##--------------------------------------------------------------------------------------------------
|
|
|
|
## Testing
|
|
|
|
##--------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
[dev-dependencies]
|
|
|
|
test-macros = { path = "test-macros" }
|
|
|
|
|
|
|
|
# Unit tests are done in the library part of the kernel.
|
|
|
|
[lib]
|
|
|
|
name = "libkernel"
|
|
|
|
test = true
|
|
|
|
|
|
|
|
# Disable unit tests for the kernel binary.
|
|
|
|
[[bin]]
|
|
|
|
name = "kernel"
|
2021-04-04 20:30:40 +00:00
|
|
|
path = "src/main.rs"
|
2019-12-30 23:04:13 +00:00
|
|
|
test = false
|
|
|
|
|
|
|
|
# List of tests without harness.
|
|
|
|
[[test]]
|
2020-03-28 19:57:31 +00:00
|
|
|
name = "00_console_sanity"
|
2019-12-30 23:04:13 +00:00
|
|
|
harness = false
|
|
|
|
|
|
|
|
[[test]]
|
2020-03-28 19:57:31 +00:00
|
|
|
name = "02_exception_sync_page_fault"
|
2019-12-30 23:04:13 +00:00
|
|
|
harness = false
|