mirror of
https://github.com/sagiegurari/cargo-make
synced 2026-06-08 17:20:03 +00:00
e897bb7971
fix cargo plugin installation detection
42 lines
989 B
TOML
42 lines
989 B
TOML
|
|
[config]
|
|
skip_core_tasks = true
|
|
|
|
[tasks.simple-example]
|
|
install_crate = { min_version = "0.0.1" }
|
|
command = "cargo"
|
|
args = ["make", "--version"]
|
|
|
|
[tasks.complex-example]
|
|
install_crate = { crate_name = "cargo-make", binary = "cargo", test_arg = [
|
|
"make",
|
|
"--version",
|
|
], min_version = "0.0.1" }
|
|
command = "cargo"
|
|
args = ["make", "--version"]
|
|
|
|
[tasks.alt-command-example1]
|
|
install_crate = { install_command = "custom-install" }
|
|
command = "cargo"
|
|
args = ["somecrate"]
|
|
|
|
[tasks.alt-command-example2]
|
|
install_crate = { crate_name = "somecrate", install_command = "custom-install" }
|
|
|
|
[tasks.alt-command-example3.install_crate]
|
|
crate_name = "cargo-make"
|
|
binary = "cargo"
|
|
test_arg = ["make", "--help"]
|
|
version = "9999.0.0"
|
|
install_command = "custom-install"
|
|
force = false
|
|
|
|
[tasks.fmt]
|
|
install_crate = { crate_name = "rustfmt", binary = "rustfmt", version = "1.4.37", test_arg = "--help" }
|
|
command = "cargo"
|
|
args = ["fmt", "badarg"]
|
|
|
|
[tasks.make]
|
|
command = "cargo"
|
|
args = ["make", "--version"]
|