mirror of
https://github.com/zellij-org/zellij.git
synced 2024-11-29 12:28:16 +03:00
75801bdb0e
* server/tab: Don't panic in `Pane::render` and do not crash the application on failure to receive a render update from plugins any longer. Instead, will print a simple string with a hint to check the application logs, where a more thorough error indication can be found. * utils/errors: re-export `anyhow::Error` to create ad-hoc errors with custom error types, without having to wrap them into a `context()` before to turn the into anyhow errors. * plugins: Check plugin version on startup and terminate execution with a descriptive error message in case the plugin version is incompatible with the version of zellij being run. * server/wasm_vm: Add plugin path in version error so the user knows which plugin to look at in case they're using custom plugins. * server/wasm_vm: Check plugin version for equality Previously we would accept cases where the plugin version was newer than the zellij version, which doesn't make a lot of sense. * server/wasm_vm: Prettier error handling in call to `wasmer::Function::call` in case a plugin version mismatch can occur. * tile: Install custom panic handler that will print the panic message to a plugins stdout and then call a panic handler on the host that turns it into a real application-level panic. * tile: Catch errors in event deserialization and turn them into proper panics. These errors are symptomatic of an uncaught plugin version mismatch, for example when developing from main and compiling zellij/the plugins from source. Normal users should never get to see this error. * utils/errors: Improve output in `to_stdout` for anyhow errors. The default anyhow error formatting of `{:?}` is already very good, and we just made it worse by trying to invent our own formatting. * tile: Reword plugin mismatch error message * zellij: Apply rustfmt * changelog: Add PR #1838 Improve error handling on plugin version mismatch. * server/wasm_vm: Rephrase error in passive voice
39 lines
871 B
TOML
39 lines
871 B
TOML
[package]
|
|
name = "zellij-server"
|
|
version = "0.32.0"
|
|
authors = ["Kunal Mohan <kunalmohan99@gmail.com>"]
|
|
edition = "2021"
|
|
description = "The server-side library for Zellij"
|
|
license = "MIT"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
highway = "0.6.4"
|
|
ansi_term = "0.12.1"
|
|
async-trait = "0.1.50"
|
|
base64 = "0.13.0"
|
|
byteorder = "1.4.3"
|
|
daemonize = "0.4.1"
|
|
serde_json = "1.0"
|
|
unicode-width = "0.1.8"
|
|
url = "2.2.2"
|
|
wasmer = "1.0.0"
|
|
wasmer-wasi = "1.0.0"
|
|
cassowary = "0.3.0"
|
|
zellij-utils = { path = "../zellij-utils/", version = "0.32.0" }
|
|
log = "0.4.17"
|
|
typetag = "0.1.7"
|
|
chrono = "0.4.19"
|
|
close_fds = "0.3.2"
|
|
sysinfo = "0.22.5"
|
|
sixel-tokenizer = "0.1.0"
|
|
sixel-image = "0.1.0"
|
|
arrayvec = "0.7.2"
|
|
uuid = { version = "0.8.2", features = ["serde", "v4"] }
|
|
semver = "0.11.0"
|
|
|
|
[dev-dependencies]
|
|
insta = "1.6.0"
|
|
|