* xtask: Implement a new build system xtask is a cargo alias that is used to extend the cargo build system with custom commands. For an introduction to xtask, see here: https://github.com/matklad/cargo-xtask/ The idea is that instead of writing makefiles, xtask requires no additional dependencies except `cargo` and `rustc`, which must be available to build the project anyway. This commit provides a basic implementation of the `build` and `test` subcommands. * xtask/deps: Add 'which' * xtask/test: Handle error when cargo not found * xtask/flags: Add more commands to perform different useful tasks. Includes: - clippy - format - "make" (composite) - "install" (composite) Also add more options to `build` to selectively compile plugins or leave them out entirely. * xtask/main: Return error when cargo not found * xtask/build: Add more subtasks - `wasm_opt_plugins` and - `manpage` that perform other build commands. Add thorough documentation on what each of these does and also handle the new `build` cli flags appropriately. * xtask/clippy: Add job to run clippy * xtask/format: Add job to run rustfmt * xtask/pipeline: Add composite commands that perform multiple atomic xtask commands sequentially in a pipeline sort of fashion. * xtask/deps: Pin dependencies * xtask/main: Integrate new jobs and add documentation. * xtask: Implement 'dist' which performs an 'install' and copies the resulting zellij binary along with some other assets to a `target/dist` folder. * cargo: Update xflags version * xtask: Measure task time, update tty title * xtask: Update various tasks * xtask: wasm-opt plugins in release builds automatically. * xtask/build: Copy debug plugins to assets folder * xtask: Add 'run' subcommand * xtask: Add arbitrary args to test and run * xtask: Rearrange CLI commands in help * xtask: Add deprecation notice * docs: Replace `cargo make` with `xtask` * github: Use `xtask` in workflows. * xtask: Add support for CI commands * xtask: Streamline error handling * github: Use new xtask commands in CI * xtask: Add 'publish' job * xtask/publish: Add retry when publish fails * xtask: Apply rustfmt * xtask: Refine 'make' deprecation warning * xtask: add task to build manpage * contributing: Fix e2e commands * xtask/run: Add missing `--` to pass all arguments following `xtask run` directly to the zellij binary being run. * xtask: Stay in invocation dir and make all tasks that need it change to the project root dir themselves. * xtask/run: Add `--data-dir` flag which will allow very quick iterations when not changing the plugins between builds. * xtask/ci: Install dependencies without asking * utils: Allow including plugins from target folder * utils/assets: Reduce asset map complexity * utils/consts: Update asset map docs * xtask: Fix plugin includes * xtask/test: Build plugins first because the zellij binary needs to include the plugins. * xtask/test: Fix formatting * xtask: Add notice on how to disable it
75 lines
2.4 KiB
TOML
75 lines
2.4 KiB
TOML
[package]
|
|
name = "zellij"
|
|
version = "0.34.5"
|
|
authors = ["Aram Drevekenin <aram@poor.dev>"]
|
|
edition = "2021"
|
|
description = "A terminal workspace with batteries included"
|
|
license = "MIT"
|
|
repository = "https://github.com/zellij-org/zellij"
|
|
homepage = "https://zellij.dev"
|
|
include = ["src/**/*", "assets/layouts/*", "assets/config/*", "LICENSE.md", "README.md", "!**/*_test.*", "!**/tests/**/*"]
|
|
rust-version = "1.60"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
anyhow = "1.0"
|
|
thiserror = "1.0.30"
|
|
names = { version = "0.13.0", default-features = false }
|
|
miette = { version = "3.3.0", features = ["fancy"] }
|
|
zellij-client = { path = "zellij-client/", version = "0.34.5" }
|
|
zellij-server = { path = "zellij-server/", version = "0.34.5" }
|
|
zellij-utils = { path = "zellij-utils/", version = "0.34.5" }
|
|
log = "0.4.17"
|
|
dialoguer = "0.10.1"
|
|
suggest = "0.4"
|
|
|
|
[dev-dependencies]
|
|
insta = { version = "1.6.0", features = ["backtrace"] }
|
|
ssh2 = "0.9.1"
|
|
rand = "0.8.0"
|
|
|
|
[workspace]
|
|
members = [
|
|
"default-plugins/compact-bar",
|
|
"default-plugins/status-bar",
|
|
"default-plugins/strider",
|
|
"default-plugins/tab-bar",
|
|
"zellij-client",
|
|
"zellij-server",
|
|
"zellij-utils",
|
|
"zellij-tile",
|
|
"zellij-tile-utils",
|
|
"xtask",
|
|
".",
|
|
]
|
|
|
|
[profile.release]
|
|
lto = true
|
|
strip = true
|
|
|
|
[package.metadata.deb]
|
|
depends = "$auto"
|
|
license-file = ["LICENSE.md", "4"]
|
|
assets = [
|
|
["assets/man/zellij.1", "usr/share/man/man1/zellij.1", "644"],
|
|
["target/release/zellij", "usr/bin/zellij", "755"],
|
|
["GOVERNANCE.md", "usr/share/doc/zellij/GOVERNANCE.md", "644"],
|
|
["README.md", "usr/share/doc/zellij/README.md", "644"],
|
|
["assets/layouts/*", "usr/share/zellij/layouts/", "644"],
|
|
["assets/plugins/*", "usr/share/zellij/plugins/", "644"],
|
|
["assets/completions/zellij.bash", "usr/share/bash-completion/completions/zellij.bash", "644"],
|
|
["assets/completions/zellij.fish", "usr/share/fish/vendor_completions.d/zellij.fish", "644"],
|
|
["assets/completions/_zellij", "usr/share/zsh/vendor-completions/_zellij", "644"],
|
|
]
|
|
|
|
[package.metadata.binstall]
|
|
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-{ target }.tar.gz"
|
|
bin-dir = "{ bin }{ binary-ext }"
|
|
pkg-fmt = "tgz"
|
|
|
|
[features]
|
|
# See remarks in zellij_utils/Cargo.toml
|
|
default = [ "zellij-utils/plugins_from_target" ]
|
|
disable_automatic_asset_installation = [ "zellij-utils/disable_automatic_asset_installation" ]
|
|
unstable = [ "zellij-client/unstable", "zellij-utils/unstable" ]
|