1
0
Fork 0

Compile the xtask target in release mode

This avoids having to compile serde(-derive) twice when doing a one
off-compile. That was the main issue with parsing toml files from the
xtask bundler, but with this change that's no longer an issue.
This commit is contained in:
Robbert van der Helm 2022-02-16 16:51:36 +01:00
parent 6cc1e4f73f
commit b8383abb47

View file

@ -1,2 +1,8 @@
[alias] [alias]
xtask = "run --package xtask --" # Building the xtask package in release mode is normally not necessary, but if
# you're going to compile other plugins in release mode then you'd need to
# recompile serde(-derive) because the xtask packages needs serde to parse the
# `bundler.toml` config file. To avoid needing to compile these expensive crates
# twice, we'll default to also running the xtask target in release mode.
xtask = "run --package xtask --release --"
xtask-debug = "run --package xtask --"