mirror of
https://github.com/rust-embedded/rust-raspberrypi-OS-tutorials.git
synced 2024-11-03 15:40:21 +00:00
c4f9432e13
`rustup target add aarch64-unknown-none-softfloat` is now a thing. It is no longer required to build rust-std on-demand with `xbuild`. This reduces compile-times significantly.
46 lines
1.1 KiB
TOML
46 lines
1.1 KiB
TOML
[package]
|
|
name = "kernel"
|
|
version = "0.1.0"
|
|
authors = ["Andre Richter <andre.o.richter@gmail.com>"]
|
|
edition = "2018"
|
|
|
|
# The features section is used to select the target board.
|
|
[features]
|
|
default = []
|
|
bsp_rpi3 = ["cortex-a", "register"]
|
|
bsp_rpi4 = ["cortex-a", "register"]
|
|
|
|
[dependencies]
|
|
qemu-exit = "0.1.x"
|
|
test-types = { path = "test-types" }
|
|
|
|
# Optional dependencies
|
|
cortex-a = { version = "2.9.x", optional = true }
|
|
register = { version = "0.5.x", features=["no_std_unit_tests"], optional = true }
|
|
|
|
##--------------------------------------------------------------------------------------------------
|
|
## 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"
|
|
test = false
|
|
|
|
# List of tests without harness.
|
|
[[test]]
|
|
name = "00_console_sanity"
|
|
harness = false
|
|
|
|
[[test]]
|
|
name = "02_exception_sync_page_fault"
|
|
harness = false
|