From ba1ffce3ecccb6f37209cb040667995c2342150e Mon Sep 17 00:00:00 2001 From: Piotr Beling Date: Sun, 29 Sep 2024 21:57:11 +0200 Subject: [PATCH] minor dep. fixes --- bitm/Cargo.toml | 5 ++++- cseq/Cargo.toml | 2 +- dyn_size_of/src/lib.rs | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/bitm/Cargo.toml b/bitm/Cargo.toml index e7d58a0..76ad65e 100644 --- a/bitm/Cargo.toml +++ b/bitm/Cargo.toml @@ -13,13 +13,16 @@ categories = [ "algorithms", "data-structures", "science", "encoding" ] keywords = [ "bit", "bitmap", "rank", "bitvector", "bitset" ] [dependencies] -dyn_size_of = { version="0.4", path="../dyn_size_of" } +dyn_size_of = { version=">=0.4.3", path="../dyn_size_of" } aligned-vec = { version="0.6", optional=true } # for construcing cache-aligment bit vectors, which usually speeds up rank and select [dev-dependencies] criterion = "0.5" iai-callgrind = "0.10" +[features] +aligned-vec = ["dep:aligned-vec", "dyn_size_of/aligned-vec"] + [[bench]] name = "bitvec" diff --git a/cseq/Cargo.toml b/cseq/Cargo.toml index f715c3e..7508915 100644 --- a/cseq/Cargo.toml +++ b/cseq/Cargo.toml @@ -14,5 +14,5 @@ keywords = [ "compression", "sequence", "succinct", "elias-fano", "wavelet-matri [dependencies] bitm = { version="0.4", path="../bitm" } -dyn_size_of = { version="0.4", path="../dyn_size_of" } +dyn_size_of = { version=">=0.4.3", path="../dyn_size_of" } binout = { version="0.3", path="../binout" } \ No newline at end of file diff --git a/dyn_size_of/src/lib.rs b/dyn_size_of/src/lib.rs index b0fdebc..d57e807 100644 --- a/dyn_size_of/src/lib.rs +++ b/dyn_size_of/src/lib.rs @@ -105,7 +105,7 @@ impl GetSize for Box<[T]> { impl_getsize_methods_for_dyn_arr!(T); } -#[cfg(feature = "aligned-vec")] impl GetSize for aligned_vec::ABox<[T], A> { +#[cfg(feature = "aligned-vec")] impl GetSize for aligned_vec::ABox<[T], A> { impl_getsize_methods_for_dyn_arr!(T); } @@ -135,7 +135,7 @@ impl GetSize for Vec { impl_getsize_methods_for_vec!(T); } -#[cfg(feature = "aligned-vec")] impl GetSize for aligned_vec::AVec { +#[cfg(feature = "aligned-vec")] impl GetSize for aligned_vec::AVec { impl_getsize_methods_for_vec!(T); }