mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 20:17:45 +00:00
maint/build ~ improve cargo-make
build file organization and help text
This commit is contained in:
parent
ab9da0aa63
commit
97de0dfa9b
1 changed files with 10 additions and 12 deletions
|
@ -9,6 +9,12 @@ init_task = "_init"
|
||||||
[config.modify_core_tasks]
|
[config.modify_core_tasks]
|
||||||
namespace = "core"
|
namespace = "core"
|
||||||
|
|
||||||
|
### initialization
|
||||||
|
|
||||||
|
[tasks._init]
|
||||||
|
private = true
|
||||||
|
run_task = "_init_"
|
||||||
|
|
||||||
[tasks._init_]
|
[tasks._init_]
|
||||||
private = true
|
private = true
|
||||||
dependencies = [
|
dependencies = [
|
||||||
|
@ -70,6 +76,8 @@ set_env CARGO_MAKE_TASK_BUILD_UTILS_ARGS "${args}"
|
||||||
'''
|
'''
|
||||||
]
|
]
|
||||||
|
|
||||||
|
### tasks
|
||||||
|
|
||||||
[tasks.default]
|
[tasks.default]
|
||||||
description = "Build and Test"
|
description = "Build and Test"
|
||||||
category = "[project]"
|
category = "[project]"
|
||||||
|
@ -88,7 +96,7 @@ dependencies = [
|
||||||
]
|
]
|
||||||
|
|
||||||
[tasks.build-features]
|
[tasks.build-features]
|
||||||
description = "Build (with features)"
|
description = "Build (with features); usage: `cargo make (build-features | features) FEATURE..`"
|
||||||
category = "[project]"
|
category = "[project]"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"core::pre-build",
|
"core::pre-build",
|
||||||
|
@ -98,8 +106,6 @@ dependencies = [
|
||||||
|
|
||||||
[tasks.features]
|
[tasks.features]
|
||||||
alias = "build-features"
|
alias = "build-features"
|
||||||
description = "Build (with features)"
|
|
||||||
category = "[project]"
|
|
||||||
|
|
||||||
[tasks.format]
|
[tasks.format]
|
||||||
description = "Format"
|
description = "Format"
|
||||||
|
@ -147,11 +153,9 @@ dependencies = [
|
||||||
|
|
||||||
[tasks.util]
|
[tasks.util]
|
||||||
alias = "utils"
|
alias = "utils"
|
||||||
description = "Build (individual) utilities"
|
|
||||||
category = "[project]"
|
|
||||||
|
|
||||||
[tasks.utils]
|
[tasks.utils]
|
||||||
description = "Build (individual) utilities"
|
description = "Build (individual) utilities; usage: `cargo make (util | utils) [UTIL_NAME..]`"
|
||||||
category = "[project]"
|
category = "[project]"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"core::pre-build",
|
"core::pre-build",
|
||||||
|
@ -226,9 +230,3 @@ args = ["fmt", "--", "--check"]
|
||||||
description = "Test (in `--quiet` mode)"
|
description = "Test (in `--quiet` mode)"
|
||||||
command = "cargo"
|
command = "cargo"
|
||||||
args = ["test", "--quiet", "@@split(CARGO_MAKE_CARGO_BUILD_TEST_FLAGS, )"]
|
args = ["test", "--quiet", "@@split(CARGO_MAKE_CARGO_BUILD_TEST_FLAGS, )"]
|
||||||
|
|
||||||
### private
|
|
||||||
|
|
||||||
[tasks._init]
|
|
||||||
private = true
|
|
||||||
run_task = "_init_"
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue