Closed pickfire closed 2 years ago
Adding alias to .cargo/config
seemed to do the job.
[alias]
b = "build --workspace --exclude xtask"
c = "check --workspace --exclude xtask"
We figured out how to solve this without using the alias hack. https://github.com/helix-editor/helix/commit/79caa7b72bef94bd820758b2ebc20887324f7416
Can use default-members
in root Cargo.toml
.
default-members = ["helix-term"]
I guess maybe we should put it in the README somewhere around Not Using xtasks so that people not using every time don't need to keep building it?
I’d say the best way to avoid building xtask is to not make it a part of workspace:
If you don't want to use a workspace, you can use run --manifest-path ./xtask/Cargo.toml -- for the alias, but this is not recommended.
I guess for now we can close this and discuss it there.
xtask was added to helix but seemed like everytime something (one of the xtask dependency) is changed, xtask gets built. https://github.com/helix-editor/helix
Is there any way for
cargo build
to ignorextask
workspace? I think it is better to only be built whencargo xtask
is called, since we only usecargo xtask docgen
for documentation generation and is rarely runned unlikecargo b
.Seemed like
cargo run
won't buildxtask
but stillcargo build
will build xtask.I think there is
cargo b -p helix-term
but I wonder if there is config to just exclude xtask so can runcargo b
like usual.