-
Hi, I've been using I have this: [tasks.build]
command = "cargo"
condition = { env_set = ["TARGET"] }
args = ["build", "--release", "--target", "${TARGET}"]
clear = true But I want to pass |
Beta Was this translation helpful? Give feedback.
Answered by
Absolucy
Feb 21, 2021
Replies: 2 comments
-
Figured it out: [env.development]
CARGO_ARGS = "--features beta"
[env.production]
CARGO_ARGS = "--release"
[tasks.build]
command = "cargo"
condition = { env_set = ["TARGET"] }
args = ["build", "--target", "${TARGET}", "@@split(CARGO_ARGS, )"]
clear = true (hope this can help someone else someday) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Absolucy
-
thanks for publishing your answer :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Figured it out:
(hope this can help someone else someday)