From fd1337d579f0b9eded141c0d5d5ded13c87d1afd Mon Sep 17 00:00:00 2001 From: Jiangzhou He Date: Sun, 9 Nov 2025 12:18:38 -0800 Subject: [PATCH] cleanup: simplify `Cargo.toml` files --- Cargo.toml | 31 --------------------- rust/cocoindex/Cargo.toml | 57 ++++++++++++++++++++------------------- rust/utils/Cargo.toml | 19 ------------- 3 files changed, 29 insertions(+), 78 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index a758ba33..329604f1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -65,37 +65,6 @@ reqwest = { version = "0.12.23", default-features = false, features = [ ] } async-openai = "0.29.0" -tree-sitter = "0.25.8" -tree-sitter-language = "0.1.5" -# Per language tree-sitter parsers -tree-sitter-c = "0.24.1" -tree-sitter-cpp = "0.23.4" -tree-sitter-c-sharp = "0.23.1" -tree-sitter-css = "0.23.2" -tree-sitter-fortran = "0.5.1" -tree-sitter-go = "0.23.4" -tree-sitter-html = "0.23.2" -tree-sitter-java = "0.23.5" -tree-sitter-javascript = "0.23.1" -tree-sitter-json = "0.24.8" -# The other more popular crate tree-sitter-kotlin requires tree-sitter < 0.23 for now -tree-sitter-kotlin-ng = "1.1.0" -tree-sitter-md = "0.5.1" -tree-sitter-pascal = "0.10.0" -tree-sitter-php = "0.23.11" -tree-sitter-python = "0.23.6" -tree-sitter-r = "1.2.0" -tree-sitter-ruby = "0.23.1" -tree-sitter-rust = "0.24.0" -tree-sitter-scala = "0.24.0" -tree-sitter-sequel = "0.3.8" -tree-sitter-swift = "0.7.1" -tree-sitter-toml-ng = "0.7.0" -tree-sitter-typescript = "0.23.2" -tree-sitter-xml = "0.7.0" -tree-sitter-yaml = "0.7.1" -tree-sitter-solidity = "1.2.13" - globset = "0.4.16" unicase = "2.8.1" google-drive3 = "6.0.0" diff --git a/rust/cocoindex/Cargo.toml b/rust/cocoindex/Cargo.toml index 326eb75f..97295a35 100644 --- a/rust/cocoindex/Cargo.toml +++ b/rust/cocoindex/Cargo.toml @@ -51,36 +51,37 @@ env_logger = { workspace = true } reqwest = { workspace = true } async-openai = { workspace = true } -tree-sitter = { workspace = true } -tree-sitter-language = { workspace = true } +tree-sitter = "0.25.8" +tree-sitter-language = "0.1.5" # Per language tree-sitter parsers -tree-sitter-c = { workspace = true } -tree-sitter-cpp = { workspace = true } -tree-sitter-c-sharp = { workspace = true } -tree-sitter-css = { workspace = true } -tree-sitter-fortran = { workspace = true } -tree-sitter-go = { workspace = true } -tree-sitter-html = { workspace = true } -tree-sitter-java = { workspace = true } -tree-sitter-javascript = { workspace = true } -tree-sitter-json = { workspace = true } +tree-sitter-c = "0.24.1" +tree-sitter-cpp = "0.23.4" +tree-sitter-c-sharp = "0.23.1" +tree-sitter-css = "0.23.2" +tree-sitter-fortran = "0.5.1" +tree-sitter-go = "0.23.4" +tree-sitter-html = "0.23.2" +tree-sitter-java = "0.23.5" +tree-sitter-javascript = "0.23.1" +tree-sitter-json = "0.24.8" # The other more popular crate tree-sitter-kotlin requires tree-sitter < 0.23 for now -tree-sitter-kotlin-ng = { workspace = true } -tree-sitter-md = { workspace = true } -tree-sitter-pascal = { workspace = true } -tree-sitter-php = { workspace = true } -tree-sitter-python = { workspace = true } -tree-sitter-r = { workspace = true } -tree-sitter-ruby = { workspace = true } -tree-sitter-rust = { workspace = true } -tree-sitter-scala = { workspace = true } -tree-sitter-sequel = { workspace = true } -tree-sitter-swift = { workspace = true } -tree-sitter-toml-ng = { workspace = true } -tree-sitter-typescript = { workspace = true } -tree-sitter-xml = { workspace = true } -tree-sitter-yaml = { workspace = true } -tree-sitter-solidity = { workspace = true } +tree-sitter-kotlin-ng = "1.1.0" +tree-sitter-md = "0.5.1" +tree-sitter-pascal = "0.10.0" +tree-sitter-php = "0.23.11" +tree-sitter-python = "0.23.6" +tree-sitter-r = "1.2.0" +tree-sitter-ruby = "0.23.1" +tree-sitter-rust = "0.24.0" +tree-sitter-scala = "0.24.0" +tree-sitter-sequel = "0.3.8" +tree-sitter-swift = "0.7.1" +tree-sitter-toml-ng = "0.7.0" +tree-sitter-typescript = "0.23.2" +tree-sitter-xml = "0.7.0" +tree-sitter-yaml = "0.7.1" +tree-sitter-solidity = "1.2.13" + globset = { workspace = true } unicase = { workspace = true } diff --git a/rust/utils/Cargo.toml b/rust/utils/Cargo.toml index a9f38df3..9f081a4e 100644 --- a/rust/utils/Cargo.toml +++ b/rust/utils/Cargo.toml @@ -6,46 +6,27 @@ rust-version = { workspace = true } license = { workspace = true } [dependencies] -# Core dependencies anyhow = { workspace = true } async-trait = { workspace = true } log = { workspace = true } - -# Web framework axum = { workspace = true } - -# Serialization serde = { workspace = true } serde_json = { workspace = true } base64 = { workspace = true } - -# Async runtime tokio = { workspace = true } tokio-util = { workspace = true } futures = { workspace = true } - -# Hashing blake2 = { workspace = true } - -# HTTP client and related reqwest = { workspace = true } async-openai = { workspace = true } neo4rs = { workspace = true } - -# Database sqlx = { workspace = true } - -# Text encoding encoding_rs = { workspace = true } - -# Utilities regex = { workspace = true } itertools = { workspace = true } indexmap = { workspace = true } hex = { workspace = true } serde_path_to_error = { workspace = true } rand = { workspace = true } - -# YAML serialization yaml-rust2 = { workspace = true } indenter = { workspace = true }