From 36f350c891e714b296319b4caec6fcd3d3f8193a Mon Sep 17 00:00:00 2001 From: Dandaedre Date: Fri, 23 Jan 2026 10:15:15 +0100 Subject: [PATCH] Makes workspace dependencies --- Cargo.toml | 24 ++++++++++++++++++++++++ crates/cli_parser/Cargo.toml | 6 +++--- crates/config/Cargo.toml | 6 +++--- crates/config/src/fast_tables.rs | 8 ++++---- crates/fast_class/Cargo.toml | 6 +++--- crates/graphs/Cargo.toml | 14 +++++++------- crates/make/Cargo.toml | 17 +++++++++-------- crates/ravenous-tools/Cargo.toml | 19 +++++++++---------- crates/stats/Cargo.toml | 10 +++++----- crates/tablegen/Cargo.toml | 20 ++++++++++---------- 10 files changed, 77 insertions(+), 53 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index b7db504..e788b33 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,3 +25,27 @@ lto = false codegen-units = 256 incremental = true panic = "abort" + +[workspace.dependencies] +config = {path = "./crates/config"} +tablegen = {path = "./crates/tablegen"} +graphs = {path = "./crates/graphs"} +cli_parser = {path = "./crates/cli_parser"} +stats = {path = "./crates/stats"} +make = {path = "./crates/make"} +fast_class = {path = "./crates/fast_class"} + +anyhow = "1.0.95" +toml = "0.8.20" +clap = { version = "4.5.28", features = ["derive"] } +phf = { version = "0.11.3", features = ["macros"] } +regex = "1.11.1" +regex_static = "0.1.1" +serde = { version = "1.0.217", features = ["derive", "alloc"] } +csv = "1.3.1" +ron = "0.8.1" +glob = "0.3.2" +tokio = "1.43.0" +dynfmt = { version = "0.1.5", features = ["curly"] } + + diff --git a/crates/cli_parser/Cargo.toml b/crates/cli_parser/Cargo.toml index 234e5b6..df625bb 100644 --- a/crates/cli_parser/Cargo.toml +++ b/crates/cli_parser/Cargo.toml @@ -4,6 +4,6 @@ version = "0.1.0" edition = "2024" [dependencies] -config = {path = "../config"} -clap = { version = "4.5.28", features = ["derive"] } -serde = { version = "1.0.217", features = ["derive", "alloc"] } +config = {workspace = true} +clap = {workspace = true} +serde = {workspace = true} diff --git a/crates/config/Cargo.toml b/crates/config/Cargo.toml index 5448a80..eb81d9a 100644 --- a/crates/config/Cargo.toml +++ b/crates/config/Cargo.toml @@ -4,6 +4,6 @@ version = "0.1.0" edition = "2024" [dependencies] -clap = { version = "4.5.28", features = ["derive"] } -phf = { version = "0.11.3", features = ["macros"] } -serde = { version = "1.0.217", features = ["derive"] } +clap = {workspace = true} +phf = {workspace = true} +serde = {workspace = true} diff --git a/crates/config/src/fast_tables.rs b/crates/config/src/fast_tables.rs index c9bdd86..ef45dd0 100644 --- a/crates/config/src/fast_tables.rs +++ b/crates/config/src/fast_tables.rs @@ -1,9 +1,9 @@ //! # `fast_table` Configuration //! //! This module defines the command‑line configuration used by the **fast‑tables** -//! tool. The struct `FastTableConfig` is a thin wrapper around the `clap` +//! tool. The struct `FastTableConfig` is a thin wrapper around the `clap` //! `Args` derive macro, which automatically turns the struct into a CLI -//! parser. All public fields are exposed to the user via command‑line flags +//! parser. All public fields are exposed to the user via command‑line flags //! (or environment variables) and are documented below. //! @@ -12,7 +12,7 @@ use clap::{Args, ValueEnum}; /// Configuration for the `fast‑tables` command. /// /// This struct is passed directly to `clap::Command::new` when creating the -/// CLI. Each field corresponds to a CLI flag; the attribute annotations +/// CLI. Each field corresponds to a CLI flag; the attribute annotations /// control how `clap` renders help text and parses values. /// #[derive(Args, Debug, Clone)] @@ -41,7 +41,7 @@ pub struct FastTableConfig { /// This enum implements `ValueEnum`, which gives it two important traits: /// * It can be used directly as a `clap` argument type. /// * It can be parsed from a string (`"classes"`, `"alchemy"`, etc.) in a -/// case‑insensitive manner. +/// case‑insensitive manner. #[derive(ValueEnum, Debug, Clone)] pub enum TableTargetType { /// Classes table diff --git a/crates/fast_class/Cargo.toml b/crates/fast_class/Cargo.toml index d3d840a..31deca6 100644 --- a/crates/fast_class/Cargo.toml +++ b/crates/fast_class/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" edition = "2024" [dependencies] -config = {path = "../config"} -cli_parser = {path = "../cli_parser"} -anyhow = "1.0.95" +config = {workspace = true} +cli_parser = {workspace = true} +anyhow = {workspace = true} facet = "0.42.0" diff --git a/crates/graphs/Cargo.toml b/crates/graphs/Cargo.toml index 2b24339..515bfb7 100644 --- a/crates/graphs/Cargo.toml +++ b/crates/graphs/Cargo.toml @@ -4,11 +4,11 @@ version = "0.1.0" edition = "2024" [dependencies] -config = {path = "../config"} -cli_parser = {path = "../cli_parser"} -anyhow = "1.0.95" +config = {workspace = true} +cli_parser = {workspace = true} +anyhow = {workspace = true} charts-rs = "0.3.19" -glob = "0.3.2" -serde = { version = "1.0.217", features = ["derive", "alloc"] } -csv = "1.3.1" -ron = "0.8.1" +serde = {workspace = true} +csv = {workspace = true} +ron = {workspace = true} +glob = {workspace = true} diff --git a/crates/make/Cargo.toml b/crates/make/Cargo.toml index 3d6aeb6..9273066 100644 --- a/crates/make/Cargo.toml +++ b/crates/make/Cargo.toml @@ -4,15 +4,16 @@ version = "0.1.0" edition = "2024" [dependencies] -config = {path = "../config"} -cli_parser = {path = "../cli_parser"} -dynfmt = { version = "0.1.5", features = ["curly"] } +config = {workspace = true} +cli_parser = {workspace = true} +anyhow = {workspace = true} +regex = {workspace = true} +serde = {workspace = true} +toml = {workspace = true} +tokio = {workspace = true} +dynfmt = {workspace = true} + indicatif = { version = "0.17.11", features = ["rayon"] } logos = "0.15.0" -tokio = "1.43.0" -anyhow = "1.0.95" indexmap = "2.7.1" -regex = "1.11.1" -serde = { version = "1.0.217", features = ["derive", "alloc"] } console = "0.15.10" -toml = "0.8.20" diff --git a/crates/ravenous-tools/Cargo.toml b/crates/ravenous-tools/Cargo.toml index 9f5d467..71069a1 100644 --- a/crates/ravenous-tools/Cargo.toml +++ b/crates/ravenous-tools/Cargo.toml @@ -5,18 +5,17 @@ version = "0.1.4" edition = "2024" [dependencies] -tablegen = {path = "../tablegen"} -graphs = {path = "../graphs"} -cli_parser = {path = "../cli_parser"} -# config = {path = "../config"} -stats = {path = "../stats"} -make = {path = "../make"} -fast_class = {path = "../fast_class"} +tablegen = {workspace = true} +graphs = {workspace = true} +cli_parser = {workspace = true} +stats = {workspace = true} +make = {workspace = true} +fast_class = {workspace = true} -anyhow = "1.0.95" -clap = { version = "4.5.28", features = ["derive"] } +anyhow = {workspace = true} +toml = {workspace = true} +clap = {workspace = true} tokio = { version = "1.43.0", features = ["full"] } -toml = "0.8.20" [package.metadata.cargo-machete] ignored = ["tokio"] diff --git a/crates/stats/Cargo.toml b/crates/stats/Cargo.toml index c4210ac..ce83b85 100644 --- a/crates/stats/Cargo.toml +++ b/crates/stats/Cargo.toml @@ -4,9 +4,9 @@ version = "0.1.0" edition = "2024" [dependencies] -config = {path = "../config"} -cli_parser = {path = "../cli_parser"} -anyhow = "1.0.95" -csv = "1.3.1" +config = {workspace = true} +cli_parser = {workspace = true} +anyhow = {workspace = true} +csv = {workspace = true} debug_print = "1.0.0" -serde = { version = "1.0.217", features = ["derive"] } +serde = {workspace = true} diff --git a/crates/tablegen/Cargo.toml b/crates/tablegen/Cargo.toml index 88ded94..3f5d5f3 100644 --- a/crates/tablegen/Cargo.toml +++ b/crates/tablegen/Cargo.toml @@ -4,13 +4,13 @@ version = "0.1.0" edition = "2024" [dependencies] -cli_parser = {path = "../cli_parser"} -config = {path = "../config"} -anyhow = "1.0.95" -csv = "1.3.1" -dynfmt = { version = "0.1.5", features = ["curly"] } -glob = "0.3.2" -phf = { version = "0.11.3", features = ["macros"] } -regex = "1.11.1" -regex_static = "0.1.1" -serde = { version = "1.0.217", features = ["derive", "alloc"] } +cli_parser = {workspace = true} +config = {workspace = true} +anyhow = {workspace = true} +csv = {workspace = true} +dynfmt = {workspace = true} +glob = {workspace = true} +phf = {workspace = true} +regex = {workspace = true} +regex_static = {workspace = true} +serde = {workspace = true}