2021-02-10 01:19:34 +03:00
|
|
|
[package]
|
|
|
|
name = "zellij"
|
2024-11-05 11:32:45 +03:00
|
|
|
version = "0.42.0"
|
2021-02-10 01:19:34 +03:00
|
|
|
authors = ["Aram Drevekenin <aram@poor.dev>"]
|
2021-10-22 04:21:16 +03:00
|
|
|
edition = "2021"
|
2021-04-20 02:23:01 +03:00
|
|
|
description = "A terminal workspace with batteries included"
|
2021-02-16 21:50:22 +03:00
|
|
|
license = "MIT"
|
2021-02-26 01:42:52 +03:00
|
|
|
repository = "https://github.com/zellij-org/zellij"
|
2021-04-20 02:23:01 +03:00
|
|
|
homepage = "https://zellij.dev"
|
2022-12-09 13:49:32 +03:00
|
|
|
include = ["src/**/*", "assets/layouts/*", "assets/config/*", "LICENSE.md", "README.md", "!**/*_test.*", "!**/tests/**/*"]
|
2024-07-08 18:38:28 +03:00
|
|
|
# NOTE: When updating this, modify `channel` in `rust-toolchain.toml` accordingly
|
|
|
|
rust-version = "1.75"
|
2021-02-26 02:05:04 +03:00
|
|
|
|
2021-02-10 01:19:34 +03:00
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
|
|
|
|
[dependencies]
|
2024-11-05 11:32:45 +03:00
|
|
|
zellij-client = { path = "zellij-client/", version = "0.42.0" }
|
|
|
|
zellij-server = { path = "zellij-server/", version = "0.42.0" }
|
|
|
|
zellij-utils = { path = "zellij-utils/", version = "0.42.0" }
|
2023-05-09 05:43:28 +03:00
|
|
|
thiserror = "1.0.40"
|
|
|
|
names = { version = "0.14.0", default-features = false }
|
2022-05-09 19:32:36 +03:00
|
|
|
log = "0.4.17"
|
2023-05-09 05:43:28 +03:00
|
|
|
dialoguer = "0.10.4"
|
|
|
|
suggest = "0.4.0"
|
2021-02-10 01:19:34 +03:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2021-06-21 11:45:18 +03:00
|
|
|
insta = { version = "1.6.0", features = ["backtrace"] }
|
|
|
|
ssh2 = "0.9.1"
|
|
|
|
rand = "0.8.0"
|
2023-04-28 16:26:39 +03:00
|
|
|
regex = "1.8.1"
|
2021-02-10 01:19:34 +03:00
|
|
|
|
2021-02-09 22:06:47 +03:00
|
|
|
[workspace]
|
|
|
|
members = [
|
plugins: rework plugin loading (#1924)
* zellij: Move "populate_data_dir" to utils
and rewrite it to take a second, optional parameter. This allows
controlling whether only a specific asset should be installed. We do
this as preparation for being able to recover from a plugin version
mismatch error, where we will need to repopulate the data dir for
offending plugins.
* server/wasm_vm: Recover from PluginVersionMismatch
Adds a global plugin cache that stores, per plugin config, the wasmer
module associated with it. Make `start_plugin` take the pre-populated
module and create only the necessary modifications to the wasm env etc.
* utils: Fix formatting
* zellij: Delete non-existent module
* utils/shared: fix missing "set_permissions"
function when not on unix systems.
* server/wasm_vm: Don't populate cachedir
with serialized versions of the WASM plugins.
* utils/input/plugins: load wasm bytes from assets
for builtin plugin specifications. This foregoes any need to:
- Dump the plugin bytes to disk at all and
- subsequently read the plugin bytes from disk
* zellij: Disable default asset installation
which previously installed only the builtin plugins to disk. This is no
longer necessary because now we can load the builtin plugins directly
from the application binary.
* utils/input/plugins: Update docs
* utils/input/plugins: Add 'is_builtin' method
to `PluginConfig` that returns true if the plugin configuration refers
to a builtin plugin.
* wasm_vm: Remove plugin version mismatch handling
because a version mismatch in an internal plugin is now unfixable, with
the plugins being loaded from the running binary, and we have no control
over external plugins in the first place.
* cargo: Reintroduce feature flag
for `disable_automatic_asset_installation`
* utils/consts: Add `ASSET_MAP`
which currently contains the compiled WASM plugins.
* utils/shared: Fix clippy lint
* utils/errors: Add more `ZellijError` variants
* zellij: Make loading internal plugins optional
by reenabling the `disable_automatic_asset_installation` flag and
utilizing it for this purpose. Changes plugin search behavior to throw
better errors in case the builtin plugins cannot be found, depending on
the state of this feature.
* utils/errors: Apply rustfmt
* utils/setup: Allow dumping builtin plugins
to a specified folder on disk. This is meant to be an "escape hatch" for
users that have accidentally deleted the builtin plugins from disk (in
cases where the plugins aren't loaded from inside the zellij binary).
* utils/input/plugins: Update docs
* utils/setup: Add hint to `setup --check` output
when zellij was built without the `disable_automatic_asset_installation`
flag and will thus not read builtin plugins from the "PLUGIN DIR".
* utils/setup: Refine `setup --dump-plugins`
to dump to:
- The default "DATA DIR" when no option is provided with the argument,
or
- The provided option, if existent
Also print a message to stdout with the destination folder that the
plugins are dumped to.
* server/wasm_vm: Ignore "NotFound" errors
when attempting to delete the non-existent plugin data directories. This
silences an error message that otherwise ends up in the logs when
quitting zellij.
* utils/errors: Extend "BuiltinPluginMissing" msg
to hint the user to the `zellij setup --dump-plugins` command to fix
their issues for them!
* utils/errors: Track caller in calls to `non_fatal`
which will hopefully, once closures can be annotated, allow us to
display the location of the call to `non_fatal` in log messages.
* utils/input/plugins: Fix plugin lookup
to prefer internal assets if available. It was previously broken because
sorting the paths vector before deduping it would bring the paths into a
wrong order, looking up in the plugin folder first.
Also print a log message when a plugin is being loaded from the internal
assets but exists on disk, too.
* Apply rustfmt
* make: build-e2e depends on wasm-opt-plugins
so it updates the assets when building the binary
* server/qwasm_vm: Remove var
* utils/consts: Add plugins from target folder
and include them in the asset map from there, too. Include plugins from
debug or release builds, depending on the build type.
* utils/consts: Take release plugins from assets
instead of the target/release folder. The latter will break
installations from crates.io, because we currently rely on including the
plugins we pre-compiled and distribute along with the binary.
* server/wasm_vm: Reintroduce .cache folder
to speedup subsequent application launches.
* cargo: Reorder workspace members
to improve behavior with `cargo make` with respect to compilation order.
* Makefile: restructure plugin tasks
* Makefile: Fix CI errors
* Makefile: More CI diagnosis
* github: Install wasm-opt in e2e test workflow
* Makefile: Build plugins for e2e-test target
* server/Wasm_vm: Reorder plugin folder creation
so no folders are created in the plugin cache when loading a plugin
fails due to not being present or similar.
* update plugins testcommit
* makefile: Change job order
* changelog: Add PR #1924
2022-11-22 23:06:02 +03:00
|
|
|
"default-plugins/compact-bar",
|
|
|
|
"default-plugins/status-bar",
|
|
|
|
"default-plugins/strider",
|
|
|
|
"default-plugins/tab-bar",
|
2023-05-16 13:47:18 +03:00
|
|
|
"default-plugins/fixture-plugin-for-tests",
|
2023-08-24 14:36:24 +03:00
|
|
|
"default-plugins/session-manager",
|
2024-07-17 17:08:31 +03:00
|
|
|
"default-plugins/configuration",
|
2024-09-30 19:04:40 +03:00
|
|
|
"default-plugins/plugin-manager",
|
2021-05-16 14:12:50 +03:00
|
|
|
"zellij-client",
|
|
|
|
"zellij-server",
|
|
|
|
"zellij-utils",
|
2021-02-09 22:06:47 +03:00
|
|
|
"zellij-tile",
|
2021-05-05 01:31:30 +03:00
|
|
|
"zellij-tile-utils",
|
2022-12-17 16:27:18 +03:00
|
|
|
"xtask",
|
2021-03-26 19:01:22 +03:00
|
|
|
".",
|
2021-02-09 22:06:47 +03:00
|
|
|
]
|
|
|
|
|
2023-05-03 22:16:38 +03:00
|
|
|
[profile.dev-opt]
|
|
|
|
inherits = "dev"
|
|
|
|
|
|
|
|
[profile.dev-opt.package."*"]
|
|
|
|
opt-level = 3
|
|
|
|
|
2021-02-09 22:06:47 +03:00
|
|
|
[profile.release]
|
|
|
|
lto = true
|
2022-11-10 12:47:00 +03:00
|
|
|
strip = true
|
2021-02-10 01:19:34 +03:00
|
|
|
|
|
|
|
[package.metadata.deb]
|
|
|
|
depends = "$auto"
|
|
|
|
license-file = ["LICENSE.md", "4"]
|
|
|
|
assets = [
|
2021-05-04 21:50:27 +03:00
|
|
|
["assets/man/zellij.1", "usr/share/man/man1/zellij.1", "644"],
|
2021-02-10 09:53:40 +03:00
|
|
|
["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"],
|
2021-02-10 01:19:34 +03:00
|
|
|
]
|
2021-05-06 22:38:10 +03:00
|
|
|
|
2022-02-27 17:06:43 +03:00
|
|
|
[package.metadata.binstall]
|
|
|
|
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-{ target }.tar.gz"
|
|
|
|
bin-dir = "{ bin }{ binary-ext }"
|
|
|
|
pkg-fmt = "tgz"
|
|
|
|
|
2021-05-06 22:38:10 +03:00
|
|
|
[features]
|
plugins: rework plugin loading (#1924)
* zellij: Move "populate_data_dir" to utils
and rewrite it to take a second, optional parameter. This allows
controlling whether only a specific asset should be installed. We do
this as preparation for being able to recover from a plugin version
mismatch error, where we will need to repopulate the data dir for
offending plugins.
* server/wasm_vm: Recover from PluginVersionMismatch
Adds a global plugin cache that stores, per plugin config, the wasmer
module associated with it. Make `start_plugin` take the pre-populated
module and create only the necessary modifications to the wasm env etc.
* utils: Fix formatting
* zellij: Delete non-existent module
* utils/shared: fix missing "set_permissions"
function when not on unix systems.
* server/wasm_vm: Don't populate cachedir
with serialized versions of the WASM plugins.
* utils/input/plugins: load wasm bytes from assets
for builtin plugin specifications. This foregoes any need to:
- Dump the plugin bytes to disk at all and
- subsequently read the plugin bytes from disk
* zellij: Disable default asset installation
which previously installed only the builtin plugins to disk. This is no
longer necessary because now we can load the builtin plugins directly
from the application binary.
* utils/input/plugins: Update docs
* utils/input/plugins: Add 'is_builtin' method
to `PluginConfig` that returns true if the plugin configuration refers
to a builtin plugin.
* wasm_vm: Remove plugin version mismatch handling
because a version mismatch in an internal plugin is now unfixable, with
the plugins being loaded from the running binary, and we have no control
over external plugins in the first place.
* cargo: Reintroduce feature flag
for `disable_automatic_asset_installation`
* utils/consts: Add `ASSET_MAP`
which currently contains the compiled WASM plugins.
* utils/shared: Fix clippy lint
* utils/errors: Add more `ZellijError` variants
* zellij: Make loading internal plugins optional
by reenabling the `disable_automatic_asset_installation` flag and
utilizing it for this purpose. Changes plugin search behavior to throw
better errors in case the builtin plugins cannot be found, depending on
the state of this feature.
* utils/errors: Apply rustfmt
* utils/setup: Allow dumping builtin plugins
to a specified folder on disk. This is meant to be an "escape hatch" for
users that have accidentally deleted the builtin plugins from disk (in
cases where the plugins aren't loaded from inside the zellij binary).
* utils/input/plugins: Update docs
* utils/setup: Add hint to `setup --check` output
when zellij was built without the `disable_automatic_asset_installation`
flag and will thus not read builtin plugins from the "PLUGIN DIR".
* utils/setup: Refine `setup --dump-plugins`
to dump to:
- The default "DATA DIR" when no option is provided with the argument,
or
- The provided option, if existent
Also print a message to stdout with the destination folder that the
plugins are dumped to.
* server/wasm_vm: Ignore "NotFound" errors
when attempting to delete the non-existent plugin data directories. This
silences an error message that otherwise ends up in the logs when
quitting zellij.
* utils/errors: Extend "BuiltinPluginMissing" msg
to hint the user to the `zellij setup --dump-plugins` command to fix
their issues for them!
* utils/errors: Track caller in calls to `non_fatal`
which will hopefully, once closures can be annotated, allow us to
display the location of the call to `non_fatal` in log messages.
* utils/input/plugins: Fix plugin lookup
to prefer internal assets if available. It was previously broken because
sorting the paths vector before deduping it would bring the paths into a
wrong order, looking up in the plugin folder first.
Also print a log message when a plugin is being loaded from the internal
assets but exists on disk, too.
* Apply rustfmt
* make: build-e2e depends on wasm-opt-plugins
so it updates the assets when building the binary
* server/qwasm_vm: Remove var
* utils/consts: Add plugins from target folder
and include them in the asset map from there, too. Include plugins from
debug or release builds, depending on the build type.
* utils/consts: Take release plugins from assets
instead of the target/release folder. The latter will break
installations from crates.io, because we currently rely on including the
plugins we pre-compiled and distribute along with the binary.
* server/wasm_vm: Reintroduce .cache folder
to speedup subsequent application launches.
* cargo: Reorder workspace members
to improve behavior with `cargo make` with respect to compilation order.
* Makefile: restructure plugin tasks
* Makefile: Fix CI errors
* Makefile: More CI diagnosis
* github: Install wasm-opt in e2e test workflow
* Makefile: Build plugins for e2e-test target
* server/Wasm_vm: Reorder plugin folder creation
so no folders are created in the plugin cache when loading a plugin
fails due to not being present or similar.
* update plugins testcommit
* makefile: Change job order
* changelog: Add PR #1924
2022-11-22 23:06:02 +03:00
|
|
|
# See remarks in zellij_utils/Cargo.toml
|
2023-10-12 17:05:45 +03:00
|
|
|
default = ["zellij-utils/plugins_from_target"]
|
|
|
|
disable_automatic_asset_installation = ["zellij-utils/disable_automatic_asset_installation"]
|
|
|
|
unstable = ["zellij-client/unstable", "zellij-utils/unstable"]
|
|
|
|
singlepass = ["zellij-server/singlepass"]
|
2023-04-19 11:09:39 +03:00
|
|
|
|
|
|
|
# uncomment this when developing plugins in the Zellij UI to make plugin compilation faster
|
|
|
|
# [profile.dev.package."*"]
|
|
|
|
# opt-level = 3
|