Is it possible to extend the args
?
#800
Answered
by
sagiegurari
AurevoirXavier
asked this question in
Q&A
-
Is it possible to extend the I want to build with many different features. But I don't want to rewrite the same fields. Like |
Beta Was this translation helpful? Give feedback.
Answered by
sagiegurari
Feb 27, 2023
Replies: 1 comment
-
no. instead what you could do is templating via functions. [tasks.build-general]
args = [
"build",
"--locked",
"--release",
"--no-default-features",
"--features",
"@@split(FEATURE_LIST, )",
]
[tasks.build-feature1]
extend = "build-general"
env = {"FEATURE_LIST" = "feature1"}
[tasks.build-feature1-and-feature2]
extend = "build-general"
env = {"FEATURE_LIST" = "feature1 feature2"} more on split function: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
AurevoirXavier
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
no. instead what you could do is templating via functions.
for example:
more on split function:
https://github.com/sagiegurari/cargo-make#usage-functions-split