refactor: consolidate duplicated dependencies into workspace (#8041)

Signed-off-by: Rodolfo Olivieri <rolivier@redhat.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Rodolfo Olivieri
2026-03-23 15:08:48 -03:00
committed by GitHub
parent 997f27ef33
commit bcfbe89204
8 changed files with 81 additions and 200 deletions
+3 -3
View File
@@ -50,7 +50,7 @@ base64 = { workspace = true }
regex = { workspace = true }
tar = "0.4"
reqwest = { workspace = true, features = ["blocking", "rustls"], default-features = false }
zip = { version = "^8.0", default-features = false, features = ["deflate"] }
zip = { workspace = true }
bzip2 = "0.5"
webbrowser = { workspace = true }
indicatif = "0.18.1"
@@ -61,11 +61,11 @@ url = { workspace = true }
urlencoding = { workspace = true }
clap_complete = "4.5.62"
comfy-table = "7.2.2"
sha2 = "0.10"
sha2 = { workspace = true }
sigstore-verify = { version = "0.6", default-features = false, features = ["rustls"] }
[target.'cfg(target_os = "windows")'.dependencies]
winapi = { version = "0.3", features = ["wincred"] }
winapi = { workspace = true }
[features]
default = ["code-mode", "local-inference"]
+1 -1
View File
@@ -33,4 +33,4 @@ lopdf = "0.36.0"
docx-rs = "0.4.7"
image = { version = "0.24.9", features = ["jpeg"] }
umya-spreadsheet = "2.2.3"
shell-words = "1.1.1"
shell-words = { workspace = true }
+1 -1
View File
@@ -45,7 +45,7 @@ tokio-util = { workspace = true }
serde_path_to_error = "0.1.20"
tokio-tungstenite = { version = "0.28.0", features = ["rustls-tls-native-roots"] }
url = { workspace = true }
rand = "0.9.2"
rand = { workspace = true }
hex = "0.4.3"
subtle = "2.6"
socket2 = "0.6.1"
+1 -1
View File
@@ -8,7 +8,7 @@ repository.workspace = true
description.workspace = true
[dependencies]
axum = "0.7"
axum = { workspace = true }
env-lock = { workspace = true }
opentelemetry = { workspace = true }
rmcp = { workspace = true, features = ["server", "macros", "transport-streamable-http-server"] }
+4 -4
View File
@@ -56,7 +56,7 @@ chrono = { workspace = true }
clap = { workspace = true }
indoc = { workspace = true }
nanoid = "0.4"
sha2 = "0.10"
sha2 = { workspace = true }
base64 = { workspace = true }
url = { workspace = true }
axum = { workspace = true }
@@ -126,7 +126,7 @@ byteorder = { version = "1.5.0", optional = true }
tokenizers = { version = "0.21.0", default-features = false, features = ["onig"], optional = true }
symphonia = { version = "0.5", features = ["all"], optional = true }
rubato = { version = "0.16", optional = true }
zip = "0.6"
zip = { workspace = true }
sys-info = "0.9"
schemars = { workspace = true, features = [
@@ -153,10 +153,10 @@ pulldown-cmark = "0.13.0"
llama-cpp-2 = { version = "0.1.137", features = ["sampler"], optional = true }
encoding_rs = "0.8.35"
pastey = "0.2.1"
shell-words = "1.1.1"
shell-words = { workspace = true }
[target.'cfg(target_os = "windows")'.dependencies]
winapi = { version = "0.3", features = ["wincred"] }
winapi = { workspace = true }
# Platform-specific GPU acceleration for Whisper and local inference
[target.'cfg(target_os = "macos")'.dependencies]
+3 -2
View File
@@ -9,7 +9,7 @@ use std::fs;
use std::io::Cursor;
use std::io::Write;
use utoipa::ToSchema;
use zip::write::FileOptions;
use zip::write::SimpleFileOptions;
use zip::ZipWriter;
#[derive(Debug, Clone, Serialize, Deserialize, ToSchema)]
@@ -84,7 +84,8 @@ pub async fn generate_diagnostics(
let mut buffer = Vec::new();
{
let mut zip = ZipWriter::new(Cursor::new(&mut buffer));
let options = FileOptions::default().compression_method(zip::CompressionMethod::Deflated);
let options =
SimpleFileOptions::default().compression_method(zip::CompressionMethod::Deflated);
let mut log_files: Vec<_> = fs::read_dir(&logs_dir)?
.filter_map(|e| e.ok())