refactor: remove unused dependencies and simplify logic
Remove obsolete dependencies across multiple crates to clean up the build graph and update `obikdump` to use `try_update`. Add dev-dependencies for tracing in `obiread` and clarify memoization logic in `obiksession`. - Remove `obifastwrite`, `tracing`, `obidebruinj`, `obikentropy`, `obipipeline`, `obidex`, and `obiskbuilder` from `Cargo.lock`. - Remove `obifastwrite` and `tracing` dependencies from `src/obidebruinj/Cargo.toml`. - Update `dump` function in `src/obikdump/src/dump.rs` to use `try_update` instead of `fetch_update` for updating remaining counts. - Remove `obitaxonomy`, `obidebruinj`, `obipipeline`, and `obikentropy` dependencies from `src/obikindex/Cargo.toml`. - Remove `obiksession` dependency from `src/obikmer/Cargo.toml`. - Remove `obiskbuilder` dependency from `src/obikphylo/Cargo.toml` and update `kodama` version to "0.3.0". - Remove `bytes` dependency from `src/obikrope/Cargo.toml` and set `criterion2` version to "3" with `cargo_bench_support`. - Add `tracing` and `tracing-subscriber` as dev-dependencies in `src/obiread/Cargo.toml`. - Remove `lazy_static` dependency from `src/obiskbuilder/Cargo.toml` and add `obikseq` as a test-utils dev-dependency. - Clarify `memo_key_from_debug` in `src/obiksession/src/memoize.rs` with comments explaining Debug-derived field usage.
This commit is contained in:
1 parent
cbc344e4b4
commit
24291a4484
10 files changed
+9
-23
No files matched your search
Generated
-10
@@ -1408,10 +1408,8 @@ version = "0.1.0"
|
|||||||
dependencies = [
|
dependencies = [
|
||||||
"crossbeam-channel",
|
"crossbeam-channel",
|
||||||
"hashbrown 0.17.1",
|
"hashbrown 0.17.1",
|
||||||
"obifastwrite",
|
|
||||||
"obikseq",
|
"obikseq",
|
||||||
"rayon",
|
"rayon",
|
||||||
"tracing",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
@@ -1492,14 +1490,10 @@ dependencies = [
|
|||||||
"ndarray",
|
"ndarray",
|
||||||
"niffler",
|
"niffler",
|
||||||
"obicompactvec",
|
"obicompactvec",
|
||||||
"obidebruinj",
|
|
||||||
"obikentropy",
|
|
||||||
"obikseq",
|
"obikseq",
|
||||||
"obipipeline",
|
|
||||||
"obiread",
|
"obiread",
|
||||||
"obiskio",
|
"obiskio",
|
||||||
"obisys",
|
"obisys",
|
||||||
"obitaxonomy",
|
|
||||||
"ptr_hash",
|
"ptr_hash",
|
||||||
"rayon",
|
"rayon",
|
||||||
"serde",
|
"serde",
|
||||||
@@ -1556,7 +1550,6 @@ dependencies = [
|
|||||||
"obikrope",
|
"obikrope",
|
||||||
"obikselect",
|
"obikselect",
|
||||||
"obikseq",
|
"obikseq",
|
||||||
"obiksession",
|
|
||||||
"obikstats",
|
"obikstats",
|
||||||
"obipipeline",
|
"obipipeline",
|
||||||
"obiread",
|
"obiread",
|
||||||
@@ -1600,7 +1593,6 @@ dependencies = [
|
|||||||
"obikseq",
|
"obikseq",
|
||||||
"obipipeline",
|
"obipipeline",
|
||||||
"obiread",
|
"obiread",
|
||||||
"obiskbuilder",
|
|
||||||
"obiskio",
|
"obiskio",
|
||||||
"obisys",
|
"obisys",
|
||||||
"petgraph",
|
"petgraph",
|
||||||
@@ -1646,7 +1638,6 @@ dependencies = [
|
|||||||
name = "obikrope"
|
name = "obikrope"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bytes",
|
|
||||||
"criterion2",
|
"criterion2",
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -1724,7 +1715,6 @@ name = "obiskbuilder"
|
|||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"criterion2",
|
"criterion2",
|
||||||
"lazy_static",
|
|
||||||
"obikentropy",
|
"obikentropy",
|
||||||
"obikrope",
|
"obikrope",
|
||||||
"obikseq",
|
"obikseq",
|
||||||
|
|||||||
@@ -5,11 +5,9 @@ edition = "2021"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
obikseq = { path = "../obikseq" }
|
obikseq = { path = "../obikseq" }
|
||||||
obifastwrite = { path = "../obifastwrite" }
|
|
||||||
hashbrown = { version = "0.17", features = ["rayon"] }
|
hashbrown = { version = "0.17", features = ["rayon"] }
|
||||||
rayon = "1"
|
rayon = "1"
|
||||||
crossbeam-channel = "0.5"
|
crossbeam-channel = "0.5"
|
||||||
tracing = "0.1"
|
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
test-utils = []
|
test-utils = []
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ impl IndexDump for Arc<KmerIndex> {
|
|||||||
if remaining.load(Ordering::Relaxed) == 0 { return Ok(vec![]); }
|
if remaining.load(Ordering::Relaxed) == 0 { return Ok(vec![]); }
|
||||||
let mut buf = Vec::<u8>::new();
|
let mut buf = Vec::<u8>::new();
|
||||||
let try_write = |buf: &mut Vec<u8>, row: &[u32], prefix: &str| -> bool {
|
let try_write = |buf: &mut Vec<u8>, row: &[u32], prefix: &str| -> bool {
|
||||||
match remaining.fetch_update(Ordering::SeqCst, Ordering::SeqCst, |cur| {
|
match remaining.try_update(Ordering::SeqCst, Ordering::SeqCst, |cur| {
|
||||||
if cur > 0 { Some(cur - 1) } else { None }
|
if cur > 0 { Some(cur - 1) } else { None }
|
||||||
}) {
|
}) {
|
||||||
Err(_) => false,
|
Err(_) => false,
|
||||||
|
|||||||
@@ -5,13 +5,9 @@ edition = "2024"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
obikseq = { path = "../obikseq" }
|
obikseq = { path = "../obikseq" }
|
||||||
obitaxonomy = { path = "../obitaxonomy" }
|
|
||||||
obiskio = { path = "../obiskio" }
|
obiskio = { path = "../obiskio" }
|
||||||
obisys = { path = "../obisys", default-features = false }
|
obisys = { path = "../obisys", default-features = false }
|
||||||
obicompactvec = { path = "../obicompactvec" }
|
obicompactvec = { path = "../obicompactvec" }
|
||||||
obidebruinj = { path = "../obidebruinj" }
|
|
||||||
obipipeline = { path = "../obipipeline" }
|
|
||||||
obikentropy = { path = "../obikentropy" }
|
|
||||||
cacheline-ef = "2.0"
|
cacheline-ef = "2.0"
|
||||||
epserde = "0.13"
|
epserde = "0.13"
|
||||||
ptr_hash = { version = "2.1", features = ["epserde"] }
|
ptr_hash = { version = "2.1", features = ["epserde"] }
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ obikstats = { path = "../obikstats" }
|
|||||||
obikquery = { path = "../obikquery" }
|
obikquery = { path = "../obikquery" }
|
||||||
obikidxcache = { path = "../obikidxcache" }
|
obikidxcache = { path = "../obikidxcache" }
|
||||||
obikphylo = { path = "../obikphylo" }
|
obikphylo = { path = "../obikphylo" }
|
||||||
obiksession = { path = "../obiksession" }
|
|
||||||
obikrope = { path = "../obikrope" }
|
obikrope = { path = "../obikrope" }
|
||||||
obifastwrite = { path = "../obifastwrite" }
|
obifastwrite = { path = "../obifastwrite" }
|
||||||
obiskbuilder = { path = "../obiskbuilder" }
|
obiskbuilder = { path = "../obiskbuilder" }
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ obiskio = { path = "../obiskio" }
|
|||||||
obisys = { path = "../obisys", default-features = false }
|
obisys = { path = "../obisys", default-features = false }
|
||||||
obicompactvec = { path = "../obicompactvec" }
|
obicompactvec = { path = "../obicompactvec" }
|
||||||
obikidxcache = { path = "../obikidxcache" }
|
obikidxcache = { path = "../obikidxcache" }
|
||||||
obiskbuilder = { path = "../obiskbuilder" }
|
|
||||||
obipipeline = { path = "../obipipeline" }
|
obipipeline = { path = "../obipipeline" }
|
||||||
kodama = "0.3.0"
|
kodama = "0.3.0"
|
||||||
memmap2 = "0.9"
|
memmap2 = "0.9"
|
||||||
|
|||||||
@@ -7,4 +7,3 @@ edition = "2024"
|
|||||||
criterion2 = { version = "3", features = ["cargo_bench_support"] }
|
criterion2 = { version = "3", features = ["cargo_bench_support"] }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bytes = "1.11.1"
|
|
||||||
@@ -342,6 +342,9 @@ mod tests {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn memo_key_from_debug() {
|
fn memo_key_from_debug() {
|
||||||
|
// Fields are only read through `Debug`, which is what the memo key
|
||||||
|
// is derived from — and what dead-code analysis ignores.
|
||||||
|
#[allow(dead_code)]
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
struct Args {
|
struct Args {
|
||||||
x: u64,
|
x: u64,
|
||||||
|
|||||||
@@ -13,7 +13,10 @@ niffler = { version = "3", default-features = false, features = ["gz", "bz2",
|
|||||||
bzip2 = "0.6"
|
bzip2 = "0.6"
|
||||||
liblzma = { version = "0.4", features = ["static"] }
|
liblzma = { version = "0.4", features = ["static"] }
|
||||||
ureq = "3"
|
ureq = "3"
|
||||||
tracing = "0.1.44"
|
|
||||||
tracing-subscriber = { version = "0.3.23", features = ["fmt", "env-filter"] }
|
|
||||||
infer = "0.22.0"
|
infer = "0.22.0"
|
||||||
regex = "1"
|
regex = "1"
|
||||||
|
|
||||||
|
[dev-dependencies]
|
||||||
|
# Used by examples/expand_path.rs only.
|
||||||
|
tracing = "0.1.44"
|
||||||
|
tracing-subscriber = { version = "0.3.23", features = ["fmt", "env-filter"] }
|
||||||
@@ -8,7 +8,6 @@ obikseq = { path = "../obikseq" }
|
|||||||
obikrope = { path = "../obikrope" }
|
obikrope = { path = "../obikrope" }
|
||||||
obiread = { path = "../obiread" }
|
obiread = { path = "../obiread" }
|
||||||
obikentropy = { path = "../obikentropy" }
|
obikentropy = { path = "../obikentropy" }
|
||||||
lazy_static = "1.5.0"
|
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
obikseq = { path = "../obikseq", features = ["test-utils"] }
|
obikseq = { path = "../obikseq", features = ["test-utils"] }
|
||||||
|
|||||||
Reference in new issue
Block a user