22 lines
500 B
TOML
22 lines
500 B
TOML
[env.production]
|
|
RELEASE_FLAG = "--release"
|
|
|
|
[tasks.default]
|
|
alias = "all"
|
|
|
|
[tasks.all]
|
|
dependencies = ["build"]
|
|
|
|
[tasks.clean]
|
|
command = "cargo"
|
|
args = ["clean"]
|
|
|
|
[tasks.build]
|
|
command = "cargo"
|
|
args = ["build", "@@remove-empty(RELEASE_FLAG)"]
|
|
|
|
[tasks.example]
|
|
command = "cargo"
|
|
args = ["objcopy", "@@remove-empty(RELEASE_FLAG)", "--example", "${@}", "--", "-O", "binary", "--strip-all", "${@}.kex"]
|
|
#install_crate = { crate_name = "cargo-binutils", binary = "rust-objcopy", test_arg = ["--help"] }
|