chore: Introduce workspace dependencies (#4085)

* cargo: Introduce workspace dependencies

and deduplicate dependency entries across all non-plugin workspace
members. In the future this hopefully makes dependency upgrade easier
since shared dependencies need only be touched in one location.

* docs: Update CHANGELOG with PR #4085.
This commit is contained in:
har7an 2025-03-22 12:57:32 +00:00 committed by GitHub
parent 503e20132a
commit 25e5f551c0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 64 additions and 49 deletions

View file

@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
## [Unreleased] ## [Unreleased]
* refactor(terminal): track scroll_region as tuple rather than Option (https://github.com/zellij-org/zellij/pull/4082) * refactor(terminal): track scroll_region as tuple rather than Option (https://github.com/zellij-org/zellij/pull/4082)
* chore(deps): Use workspace dependencies (https://github.com/zellij-org/zellij/pull/4085)
## [0.42.1] - 2025-03-21 ## [0.42.1] - 2025-03-21
* fix(mouse): fix mouse handling in windows terminal (https://github.com/zellij-org/zellij/pull/4076) * fix(mouse): fix mouse handling in windows terminal (https://github.com/zellij-org/zellij/pull/4076)

View file

@ -16,12 +16,12 @@ rust-version = "1.84"
[dependencies] [dependencies]
zellij-client = { path = "zellij-client/", version = "0.43.0" } zellij-client = { path = "zellij-client/", version = "0.43.0" }
zellij-server = { path = "zellij-server/", version = "0.43.0" } zellij-server = { path = "zellij-server/", version = "0.43.0" }
zellij-utils = { path = "zellij-utils/", version = "0.43.0" } zellij-utils = { workspace = true }
thiserror = "1.0.40"
names = { version = "0.14.0", default-features = false }
log = "0.4.17"
dialoguer = "0.10.4" dialoguer = "0.10.4"
log = { workspace = true }
names = { version = "0.14.0", default-features = false }
suggest = "0.4.0" suggest = "0.4.0"
thiserror = { workspace = true }
[dev-dependencies] [dev-dependencies]
insta = { version = "1.6.0", features = ["backtrace"] } insta = { version = "1.6.0", features = ["backtrace"] }
@ -49,6 +49,21 @@ members = [
".", ".",
] ]
[workspace.dependencies]
ansi_term = "0.12.1"
anyhow = { version = "1.0.70", features = ["backtrace"] }
clap = { version = "3.2.2", features = ["derive", "env"] }
log = "0.4.17"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
strum = "0.20.0"
strum_macros = "0.20.0"
thiserror = "1.0.40"
unicode-width = "0.1.8"
url = { version = "2.2.2", features = ["serde"] }
uuid = { version = "1.4.1", features = ["serde", "v4"] }
zellij-utils = { path = "zellij-utils/", version = "0.43.0" }
[profile.dev-opt] [profile.dev-opt]
inherits = "dev" inherits = "dev"

View file

@ -5,14 +5,14 @@ edition = "2021"
[dependencies] [dependencies]
anyhow = "1.0" anyhow = { workspace = true }
prost-build = "0.11.9"
toml = "0.5"
which = "4.2"
xflags = "0.3.2"
# TODO(hartan): Update this once we get a new release. See: # TODO(hartan): Update this once we get a new release. See:
# <https://github.com/matklad/xshell/issues/63> # <https://github.com/matklad/xshell/issues/63>
xshell = "= 0.2.2" xshell = "= 0.2.2"
xflags = "0.3.2"
which = "4.2"
toml = "0.5"
prost-build = "0.11.9"
[lints.rust] [lints.rust]
# Only required because we need to fix `xshell` to `=0.2.2` # Only required because we need to fix `xshell` to `=0.2.2`

View file

@ -9,13 +9,13 @@ license = "MIT"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
log = { workspace = true }
mio = { version = "0.7.11", features = ['os-ext'] } mio = { version = "0.7.11", features = ['os-ext'] }
serde = { version = "1.0", features = ["derive"] } serde = { workspace = true }
url = { version = "2.2.2", features = ["serde"] } serde_json = { workspace = true }
serde_yaml = "0.8" serde_yaml = "0.8"
serde_json = "1.0" url = { workspace = true }
zellij-utils = { path = "../zellij-utils/", version = "0.43.0" } zellij-utils = { workspace = true }
log = "0.4.17"
[dev-dependencies] [dev-dependencies]
insta = "1.6.0" insta = "1.6.0"

View file

@ -9,30 +9,29 @@ license = "MIT"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
highway = "0.6.4" ansi_term = { workspace = true }
ansi_term = "0.12.1" arrayvec = "0.7.2"
async-trait = "0.1.50" async-trait = "0.1.50"
base64 = "0.13.0" base64 = "0.13.0"
byteorder = "1.4.3" byteorder = "1.4.3"
bytes = "1.6.0" bytes = "1.6.0"
daemonize = "0.5"
serde_json = "1.0"
unicode-width = "0.1.8"
url = "2.2.2"
wasmtime-wasi = "29.0.1" # Keep in sync with wasmtime
cassowary = "0.3.0" cassowary = "0.3.0"
zellij-utils = { path = "../zellij-utils/", version = "0.43.0" }
log = "0.4.17"
typetag = "0.1.7"
chrono = "0.4.19" chrono = "0.4.19"
close_fds = "0.3.2" close_fds = "0.3.2"
sysinfo = "0.22.5" daemonize = "0.5"
sixel-tokenizer = "0.1.0" highway = "0.6.4"
sixel-image = "0.1.0" log = { workspace = true }
arrayvec = "0.7.2"
uuid = { version = "1.4.1", features = ["serde", "v4"] }
semver = "0.11.0" semver = "0.11.0"
serde_json = { workspace = true }
sixel-image = "0.1.0"
sixel-tokenizer = "0.1.0"
sysinfo = "0.22.5"
typetag = "0.1.7"
unicode-width = { workspace = true }
url = { workspace = true }
uuid = { workspace = true }
wasmtime-wasi = "29.0.1" # Keep in sync with wasmtime
zellij-utils = { workspace = true }
[dependencies.wasmtime] [dependencies.wasmtime]
version = "29.0.1" # Keep in sync with wasmtime-wasi version = "29.0.1" # Keep in sync with wasmtime-wasi
default-features = false default-features = false

View file

@ -9,4 +9,4 @@ license = "MIT"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
ansi_term = "0.12.1" ansi_term = { workspace = true }

View file

@ -7,9 +7,9 @@ description = "A small client-side library for writing Zellij plugins"
license = "MIT" license = "MIT"
[dependencies] [dependencies]
clap = { version = "3.0", features = ["derive"] } clap = { workspace = true }
serde = { version = "1.0", features = ["derive"] } serde = { workspace = true }
serde_json = "1.0" serde_json = { workspace = true }
strum = "0.20.0" strum = { workspace = true }
strum_macros = "0.20.0" strum_macros = { workspace = true }
zellij-utils = { path = "../zellij-utils/", version = "0.43.0" } zellij-utils = { workspace = true }

View file

@ -10,10 +10,11 @@ include = ["src/**/*", "assets/"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
anyhow = { version = "1.0.70", features = ["backtrace"] } anyhow = { workspace = true }
async-channel = "1.8.0" async-channel = "1.8.0"
backtrace = "0.3.55" backtrace = "0.3.55"
clap = { version = "3.2.2", features = ["derive", "env"] } bitflags = "2.5.0"
clap = { workspace = true }
clap_complete = "3.2.1" clap_complete = "3.2.1"
colored = "2.0.0" colored = "2.0.0"
colorsys = "0.6.5" colorsys = "0.6.5"
@ -23,7 +24,7 @@ include_dir = "0.7.3"
kdl = { version = "4.5.0", features = ["span"] } kdl = { version = "4.5.0", features = ["span"] }
lazy_static = "1.4.0" lazy_static = "1.4.0"
libc = "0.2" libc = "0.2"
log = "0.4.17" log = { workspace = true }
miette = { version = "5.7.0", features = ["fancy"] } miette = { version = "5.7.0", features = ["fancy"] }
nix = "0.23.1" nix = "0.23.1"
once_cell = "1.8.0" once_cell = "1.8.0"
@ -31,18 +32,17 @@ percent-encoding = "2.1.0"
prost = "0.11.9" prost = "0.11.9"
regex = "1.5.5" regex = "1.5.5"
rmp-serde = "1.1.0" rmp-serde = "1.1.0"
serde = { version = "1.0", features = ["derive"] } serde = { workspace = true }
serde_json = "1.0" serde_json = { workspace = true }
shellexpand = "3.0.0" shellexpand = "3.0.0"
strip-ansi-escapes = "0.1.0" strip-ansi-escapes = "0.1.0"
strum = "0.20.0" strum = { workspace = true }
strum_macros = "0.20.1" strum_macros = { workspace = true }
tempfile = "3.2.0" tempfile = "3.2.0"
thiserror = "1.0.30" thiserror = { workspace = true }
unicode-width = "0.1.8" unicode-width = { workspace = true }
url = { version = "2.2.2", features = ["serde"] } url = { workspace = true }
uuid = { version = "1.4.1", features = ["serde", "v4"] } uuid = { workspace = true }
bitflags = "2.5.0"
vte = { version = "0.11.0", default-features = false } vte = { version = "0.11.0", default-features = false }
#[cfg(not(target_family = "wasm"))] #[cfg(not(target_family = "wasm"))]