From c71b10b56f19e1b2c34c30c0933eacc2b156016a Mon Sep 17 00:00:00 2001 From: ivan-aksamentov Date: Mon, 23 Dec 2024 04:50:22 +0100 Subject: [PATCH] chore: remove unused deps --- Cargo.lock | 90 +------------------------------- packages/minimap2/Cargo.toml | 6 --- packages/pangraph-cli/Cargo.toml | 10 ---- packages/pangraph/Cargo.toml | 12 +---- 4 files changed, 3 insertions(+), 115 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 87e28c85..81a5e60c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -23,17 +23,6 @@ version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "512761e0bb2578dd7380c6baaa0f4ce03e84f95e960231d1dec8bf4d7d6e2627" -[[package]] -name = "ahash" -version = "0.7.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "891477e0c6a8957309ee5c45a6368af3ae14bb510732d2684ffa19af310920f9" -dependencies = [ - "getrandom", - "once_cell", - "version_check", -] - [[package]] name = "aho-corasick" version = "1.1.3" @@ -1018,15 +1007,6 @@ version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" -[[package]] -name = "hashbrown" -version = "0.12.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" -dependencies = [ - "ahash", -] - [[package]] name = "hashbrown" version = "0.14.5" @@ -1108,7 +1088,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "68b900aa2f7301e21c36462b170ee99994de34dff39a4a6a528e80e7376d07e5" dependencies = [ "equivalent", - "hashbrown 0.14.5", + "hashbrown", ] [[package]] @@ -1311,15 +1291,6 @@ version = "0.4.22" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24" -[[package]] -name = "lru" -version = "0.7.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e999beba7b6e8345721bd280141ed958096a2e4abdf74f67ff4ce49b4b54e47a" -dependencies = [ - "hashbrown 0.12.3", -] - [[package]] name = "lzma-sys" version = "0.1.20" @@ -1353,29 +1324,6 @@ version = "2.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" -[[package]] -name = "memoize" -version = "0.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5df4051db13d0816cf23196d3baa216385ae099339f5d0645a8d9ff2305e82b8" -dependencies = [ - "lazy_static", - "lru", - "memoize-inner", -] - -[[package]] -name = "memoize-inner" -version = "0.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "27bdece7e91f0d1e33df7b46ec187a93ea0d4e642113a1039ac8bfdd4a3273ac" -dependencies = [ - "lazy_static", - "proc-macro2", - "quote", - "syn 1.0.109", -] - [[package]] name = "minimal-lexical" version = "0.2.1" @@ -1478,17 +1426,6 @@ dependencies = [ "serde", ] -[[package]] -name = "ndarray-rand" -version = "0.15.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f093b3db6fd194718dcdeea6bd8c829417deae904e3fcc7732dabcd4416d25d8" -dependencies = [ - "ndarray", - "rand", - "rand_distr", -] - [[package]] name = "ndarray-stats" version = "0.6.0" @@ -1722,7 +1659,6 @@ dependencies = [ "atty", "auto_ops", "bio", - "bio-types", "bzip2", "chrono", "clap", @@ -1744,14 +1680,11 @@ dependencies = [ "lazy_static", "log", "maplit", - "memoize", "minimap2", "ndarray", - "ndarray-rand", "ndarray-stats", "noodles", "num", - "num-integer", "num-traits", "num_cpus", "ordered-float", @@ -1759,12 +1692,10 @@ dependencies = [ "pretty_assertions", "pretty_dtoa", "rand", - "rand_distr", "rand_isaac", "rayon", "regex", "rstest", - "rstest_reuse", "schemars", "serde", "serde-aux", @@ -1784,16 +1715,9 @@ dependencies = [ name = "pangraph-cli" version = "1.0.0" dependencies = [ - "color-eyre", "ctor", "eyre", - "log", "pangraph", - "pretty_assertions", - "rayon", - "rstest", - "rstest_reuse", - "schemars", ] [[package]] @@ -2032,7 +1956,6 @@ checksum = "32cb0b9bc82b0a0876c2dd994a7e7a2683d3e7390ca40e6886785ef0c7e3ee31" dependencies = [ "num-traits", "rand", - "serde", ] [[package]] @@ -2165,17 +2088,6 @@ dependencies = [ "unicode-ident", ] -[[package]] -name = "rstest_reuse" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3a8fb4672e840a587a66fc577a5491375df51ddb88f2a2c2a792598c326fe14" -dependencies = [ - "quote", - "rand", - "syn 2.0.77", -] - [[package]] name = "rustc-demangle" version = "0.1.24" diff --git a/packages/minimap2/Cargo.toml b/packages/minimap2/Cargo.toml index 0c15bdad..cfaf3282 100644 --- a/packages/minimap2/Cargo.toml +++ b/packages/minimap2/Cargo.toml @@ -24,12 +24,6 @@ minimap2-sys = { workspace = true } ordered-float = { workspace = true } serde = { workspace = true, optional = true } -#[target.'cfg(not(target_arch = "wasm32"))'.dependencies] -#atty = { workspace = true } -#bzip2 = { workspace = true } -#xz2 = { workspace = true } -#zstd = { workspace = true } - [dev-dependencies] [features] diff --git a/packages/pangraph-cli/Cargo.toml b/packages/pangraph-cli/Cargo.toml index d27d12d0..ec51954a 100644 --- a/packages/pangraph-cli/Cargo.toml +++ b/packages/pangraph-cli/Cargo.toml @@ -20,20 +20,10 @@ workspace = true crate-type = ["lib"] [dependencies] -color-eyre = { workspace = true } ctor = { workspace = true } eyre = { workspace = true } -log = { workspace = true } pangraph = { path = "../pangraph" } -rayon = { workspace = true } -schemars = { workspace = true } - -[dev-dependencies] -pretty_assertions = { workspace = true } -rstest = { workspace = true } -rstest_reuse = { workspace = true } [build-dependencies] eyre = { workspace = true } pangraph = { path = "../pangraph" } -schemars = { workspace = true } diff --git a/packages/pangraph/Cargo.toml b/packages/pangraph/Cargo.toml index c8c43050..0082d824 100644 --- a/packages/pangraph/Cargo.toml +++ b/packages/pangraph/Cargo.toml @@ -19,9 +19,10 @@ crate-type = ["lib"] [dependencies] approx = { workspace = true } +atty = { workspace = true } auto_ops = { workspace = true } bio = { workspace = true } -bio-types = { workspace = true } +bzip2 = { workspace = true } chrono = { workspace = true } clap = { workspace = true } clap-markdown = { workspace = true } @@ -42,14 +43,11 @@ itertools = { workspace = true } lazy_static = { workspace = true } log = { workspace = true } maplit = { workspace = true } -memoize = { workspace = true } minimap2 = { workspace = true } ndarray = { workspace = true } -ndarray-rand = { workspace = true } ndarray-stats = { workspace = true } noodles = { workspace = true } num = { workspace = true } -num-integer = { workspace = true } num-traits = { workspace = true } num_cpus = { workspace = true } ordered-float = { workspace = true } @@ -57,7 +55,6 @@ parking_lot = { workspace = true } pretty_assertions = { workspace = true } pretty_dtoa = { workspace = true } rand = { workspace = true } -rand_distr = { workspace = true } rand_isaac = { workspace = true } rayon = { workspace = true } regex = { workspace = true } @@ -72,14 +69,9 @@ strum = { workspace = true } strum_macros = { workspace = true } tempfile = { workspace = true } twox-hash = { workspace = true } - -[target.'cfg(not(target_arch = "wasm32"))'.dependencies] -atty = { workspace = true } -bzip2 = { workspace = true } xz2 = { workspace = true } zstd = { workspace = true } [dev-dependencies] pretty_assertions = { workspace = true } rstest = { workspace = true } -rstest_reuse = { workspace = true }