Move common dependencies to workspace

This commit is contained in:
karim 2024-08-01 09:47:45 -04:00
parent 7a380c2f0f
commit 72e6893387
13 changed files with 145 additions and 116 deletions

View file

@ -8,3 +8,32 @@ codegen-units = 1
lto = true lto = true
panic = "abort" panic = "abort"
strip = true strip = true
[workspace.dependencies]
ansi-to-tui = "=3.1.0"
anyhow = "1.0.86"
arc-swap = "1.7.1"
base64 = "0.22.1"
bitflags = "2.6.0"
clap = { version = "4.5.11", features = [ "derive" ] }
crossterm = { version = "0.27.0", features = [ "event-stream", "use-dev-tty" ] }
dirs = "5.0.1"
futures = "0.3.30"
globset = "0.4.14"
libc = "0.2.155"
md-5 = "0.10.6"
mlua = { version = "0.9.9", features = [ "lua54", "serialize", "macros", "async" ] }
parking_lot = "0.12.3"
ratatui = "0.27.0"
regex = "1.10.5"
scopeguard = "1.2.0"
serde = { version = "1.0.204", features = [ "derive" ] }
serde_json = "1.0.121"
shell-words = "1.1.0"
tokio = { version = "1.39.2", features = [ "full" ] }
tokio-stream = "0.1.15"
tokio-util = "0.7.11"
unicode-width = "0.1.13"
# Logging
tracing = { version = "0.1.40", features = [ "max_level_debug", "release_max_level_warn" ] }

View file

@ -13,22 +13,22 @@ yazi-config = { path = "../yazi-config", version = "0.3.0" }
yazi-shared = { path = "../yazi-shared", version = "0.3.0" } yazi-shared = { path = "../yazi-shared", version = "0.3.0" }
# External dependencies # External dependencies
ansi-to-tui = "=3.1.0" ansi-to-tui = { workspace = true }
anyhow = "1.0.86" anyhow = { workspace = true }
arc-swap = "1.7.1" arc-swap = { workspace = true }
base64 = "0.22.1" base64 = { workspace = true }
color_quant = "1.1.0" color_quant = "1.1.0"
crossterm = "0.27.0" crossterm = { workspace = true }
futures = "0.3.30" futures = { workspace = true }
image = "0.25.2" image = "0.25.2"
imagesize = "0.13.0" imagesize = "0.13.0"
kamadak-exif = "0.5.5" kamadak-exif = "0.5.5"
ratatui = "0.27.0" ratatui = { workspace = true }
scopeguard = "1.2.0" scopeguard = { workspace = true }
tokio = { version = "1.39.2", features = [ "full" ] } tokio = { workspace = true }
# Logging # Logging
tracing = { version = "0.1.40", features = [ "max_level_debug", "release_max_level_warn" ] } tracing = { workspace = true }
[target.'cfg(target_os = "macos")'.dependencies] [target.'cfg(target_os = "macos")'.dependencies]
crossterm = { version = "0.27.0", features = [ "use-dev-tty" ] } crossterm = { workspace = true }

View file

@ -9,17 +9,17 @@ homepage = "https://yazi-rs.github.io"
repository = "https://github.com/sxyazi/yazi" repository = "https://github.com/sxyazi/yazi"
[dependencies] [dependencies]
regex = "1.10.5" regex = { workspace = true }
yazi-adapter = { path = "../yazi-adapter", version = "0.3.0" } yazi-adapter = { path = "../yazi-adapter", version = "0.3.0" }
yazi-config = { path = "../yazi-config", version = "0.3.0" } yazi-config = { path = "../yazi-config", version = "0.3.0" }
yazi-shared = { path = "../yazi-shared", version = "0.3.0" } yazi-shared = { path = "../yazi-shared", version = "0.3.0" }
# External dependencies # External dependencies
clap = { version = "4.5.11", features = [ "derive" ] } clap = { workspace = true }
serde = { version = "1.0.204", features = [ "derive" ] } serde = { workspace = true }
[build-dependencies] [build-dependencies]
clap = { version = "4.5.11", features = [ "derive" ] } clap = { workspace = true }
clap_complete = "4.5.11" clap_complete = "4.5.11"
clap_complete_fig = "4.5.2" clap_complete_fig = "4.5.2"
clap_complete_nushell = "4.5.3" clap_complete_nushell = "4.5.3"

View file

@ -14,28 +14,28 @@ yazi-dds = { path = "../yazi-dds", version = "0.3.0" }
yazi-shared = { path = "../yazi-shared", version = "0.3.0" } yazi-shared = { path = "../yazi-shared", version = "0.3.0" }
# External dependencies # External dependencies
anyhow = "1.0.86" anyhow = { workspace = true }
clap = { version = "4.5.11", features = [ "derive" ] } clap = { workspace = true }
crossterm = "0.27.0" crossterm = { workspace = true }
md-5 = "0.10.6" md-5 = { workspace = true }
serde_json = "1.0.121" serde_json = { workspace = true }
tokio = { version = "1.39.2", features = [ "full" ] } tokio = { workspace = true }
toml_edit = "0.22.18" toml_edit = "0.22.18"
[build-dependencies] [build-dependencies]
yazi-shared = { path = "../yazi-shared", version = "0.3.0" } yazi-shared = { path = "../yazi-shared", version = "0.3.0" }
# External build dependencies # External build dependencies
anyhow = "1.0.86" anyhow = { workspace = true }
clap = { version = "4.5.11", features = [ "derive" ] } clap = { workspace = true }
clap_complete = "4.5.11" clap_complete = "4.5.11"
clap_complete_fig = "4.5.2" clap_complete_fig = "4.5.2"
clap_complete_nushell = "4.5.3" clap_complete_nushell = "4.5.3"
serde_json = "1.0.121" serde_json = { workspace = true }
vergen-gitcl = { version = "1.0.0", features = [ "build" ] } vergen-gitcl = { version = "1.0.0", features = [ "build" ] }
[target.'cfg(target_os = "macos")'.dependencies] [target.'cfg(target_os = "macos")'.dependencies]
crossterm = { version = "0.27.0", features = [ "use-dev-tty" ] } crossterm = { workspace = true }
[[bin]] [[bin]]
name = "ya" name = "ya"

View file

@ -12,17 +12,17 @@ repository = "https://github.com/sxyazi/yazi"
yazi-shared = { path = "../yazi-shared", version = "0.3.0" } yazi-shared = { path = "../yazi-shared", version = "0.3.0" }
# External dependencies # External dependencies
anyhow = "1.0.86" anyhow = { workspace = true }
arc-swap = "1.7.1" arc-swap = { workspace = true }
bitflags = "2.6.0" bitflags = { workspace = true }
crossterm = "0.27.0" crossterm = { workspace = true }
globset = "0.4.14" globset = { workspace = true }
indexmap = "2.2.6" indexmap = "2.2.6"
ratatui = "0.27.0" ratatui = { workspace = true }
regex = "1.10.5" regex = { workspace = true }
serde = { version = "1.0.204", features = [ "derive" ] } serde = { workspace = true }
toml = { version = "0.8.17", features = [ "preserve_order" ] } toml = { version = "0.8.17", features = [ "preserve_order" ] }
validator = { version = "0.18.1", features = [ "derive" ] } validator = { version = "0.18.1", features = [ "derive" ] }
[target.'cfg(target_os = "macos")'.dependencies] [target.'cfg(target_os = "macos")'.dependencies]
crossterm = { version = "0.27.0", features = [ "use-dev-tty" ] } crossterm = { workspace = true }

View file

@ -20,27 +20,27 @@ yazi-scheduler = { path = "../yazi-scheduler", version = "0.3.0" }
yazi-shared = { path = "../yazi-shared", version = "0.3.0" } yazi-shared = { path = "../yazi-shared", version = "0.3.0" }
# External dependencies # External dependencies
anyhow = "1.0.86" anyhow = { workspace = true }
bitflags = "2.6.0" bitflags = { workspace = true }
crossterm = "0.27.0" crossterm = { workspace = true }
dirs = "5.0.1" dirs = { workspace = true }
futures = "0.3.30" futures = { workspace = true }
notify = { git = "https://github.com/notify-rs/notify.git", rev = "96dec74316a93bed6eec9db177b233e6e017275e", default-features = false, features = [ "macos_fsevent" ] } notify = { git = "https://github.com/notify-rs/notify.git", rev = "96dec74316a93bed6eec9db177b233e6e017275e", default-features = false, features = [ "macos_fsevent" ] }
parking_lot = "0.12.3" parking_lot = { workspace = true }
ratatui = "0.27.0" ratatui = { workspace = true }
scopeguard = "1.2.0" scopeguard = { workspace = true }
serde = "1.0.204" serde = { workspace = true }
shell-words = "1.1.0" shell-words = { workspace = true }
tokio = { version = "1.39.2", features = [ "full" ] } tokio = { workspace = true }
tokio-stream = "0.1.15" tokio-stream = { workspace = true }
tokio-util = "0.7.11" tokio-util = { workspace = true }
unicode-width = "0.1.13" unicode-width = { workspace = true }
# Logging # Logging
tracing = { version = "0.1.40", features = [ "max_level_debug", "release_max_level_warn" ] } tracing = { workspace = true }
[target."cfg(unix)".dependencies] [target."cfg(unix)".dependencies]
libc = "0.2.155" libc = { workspace = true }
[target.'cfg(target_os = "macos")'.dependencies] [target.'cfg(target_os = "macos")'.dependencies]
crossterm = { version = "0.27.0", features = [ "use-dev-tty" ] } crossterm = { workspace = true }

View file

@ -17,17 +17,17 @@ yazi-boot = { path = "../yazi-boot", version = "0.3.0" }
yazi-shared = { path = "../yazi-shared", version = "0.3.0" } yazi-shared = { path = "../yazi-shared", version = "0.3.0" }
# External dependencies # External dependencies
anyhow = "1.0.86" anyhow = { workspace = true }
mlua = { version = "0.9.9", features = [ "lua54" ] } mlua = { workspace = true }
parking_lot = "0.12.3" parking_lot = { workspace = true }
serde = { version = "1.0.204", features = [ "derive" ] } serde = { workspace = true }
serde_json = "1.0.121" serde_json = { workspace = true }
tokio = { version = "1.39.2", features = [ "full" ] } tokio = { workspace = true }
tokio-stream = "0.1.15" tokio-stream = { workspace = true }
tokio-util = "0.7.11" tokio-util = { workspace = true }
# Logging # Logging
tracing = { version = "0.1.40", features = [ "max_level_debug", "release_max_level_warn" ] } tracing = { workspace = true }
[build-dependencies] [build-dependencies]
vergen-gitcl = { version = "1.0.0", features = [ "build" ] } vergen-gitcl = { version = "1.0.0", features = [ "build" ] }

View file

@ -24,29 +24,29 @@ yazi-proxy = { path = "../yazi-proxy", version = "0.3.0" }
yazi-shared = { path = "../yazi-shared", version = "0.3.0" } yazi-shared = { path = "../yazi-shared", version = "0.3.0" }
# External dependencies # External dependencies
anyhow = "1.0.86" anyhow = { workspace = true }
better-panic = "0.3.0" better-panic = "0.3.0"
crossterm = { version = "0.27.0", features = [ "event-stream" ] } crossterm = { workspace = true }
fdlimit = "0.3.0" fdlimit = "0.3.0"
futures = "0.3.30" futures = { workspace = true }
mlua = { version = "0.9.9", features = [ "lua54" ] } mlua = { workspace = true }
ratatui = "0.27.0" ratatui = { workspace = true }
scopeguard = "1.2.0" scopeguard = { workspace = true }
syntect = { version = "5.2.0", default-features = false, features = [ "parsing", "plist-load", "regex-onig" ] } syntect = { version = "5.2.0", default-features = false, features = [ "parsing", "plist-load", "regex-onig" ] }
tokio = { version = "1.39.2", features = [ "full" ] } tokio = { workspace = true }
tokio-stream = "0.1.15" tokio-stream = { workspace = true }
# Logging # Logging
tracing = { version = "0.1.40", features = [ "max_level_debug", "release_max_level_warn" ] } tracing = { workspace = true }
tracing-appender = "0.2.3" tracing-appender = "0.2.3"
tracing-subscriber = "0.3.18" tracing-subscriber = "0.3.18"
[target."cfg(unix)".dependencies] [target."cfg(unix)".dependencies]
libc = "0.2.155" libc = { workspace = true }
signal-hook-tokio = { version = "0.3.1", features = [ "futures-v0_3" ] } signal-hook-tokio = { version = "0.3.1", features = [ "futures-v0_3" ] }
[target.'cfg(target_os = "macos")'.dependencies] [target.'cfg(target_os = "macos")'.dependencies]
crossterm = { version = "0.27.0", features = [ "event-stream", "use-dev-tty" ] } crossterm = { workspace = true }
[target.'cfg(all(not(target_os = "macos"), not(target_os = "windows")))'.dependencies] [target.'cfg(all(not(target_os = "macos"), not(target_os = "windows")))'.dependencies]
tikv-jemallocator = "0.6.0" tikv-jemallocator = "0.6.0"

View file

@ -14,8 +14,8 @@ yazi-proxy = { path = "../yazi-proxy", version = "0.3.0" }
yazi-shared = { path = "../yazi-shared", version = "0.3.0" } yazi-shared = { path = "../yazi-shared", version = "0.3.0" }
# External dependencies # External dependencies
anyhow = "1.0.86" anyhow = { workspace = true }
futures = "0.3.30" futures = { workspace = true }
ratatui = "0.27.0" ratatui = { workspace = true }
regex = "1.10.5" regex = { workspace = true }
tokio = { version = "1.39.2", features = [ "full" ] } tokio = { workspace = true }

View file

@ -21,26 +21,26 @@ yazi-proxy = { path = "../yazi-proxy", version = "0.3.0" }
yazi-shared = { path = "../yazi-shared", version = "0.3.0" } yazi-shared = { path = "../yazi-shared", version = "0.3.0" }
# External dependencies # External dependencies
ansi-to-tui = "=3.1.0" ansi-to-tui = { workspace = true }
anyhow = "1.0.86" anyhow = { workspace = true }
base64 = "0.22.1" base64 = { workspace = true }
crossterm = "0.27.0" crossterm = { workspace = true }
futures = "0.3.30" futures = { workspace = true }
globset = "0.4.14" globset = { workspace = true }
md-5 = "0.10.6" md-5 = { workspace = true }
mlua = { version = "0.9.9", features = [ "lua54", "serialize", "macros", "async" ] } mlua = { workspace = true }
parking_lot = "0.12.3" parking_lot = { workspace = true }
ratatui = "0.27.0" ratatui = { workspace = true }
shell-words = "1.1.0" shell-words = { workspace = true }
syntect = { version = "5.2.0", default-features = false, features = [ "parsing", "plist-load", "regex-onig" ] } syntect = { version = "5.2.0", default-features = false, features = [ "parsing", "plist-load", "regex-onig" ] }
tokio = { version = "1.39.2", features = [ "full" ] } tokio = { workspace = true }
tokio-stream = "0.1.15" tokio-stream = { workspace = true }
tokio-util = "0.7.11" tokio-util = { workspace = true }
unicode-width = "0.1.13" unicode-width = { workspace = true }
yazi-prebuild = "0.1.2" yazi-prebuild = "0.1.2"
# Logging # Logging
tracing = { version = "0.1.40", features = [ "max_level_debug", "release_max_level_warn" ] } tracing = { workspace = true }
[target."cfg(unix)".dependencies] [target."cfg(unix)".dependencies]
uzers = "0.12.0" uzers = "0.12.0"
@ -49,4 +49,4 @@ uzers = "0.12.0"
clipboard-win = "5.4.0" clipboard-win = "5.4.0"
[target.'cfg(target_os = "macos")'.dependencies] [target.'cfg(target_os = "macos")'.dependencies]
crossterm = { version = "0.27.0", features = [ "use-dev-tty" ] } crossterm = { workspace = true }

View file

@ -17,6 +17,6 @@ yazi-config = { path = "../yazi-config", version = "0.3.0" }
yazi-shared = { path = "../yazi-shared", version = "0.3.0" } yazi-shared = { path = "../yazi-shared", version = "0.3.0" }
# External dependencies # External dependencies
anyhow = "1.0.86" anyhow = { workspace = true }
mlua = { version = "0.9.9", features = [ "lua54" ] } mlua = { workspace = true }
tokio = { version = "1.39.2", features = [ "full" ] } tokio = { workspace = true }

View file

@ -16,18 +16,18 @@ yazi-proxy = { path = "../yazi-proxy", version = "0.3.0" }
yazi-shared = { path = "../yazi-shared", version = "0.3.0" } yazi-shared = { path = "../yazi-shared", version = "0.3.0" }
# External dependencies # External dependencies
anyhow = "1.0.86" anyhow = { workspace = true }
async-priority-channel = "0.2.0" async-priority-channel = "0.2.0"
futures = "0.3.30" futures = { workspace = true }
parking_lot = "0.12.3" parking_lot = { workspace = true }
scopeguard = "1.2.0" scopeguard = { workspace = true }
tokio = { version = "1.39.2", features = [ "full" ] } tokio = { workspace = true }
# Logging # Logging
tracing = { version = "0.1.40", features = [ "max_level_debug", "release_max_level_warn" ] } tracing = { workspace = true }
[target."cfg(unix)".dependencies] [target."cfg(unix)".dependencies]
libc = "0.2.155" libc = { workspace = true }
[target.'cfg(not(target_os = "android"))'.dependencies] [target.'cfg(not(target_os = "android"))'.dependencies]
trash = "5.0.0" trash = "5.0.0"

View file

@ -10,22 +10,22 @@ repository = "https://github.com/sxyazi/yazi"
rust-version = "1.78.0" rust-version = "1.78.0"
[dependencies] [dependencies]
anyhow = "1.0.86" anyhow = { workspace = true }
bitflags = "2.6.0" bitflags = { workspace = true }
crossterm = "0.27.0" crossterm = { workspace = true }
dirs = "5.0.1" dirs = { workspace = true }
futures = "0.3.30" futures = { workspace = true }
libc = "0.2.155" libc = { workspace = true }
parking_lot = "0.12.3" parking_lot = { workspace = true }
percent-encoding = "2.3.1" percent-encoding = "2.3.1"
ratatui = "0.27.0" ratatui = { workspace = true }
regex = "1.10.5" regex = { workspace = true }
serde = { version = "1.0.204", features = [ "derive" ] } serde = { workspace = true }
shell-words = "1.1.0" shell-words = { workspace = true }
tokio = { version = "1.39.2", features = [ "full" ] } tokio = { workspace = true }
[target.'cfg(windows)'.dependencies] [target.'cfg(windows)'.dependencies]
windows-sys = { version = "0.59.0", features = [ "Win32_Storage_FileSystem", "Win32_UI_Shell" ] } windows-sys = { version = "0.59.0", features = [ "Win32_Storage_FileSystem", "Win32_UI_Shell" ] }
[target.'cfg(target_os = "macos")'.dependencies] [target.'cfg(target_os = "macos")'.dependencies]
crossterm = { version = "0.27.0", features = [ "use-dev-tty" ] } crossterm = { workspace = true }