aboutsummaryrefslogtreecommitdiffstats
path: root/xtask/src/flags.rs
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2026-07-30 16:50:12 +0200
committerGitHub <noreply@github.com>2026-07-30 16:50:12 +0200
commit0ed2edea0cabf1ca7ce0983d7a0ec0430a33d621 (patch)
tree34e49d9df43c3ca16b3fc305aab2dd391ad5bc46 /xtask/src/flags.rs
parentEven more debian upgrades (#5424) (diff)
downloadsl0ppij-0ed2edea0cabf1ca7ce0983d7a0ec0430a33d621.tar.gz
sl0ppij-0ed2edea0cabf1ca7ce0983d7a0ec0430a33d621.tar.xz
sl0ppij-0ed2edea0cabf1ca7ce0983d7a0ec0430a33d621.zip
fix(build): remove manpage, honor CARGO_TARGET_DIR, add cargo argument passthrough, remove clippy (#5426)
* fix(build): remove manpage, honor CARGO_TARGET_DIR, add cargo argument passthrough, remove clippy * add pr
Diffstat (limited to 'xtask/src/flags.rs')
-rw-r--r--xtask/src/flags.rs34
1 files changed, 12 insertions, 22 deletions
diff --git a/xtask/src/flags.rs b/xtask/src/flags.rs
index bd963770..788e1234 100644
--- a/xtask/src/flags.rs
+++ b/xtask/src/flags.rs
@@ -39,9 +39,6 @@ xflags::xflags! {
}
}
- /// Build the manpage
- cmd manpage {}
-
cmd proto {}
/// Publish zellij and all the sub-crates
@@ -56,13 +53,7 @@ xflags::xflags! {
optional --cargo-registry registry: OsString
}
- /// Package zellij for distribution (result found in ./target/dist)
- cmd dist {}
-
- /// Run `cargo clippy` on all crates
- cmd clippy {}
-
- /// Sequentially call: format, build, test, clippy
+ /// Sequentially call: format, build, test
cmd make {
/// Build in release mode without debug symbols
optional -r, --release
@@ -77,6 +68,10 @@ xflags::xflags! {
required destination: PathBuf
/// Compile without web server support
optional --no-web
+ /// Extra arguments appended to the native `cargo build` invocation
+ /// (e.g. `--no-default-features`, `--features ...`, `--offline`, `--locked`, `-j N`).
+ /// Not applied to the wasm plugin build.
+ repeated args: OsString
}
/// Run debug version of zellij
@@ -128,6 +123,10 @@ xflags::xflags! {
optional --no-plugins
/// Compile without web support
optional --no-web
+ /// Extra arguments appended to the native `cargo build` invocation
+ /// (e.g. `--no-default-features`, `--features ...`, `--offline`, `--locked`, `-j N`).
+ /// Not applied to the wasm plugin build.
+ repeated args: OsString
}
}
}
@@ -143,11 +142,8 @@ pub struct Xtask {
pub enum XtaskCmd {
Deprecated(Deprecated),
Ci(Ci),
- Manpage(Manpage),
Proto(Proto),
Publish(Publish),
- Dist(Dist),
- Clippy(Clippy),
Make(Make),
Install(Install),
Run(Run),
@@ -195,9 +191,6 @@ pub struct BuildRelease {
}
#[derive(Debug)]
-pub struct Manpage;
-
-#[derive(Debug)]
pub struct Proto;
#[derive(Debug)]
@@ -209,12 +202,6 @@ pub struct Publish {
}
#[derive(Debug)]
-pub struct Dist;
-
-#[derive(Debug)]
-pub struct Clippy;
-
-#[derive(Debug)]
pub struct Make {
pub release: bool,
pub clean: bool,
@@ -224,6 +211,7 @@ pub struct Make {
#[derive(Debug)]
pub struct Install {
pub destination: PathBuf,
+ pub args: Vec<OsString>,
pub no_web: bool,
}
@@ -260,6 +248,8 @@ pub struct IntegrationTest {
#[derive(Debug)]
pub struct Build {
+ pub args: Vec<OsString>,
+
pub release: bool,
pub plugins_only: bool,
pub no_plugins: bool,