Add cargo expand task

This commit is contained in:
Berkus Decker 2020-11-12 15:20:19 +02:00
parent f07f130132
commit 7604f7c166
2 changed files with 8 additions and 0 deletions

View File

@ -42,3 +42,7 @@ gdb:
nm:
# Build and print all symbols in the kernel
cargo make nm
expand:
# Run `cargo expand` on modules
cargo make expand -- nucleus

View File

@ -7,6 +7,10 @@
env = { "TARGET_FEATURES" = "" }
args = ["build", "--target=${TARGET_JSON}", "--release", "--features=${TARGET_FEATURES}"]
[tasks.expand]
env = { "TARGET_FEATURES" = "" }
args = ["expand", "--target=${TARGET_JSON}", "--release", "--features=${TARGET_FEATURES}"]
[tasks.test]
env = { "TARGET_FEATURES" = "${QEMU_FEATURES}" }
args = ["test", "--target=${TARGET_JSON}", "--features=${TARGET_FEATURES}"]