From 0169b9b9e82ae338ebe6d8af6956ec3b6a3fcc9f Mon Sep 17 00:00:00 2001 From: klensy Date: Fri, 6 Dec 2024 14:01:20 +0300 Subject: [PATCH] fix: Remove some unused deps move some maplit to dev-deps remove few unused deps from typos remove some itertools deps remove phf_codegen from deps remove some unicase from deps --- Cargo.lock | 42 -------------------------------- crates/codespell-dict/Cargo.toml | 3 --- crates/dictgen/Cargo.toml | 3 +-- crates/misspell-dict/Cargo.toml | 3 --- crates/typos-cli/Cargo.toml | 2 +- crates/typos-dict/Cargo.toml | 1 - crates/typos-vars/Cargo.toml | 2 -- crates/typos/Cargo.toml | 4 --- crates/wikipedia-dict/Cargo.toml | 3 --- 9 files changed, 2 insertions(+), 61 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e6caf7f..c4313df 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -247,10 +247,8 @@ version = "0.4.3" dependencies = [ "codegenrs", "dictgen", - "itertools 0.13.0", "snapbox", "typos", - "unicase", ] [[package]] @@ -411,7 +409,6 @@ name = "dictgen" version = "0.2.9" dependencies = [ "phf", - "phf_codegen", "phf_shared", "unicase", ] @@ -784,10 +781,8 @@ version = "0.4.0" dependencies = [ "codegenrs", "dictgen", - "itertools 0.13.0", "regex", "snapbox", - "unicase", ] [[package]] @@ -842,16 +837,6 @@ dependencies = [ "phf_shared", ] -[[package]] -name = "phf_codegen" -version = "0.11.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e8d39688d359e6b34654d328e262234662d16cc0f60ec8dcbe5e718709342a5a" -dependencies = [ - "phf_generator", - "phf_shared", -] - [[package]] name = "phf_generator" version = "0.11.2" @@ -1221,26 +1206,6 @@ version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3369f5ac52d5eb6ab48c6b4ffdc8efbcad6b89c765749064ba298f2c68a16a76" -[[package]] -name = "thiserror" -version = "2.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f49a1853cf82743e3b7950f77e0f4d622ca36cf4317cba00c767838bac8d490" -dependencies = [ - "thiserror-impl", -] - -[[package]] -name = "thiserror-impl" -version = "2.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8381894bb3efe0c4acac3ded651301ceee58a15d47c2e34885ed1908ad667061" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - [[package]] name = "thread_local" version = "1.1.8" @@ -1313,15 +1278,11 @@ checksum = "6af6ae20167a9ece4bcb41af5b80f8a1f1df981f6391189ce00fd257af04126a" name = "typos" version = "0.10.29" dependencies = [ - "anyhow", "bstr", "itertools 0.13.0", - "once_cell", "serde", "simdutf8", "snapbox", - "thiserror", - "unicode-segmentation", "unicode-xid", "winnow", ] @@ -1397,7 +1358,6 @@ dependencies = [ "itertools 0.13.0", "snapbox", "typos", - "unicase", "varcon", "varcon-core", ] @@ -1543,9 +1503,7 @@ version = "0.4.0" dependencies = [ "codegenrs", "dictgen", - "itertools 0.13.0", "snapbox", - "unicase", ] [[package]] diff --git a/crates/codespell-dict/Cargo.toml b/crates/codespell-dict/Cargo.toml index 3840d58..a22a4de 100644 --- a/crates/codespell-dict/Cargo.toml +++ b/crates/codespell-dict/Cargo.toml @@ -17,12 +17,9 @@ all-features = true rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"] [dependencies] -unicase = "2.7" dictgen = { version = "^0.2", path = "../dictgen" } [dev-dependencies] -unicase = "2.7" -itertools = "0.13" codegenrs = "3.0" dictgen = { version = "^0.2", path = "../dictgen", features = ["codegen"] } snapbox = "0.6.5" diff --git a/crates/dictgen/Cargo.toml b/crates/dictgen/Cargo.toml index 209342f..519abf3 100644 --- a/crates/dictgen/Cargo.toml +++ b/crates/dictgen/Cargo.toml @@ -17,13 +17,12 @@ rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"] [features] default = ["std"] std = [] -codegen = ["std", "dep:phf_codegen"] +codegen = ["std"] map = ["dep:phf", "dep:phf_shared"] [dependencies] unicase = "2.7" phf = { version = "0.11", features = ["unicase"], optional = true } -phf_codegen = { version = "0.11", optional = true } phf_shared = { version = "0.11", optional = true } [lints] diff --git a/crates/misspell-dict/Cargo.toml b/crates/misspell-dict/Cargo.toml index 9593a7c..d97020b 100644 --- a/crates/misspell-dict/Cargo.toml +++ b/crates/misspell-dict/Cargo.toml @@ -15,12 +15,9 @@ include.workspace = true release = false [dependencies] -unicase = "2.7" dictgen = { version = "^0.2", path = "../dictgen" } [dev-dependencies] -unicase = "2.7" -itertools = "0.13" codegenrs = "3.0" regex = "1" dictgen = { version = "^0.2", path = "../dictgen", features = ["codegen"] } diff --git a/crates/typos-cli/Cargo.toml b/crates/typos-cli/Cargo.toml index 13b149d..9eaabe1 100644 --- a/crates/typos-cli/Cargo.toml +++ b/crates/typos-cli/Cargo.toml @@ -66,7 +66,6 @@ itertools = "0.13" serde_json = "1.0" kstring = { version = "2.0.0", features = ["serde"] } typed-arena = "2.0.2" -maplit = "1.0" unicode-width = "0.2.0" unic-emoji-char = "0.9.0" thread_local = "1.1.8" @@ -81,6 +80,7 @@ encoding_rs = "0.8.34" [dev-dependencies] assert_fs = "1.1" divan = "0.1.14" +maplit = "1.0" snapbox = "0.6.5" trycmd = "0.15.4" diff --git a/crates/typos-dict/Cargo.toml b/crates/typos-dict/Cargo.toml index 936dea7..750e017 100644 --- a/crates/typos-dict/Cargo.toml +++ b/crates/typos-dict/Cargo.toml @@ -16,7 +16,6 @@ all-features = true rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"] [dependencies] -unicase = "2.7" dictgen = { version = "^0.2", path = "../dictgen" } [dev-dependencies] diff --git a/crates/typos-vars/Cargo.toml b/crates/typos-vars/Cargo.toml index a5345be..a5bbf08 100644 --- a/crates/typos-vars/Cargo.toml +++ b/crates/typos-vars/Cargo.toml @@ -16,7 +16,6 @@ all-features = true rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"] [dependencies] -unicase = "2.7" dictgen = { version = "^0.2", path = "../dictgen" } varcon-core = { version = "^5.0", path = "../varcon-core", features = ["flags"] } @@ -24,7 +23,6 @@ varcon-core = { version = "^5.0", path = "../varcon-core", features = ["flags"] varcon = { version = "^1.0", path = "../varcon", features = ["flags"] } varcon-core = { version = "^5.0", path = "../varcon-core", features = ["flags"] } typos = { version = "^0.10", path = "../typos" } -unicase = "2.7" codegenrs = "3.0" itertools = "0.13" dictgen = { version = "^0.2", path = "../dictgen", features = ["codegen"] } diff --git a/crates/typos/Cargo.toml b/crates/typos/Cargo.toml index a653f09..49c47b9 100644 --- a/crates/typos/Cargo.toml +++ b/crates/typos/Cargo.toml @@ -16,15 +16,11 @@ all-features = true rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"] [dependencies] -anyhow = "1.0" -thiserror = "2.0" winnow = "0.6.7" unicode-xid = "0.2.4" -once_cell = "1.19.0" serde = { version = "1.0", features = ["derive"] } simdutf8 = "0.1.4" itertools = "0.13" -unicode-segmentation = "1.11.0" bstr = "1.9" [lints] diff --git a/crates/wikipedia-dict/Cargo.toml b/crates/wikipedia-dict/Cargo.toml index 53da9f7..5a700d4 100644 --- a/crates/wikipedia-dict/Cargo.toml +++ b/crates/wikipedia-dict/Cargo.toml @@ -16,12 +16,9 @@ include.workspace = true release = false [dependencies] -unicase = "2.7" dictgen = { version = "^0.2", path = "../dictgen" } [dev-dependencies] -unicase = "2.7" -itertools = "0.13" codegenrs = "3.0" dictgen = { version = "^0.2", path = "../dictgen", features = ["codegen"] } snapbox = "0.6.5"