Skip to content

Commit

Permalink
minor dep. fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
beling committed Sep 29, 2024
1 parent fc4d759 commit ba1ffce
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion bitm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion cseq/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
4 changes: 2 additions & 2 deletions dyn_size_of/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ impl<T: GetSize> GetSize for Box<[T]> {
impl_getsize_methods_for_dyn_arr!(T);
}

#[cfg(feature = "aligned-vec")] impl <A: aligned_vec::Alignment, T: GetSize> GetSize for aligned_vec::ABox<[T], A> {
#[cfg(feature = "aligned-vec")] impl <T: GetSize, A: aligned_vec::Alignment> GetSize for aligned_vec::ABox<[T], A> {
impl_getsize_methods_for_dyn_arr!(T);
}

Expand Down Expand Up @@ -135,7 +135,7 @@ impl<T: GetSize> GetSize for Vec<T> {
impl_getsize_methods_for_vec!(T);
}

#[cfg(feature = "aligned-vec")] impl <A: aligned_vec::Alignment, T: GetSize> GetSize for aligned_vec::AVec<T, A> {
#[cfg(feature = "aligned-vec")] impl <T: GetSize, A: aligned_vec::Alignment> GetSize for aligned_vec::AVec<T, A> {
impl_getsize_methods_for_vec!(T);
}

Expand Down

0 comments on commit ba1ffce

Please sign in to comment.