commit_hash stringlengths 40 40 | author stringlengths 1 57 | date timestamp[s]date 2010-07-26 04:45:09 2026-04-14 18:21:10 | message stringlengths 8 1.39M | diff stringlengths 68 51.2k | files_changed int64 1 136 | insertions int64 0 2.35k | deletions int64 0 1.9k |
|---|---|---|---|---|---|---|---|
b963e90c08af43952133689b61f942667d2aff34 | Wim Looman | 2015-04-29T12:47:56 | Fix all the tests
Finally.... | diff --git a/src/container.rs b/src/container.rs
index c14a3a24..0bb1f357 100644
--- a/src/container.rs
+++ b/src/container.rs
@@ -1,14 +1,14 @@
use std::fmt::{ Debug, Formatter, Result };
-use num::traits::{ One, Bounded };
+use num::traits::{ One };
-use util::ExtInt;
+use util::{ self, ExtInt };
use store::Sto... | 6 | 76 | 44 |
e44ee81724101a6a89ff590913f00504d2d5f470 | Wim Looman | 2015-04-29T11:14:30 | Add tests & fixes for Halveable | diff --git a/src/util.rs b/src/util.rs
index 1aa178e0..6c29fff1 100644
--- a/src/util.rs
+++ b/src/util.rs
@@ -1,6 +1,5 @@
#![allow(missing_docs)]
-use std::mem::size_of;
use std::num::ParseIntError;
use num::traits::{ PrimInt, Num };
@@ -25,20 +24,20 @@ pub trait ExtInt:
impl Halveable for u64 {
type Half... | 1 | 83 | 7 |
3e41e8b56b4956c21c36618dca4e63f014c18d86 | Wim Looman | 2015-04-29T10:33:52 | Fix compilation on latest nightly/betas
Seems you're no longer allowed to use `Self` in a trait implementations
generic types ¯\_(ツ)_/¯ | diff --git a/src/lib.rs b/src/lib.rs
index 78a5d525..3e177686 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -514,7 +514,7 @@ impl<'a, Size: ExtInt + Halveable + 'a> Extend<&'a Size> for RoaringBitmap<Size>
}
}
-impl<Size: ExtInt + Halveable> BitOr<Self> for RoaringBitmap<Size> {
+impl<Size: ExtInt + Halveable> Bi... | 1 | 8 | 8 |
c5daef399fc46b85ac5a3e84fbc4a122462cca0e | Wim Looman | 2015-04-12T06:46:49 | Fix build errors on rust beta
Required switching to rust-lang/num crate for integer generics
Also changing all u8::BITS etc. to use size_of
Updating some casts
And replacing advanced slicing match syntax with first/last method calls | diff --git a/Cargo.toml b/Cargo.toml
index 70579612..59ac41eb 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -13,3 +13,6 @@ readme = "README.md"
keywords = ["roaring", "data-structure", "bitmap"]
license = "MIT"
+
+[dependencies]
+num = "*"
diff --git a/src/container.rs b/src/container.rs
index ea414683..c14a3a24 1006... | 6 | 60 | 54 |
4205d602b9b5ef77aaa1d9eaa7fb8699c3b55683 | ray glover | 2015-03-27T17:08:42 | fixes for rustc nightly | diff --git a/benches/lib.rs b/benches/lib.rs
index 0ef15dbb..5632c203 100644
--- a/benches/lib.rs
+++ b/benches/lib.rs
@@ -1,4 +1,4 @@
-#![feature(slicing_syntax)]
+#![feature(test)]
extern crate test;
extern crate roaring;
diff --git a/src/imp.rs b/src/imp.rs
index 78799a48..30212c31 100644
--- a/src/imp.rs
+++ b/... | 14 | 5 | 27 |
760283194811e3a0135c2a0534ac4c6aef7a692a | Wim Looman | 2015-03-06T07:48:15 | Add required casts | diff --git a/src/store.rs b/src/store.rs
index 704afc07..2756af66 100644
--- a/src/store.rs
+++ b/src/store.rs
@@ -121,7 +121,7 @@ impl<Size: ExtInt> Store<Size> {
for (key, val) in bits.iter().map(|v| *v).enumerate().filter(|&(_, v)| v != 0) {
for bit in 0..(u64::BITS) {
... | 1 | 4 | 4 |
b8d322d4ac0610cc66157c9caceb9de4ae8b6a9b | Wim Looman | 2015-02-22T06:11:21 | Bump version | diff --git a/Cargo.toml b/Cargo.toml
index c9e2e2ec..70579612 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "roaring"
-version = "0.2.1"
+version = "0.2.2"
authors = ["Wim Looman <ghostunderscore@gmail.com>"]
description = "http://roaringbitmap.org for http://www.rust-lang.org" | 1 | 1 | 1 |
f5c7301611abbefe639960514ea552b8da9db381 | Wim Looman | 2015-02-22T06:09:18 | Add IntoIterator implementation | diff --git a/src/lib.rs b/src/lib.rs
index 2f89b932..efac016b 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -479,6 +479,15 @@ impl<Size: ExtInt + Halveable> RoaringBitmap<Size> {
}
}
+impl<Size: ExtInt + Halveable> IntoIterator for RoaringBitmap<Size> {
+ type Item = Size;
+ type IntoIter = <Vec<Size> as In... | 1 | 9 | 0 |
2b90eb5349172a7ce2ff80d19b51e5583f185aca | Wim Looman | 2015-02-22T05:56:50 | Bump version | diff --git a/Cargo.toml b/Cargo.toml
index 23f3ef20..c9e2e2ec 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "roaring"
-version = "0.2.0"
+version = "0.2.1"
authors = ["Wim Looman <ghostunderscore@gmail.com>"]
description = "http://roaringbitmap.org for http://www.rust-lang.org" | 1 | 1 | 1 |
d07fba3e834a1eaa4648a9ca4d74029c45a0c8e1 | Wim Looman | 2015-02-22T05:56:16 | Fix warnings | diff --git a/src/imp.rs b/src/imp.rs
index fdc2c698..78799a48 100644
--- a/src/imp.rs
+++ b/src/imp.rs
@@ -1,5 +1,3 @@
-use std::cmp::Ordering;
-use std::cmp::Ordering::{ Equal, Less, Greater };
use std::iter::{ IntoIterator };
use std::num::Int;
use std::slice;
@@ -193,28 +191,28 @@ pub fn from_iter_ref<'a, Size: E... | 5 | 17 | 22 |
2622567e97e0fc94b0ab0154b0f753b90d065e5b | Wim Looman | 2015-02-22T05:46:36 | Update for FromIterator/Extend traits using IntoIterator | diff --git a/src/imp.rs b/src/imp.rs
index 4bf3518c..fdc2c698 100644
--- a/src/imp.rs
+++ b/src/imp.rs
@@ -1,5 +1,6 @@
use std::cmp::Ordering;
use std::cmp::Ordering::{ Equal, Less, Greater };
+use std::iter::{ IntoIterator };
use std::num::Int;
use std::slice;
@@ -178,28 +179,28 @@ pub fn symmetric_difference_wi... | 2 | 10 | 9 |
f6cbbaafbaa85266a3fa90eb8ba5bb0489ffb359 | Wim Looman | 2015-02-22T05:38:24 | Add PhantomData marker for Size | diff --git a/src/store.rs b/src/store.rs
index 53f7e1cd..37633256 100644
--- a/src/store.rs
+++ b/src/store.rs
@@ -1,5 +1,6 @@
use std::{ u64 };
use std::iter;
+use std::marker::PhantomData;
use std::num::{ self, Int };
use std::cmp::Ordering::{ Equal, Less, Greater };
@@ -362,6 +363,7 @@ struct BitmapIter<'a, Si... | 1 | 3 | 0 |
56411779ad493de646589421bb4b68196092b928 | Wim Looman | 2015-02-22T05:30:04 | Single line some code | diff --git a/src/util.rs b/src/util.rs
index efd2d018..0ea12ad0 100644
--- a/src/util.rs
+++ b/src/util.rs
@@ -1,14 +1,11 @@
use std::{ u8, u16, u32 };
use std::num::Int;
-pub enum Either<Left, Right> {
- Left(Left),
- Right(Right),
-}
-
+pub enum Either<Left, Right> { Left(Left), Right(Right) }
pub trait ... | 1 | 11 | 23 |
d566056c5315c454303c9e63fef99f455be0f996 | Wim Looman | 2015-02-07T20:50:10 | Fix use after move | diff --git a/src/imp.rs b/src/imp.rs
index 8a9253f6..4bf3518c 100644
--- a/src/imp.rs
+++ b/src/imp.rs
@@ -228,11 +228,12 @@ struct Pairs<'a, Size: ExtInt + Halveable + 'a> where <Size as Halveable>::HalfS
impl<'a, Size: ExtInt + Halveable> Pairs<'a, Size> {
fn new(mut iter1: slice::Iter<'a, Container<<Size as ... | 1 | 3 | 2 |
95c261741239311de379812d957bfcd4cadcbe4c | Wim Looman | 2015-01-28T08:14:44 | Minor version bump for generics | diff --git a/Cargo.toml b/Cargo.toml
index 2ec24cab..23f3ef20 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "roaring"
-version = "0.1.0"
+version = "0.2.0"
authors = ["Wim Looman <ghostunderscore@gmail.com>"]
description = "http://roaringbitmap.org for http://www.rust-lang.org" | 1 | 1 | 1 |
bbb93ecd837d5f1a85631e176eacd819ca29065a | Wim Looman | 2015-01-28T08:09:56 | Make benchmarks work | diff --git a/benches/lib.rs b/benches/lib.rs
index 9b872788..0ef15dbb 100644
--- a/benches/lib.rs
+++ b/benches/lib.rs
@@ -11,7 +11,7 @@ use roaring::RoaringBitmap;
#[bench]
fn create(b: &mut Bencher) {
b.iter(|| {
- let mut bitmap = RoaringBitmap::new();
+ let mut bitmap: RoaringBitmap<u32> = Roar... | 1 | 3 | 3 |
c89b75de3f5bbcedcaf152b18327966dd70f54b9 | Wim Looman | 2015-01-28T07:41:22 | Show -> Debug | diff --git a/src/container.rs b/src/container.rs
index 9dfd07c4..a0565f13 100644
--- a/src/container.rs
+++ b/src/container.rs
@@ -1,5 +1,5 @@
use std::num::Int;
-use std::fmt::{ Show, Formatter, Result };
+use std::fmt::{ Debug, Formatter, Result };
use store::Store::{ self, Array, Bitmap };
@@ -126,7 +126,7 @@ ... | 2 | 4 | 4 |
005217315543c1b4f6642b35d156547f36144094 | Wim Looman | 2015-01-26T04:50:58 | Add basic benchmarks | diff --git a/benches/lib.rs b/benches/lib.rs
new file mode 100644
index 00000000..9b872788
--- /dev/null
+++ b/benches/lib.rs
@@ -0,0 +1,37 @@
+#![feature(slicing_syntax)]
+
+extern crate test;
+extern crate roaring;
+
+use std::{ u32 };
+use test::Bencher;
+
+use roaring::RoaringBitmap;
+
+#[bench]
+fn create(b: &mut ... | 1 | 37 | 0 |
0672e573e24196a28e6238ca7e69468dfc44cc9a | Wim Looman | 2015-01-13T05:04:34 | use mod::self | diff --git a/src/container.rs b/src/container.rs
index d6bbbb65..9dfd07c4 100644
--- a/src/container.rs
+++ b/src/container.rs
@@ -1,8 +1,7 @@
use std::num::Int;
use std::fmt::{ Show, Formatter, Result };
-use store::Store;
-use store::Store::{ Array, Bitmap };
+use store::Store::{ self, Array, Bitmap };
#[deriv... | 4 | 4 | 8 |
b4842e6846f1069aa050ac7c37484e82d7586c49 | Wim Looman | 2015-01-11T05:05:14 | Move splitting/joining into halveable and remove extra type parameter | diff --git a/src/imp.rs b/src/imp.rs
index dc879e21..0e9859ff 100644
--- a/src/imp.rs
+++ b/src/imp.rs
@@ -17,7 +17,7 @@ pub fn new<Size: ExtInt + Halveable>() -> RB<Size> {
}
pub fn insert<Size: ExtInt + Halveable>(this: &mut RB<Size>, value: Size) -> bool {
- let (key, index) = calc_loc(value);
+ let (key, ... | 4 | 104 | 112 |
6ff9b22387997205e96bc431fdffd3f0e0d39c0f | Wim Looman | 2015-01-11T04:30:16 | Fix for latest nightly + get rid of the more egregious unstable warnings | diff --git a/src/container.rs b/src/container.rs
index 3b3b17f0..d6bbbb65 100644
--- a/src/container.rs
+++ b/src/container.rs
@@ -130,6 +130,6 @@ impl<Size> Container<Size> where Size: Int {
impl<Size> Show for Container<Size> where Size: Int + Show {
#[inline]
fn fmt(&self, formatter: &mut Formatter) -> Re... | 4 | 45 | 47 |
2a70b390523cee0d479f4c45791d603991bfda62 | Wim Looman | 2015-01-07T08:49:38 | Mostly implemented gericness on unsigned type | diff --git a/src/imp.rs b/src/imp.rs
index 62d59b6b..e4f800eb 100644
--- a/src/imp.rs
+++ b/src/imp.rs
@@ -1,18 +1,21 @@
-use std::{ u16, u32 };
+use std::cmp::Ord;
+use std::num::Int;
use std::slice;
use iter;
use iter::{ Iter, UnionIter, IntersectionIter, DifferenceIter, SymmetricDifferenceIter };
use container... | 4 | 236 | 176 |
19f6bb57f686d0121953d0fd531e18dc6414b869 | Wim Looman | 2015-01-07T06:20:47 | Make container and store parameterised by size | diff --git a/src/container.rs b/src/container.rs
index cf2afc57..3b3b17f0 100644
--- a/src/container.rs
+++ b/src/container.rs
@@ -1,37 +1,37 @@
-use std::{ u16 };
+use std::num::Int;
use std::fmt::{ Show, Formatter, Result };
use store::Store;
use store::Store::{ Array, Bitmap };
#[derive(PartialEq, Clone)]
-p... | 5 | 83 | 81 |
5bc35bba83fd384886241269b0d0c3c6c7b0d220 | Wim Looman | 2015-01-07T05:07:21 | Box bitmap, move iter, change to u64 | diff --git a/src/container.rs b/src/container.rs
index b46358d9..cf2afc57 100644
--- a/src/container.rs
+++ b/src/container.rs
@@ -1,4 +1,4 @@
-use std::{ u16, u32, uint };
+use std::{ u16 };
use std::fmt::{ Show, Formatter, Result };
use store::Store;
@@ -57,10 +57,7 @@ impl Container {
#[inline]
pub f... | 2 | 58 | 52 |
776984d0829e03b93b7b2345e799f54845a94f61 | Wim Looman | 2015-01-07T05:04:25 | Turn on variant size differences warning | diff --git a/src/lib.rs b/src/lib.rs
index add816f2..a6a68731 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -13,6 +13,7 @@
#![feature(default_type_params)]
#![warn(missing_docs)]
+#![warn(variant_size_differences)]
use std::fmt::{ Show, Formatter, Result };
use std::ops::{ BitXor, BitAnd, BitOr, Sub }; | 1 | 1 | 0 |
dddb9b1d2c568d142fe5d2b55edcf4a0b2e7cf83 | Wim Looman | 2015-01-06T11:23:10 | Rewrite a lot of store | diff --git a/src/lib.rs b/src/lib.rs
index 37603420..add816f2 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1027,6 +1027,10 @@ impl<'a, 'b> BitXor<&'a RoaringBitmap> for &'b RoaringBitmap {
impl Show for RoaringBitmap {
#[inline]
fn fmt(&self, formatter: &mut Formatter) -> Result {
- format!("RoaringBi... | 2 | 105 | 91 |
9dde82a5b75405c5cd2aeb6f8b0e0acc13ce35e1 | Wim Looman | 2015-01-06T09:42:31 | Replace binary_search_by with binary_search in store | diff --git a/src/store.rs b/src/store.rs
index 5c8a9ed9..b04104a9 100644
--- a/src/store.rs
+++ b/src/store.rs
@@ -12,7 +12,7 @@ impl Store {
pub fn insert(&mut self, index: u16) -> bool {
match self {
&Array(ref mut vec) => {
- vec.binary_search_by(|elem| elem.cmp(&index))
+ ... | 1 | 3 | 3 |
445252abf8ebb3105a6a816a26c0ec520c71bb21 | Wim Looman | 2015-01-06T09:41:30 | Use helper methods instead of matching on binary search result | diff --git a/src/store.rs b/src/store.rs
index 5735fbc3..5c8a9ed9 100644
--- a/src/store.rs
+++ b/src/store.rs
@@ -12,10 +12,9 @@ impl Store {
pub fn insert(&mut self, index: u16) -> bool {
match self {
&Array(ref mut vec) => {
- match vec.binary_search_by(|elem| elem.cmp(&inde... | 1 | 7 | 12 |
9446ffd99aacab8fadc64d7adc3314a29940e92d | Wim Looman | 2015-01-06T09:28:09 | Rearrange store, move methods inline | diff --git a/src/store.rs b/src/store.rs
index 756ae036..5735fbc3 100644
--- a/src/store.rs
+++ b/src/store.rs
@@ -8,308 +8,227 @@ pub enum Store {
Bitmap([u32; 2048]),
}
-fn bitmap_location(index: u16) -> (uint, uint) {
- ((index / (u32::BITS as u16)) as uint, (index % (u32::BITS as u16)) as uint)
-}
-
-fn ... | 1 | 209 | 266 |
14f53fbf0876d25945d4430d638e974f6b01bd7c | Wim Looman | 2015-01-03T09:04:03 | Turn on warn(missing_docs) and hide some methods from the docs | diff --git a/src/imp.rs b/src/imp.rs
index 19570782..c13c1739 100644
--- a/src/imp.rs
+++ b/src/imp.rs
@@ -2,6 +2,7 @@ use std::{ u16, u32 };
use std::slice;
use std::slice::BinarySearchResult::{ Found, NotFound };
+use iter;
use iter::{ Iter, UnionIter, IntersectionIter, DifferenceIter, SymmetricDifferenceIter };... | 3 | 45 | 20 |
e616fd1100845d8935d09094972175731f7b78a9 | Wim Looman | 2015-01-03T08:07:43 | Add some more tests for ops and more trait implementions for them | diff --git a/src/lib.rs b/src/lib.rs
index 36602308..53c83075 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -513,6 +513,53 @@ impl BitOr<RoaringBitmap, RoaringBitmap> for RoaringBitmap {
}
}
+impl<'a> BitOr<RoaringBitmap, RoaringBitmap> for &'a RoaringBitmap {
+ /// Unions`rhs` and `self`, writes result in pla... | 2 | 212 | 1 |
63d2bd2f6baf1a6daaa8a4d6b44ea4bbe761bbbb | Wim Looman | 2015-01-03T06:42:06 | Add tests for difference, switch to using iterative iter to avoid stack overflows | diff --git a/src/iter.rs b/src/iter.rs
index 29cb3beb..8c2c0b7f 100644
--- a/src/iter.rs
+++ b/src/iter.rs
@@ -147,16 +147,17 @@ impl<'a> DifferenceIter<'a> {
impl<'a> Iterator<u32> for DifferenceIter<'a> {
fn next(&mut self) -> Option<u32> {
- match (self.current1, self.current2) {
- (None, _... | 2 | 101 | 10 |
58f048ce73ebdcceb31d423ca06af2d7a84a433a | Wim Looman | 2015-01-03T06:37:14 | Add tests for iter/from_iter/clone and fix bug in bitmap iter | diff --git a/src/container.rs b/src/container.rs
index e03ee3ab..772d0f6c 100644
--- a/src/container.rs
+++ b/src/container.rs
@@ -1,4 +1,4 @@
-use std::{ u16, u32 };
+use std::{ u16, u32, uint };
use std::fmt::{ Show, Formatter, Result };
use store::Store;
@@ -138,7 +138,7 @@ impl<'a> BitmapIter<'a> {
fn new(... | 3 | 73 | 13 |
da9a8a592a7024b75beb7f3099f4fa63da2660e2 | Wim Looman | 2015-01-03T06:07:09 | Add tests for intersect_with | diff --git a/tests/intersect_with.rs b/tests/intersect_with.rs
new file mode 100644
index 00000000..7da46cb1
--- /dev/null
+++ b/tests/intersect_with.rs
@@ -0,0 +1,79 @@
+extern crate roaring;
+use roaring::RoaringBitmap;
+
+#[test]
+fn array() {
+ let mut bitmap1: RoaringBitmap = FromIterator::from_iter(0..2000);
+... | 1 | 79 | 0 |
2568e20ede076b005fbd58818ed07771e46e262f | Wim Looman | 2015-01-03T06:03:55 | Add tests for union_with | diff --git a/tests/union_with.rs b/tests/union_with.rs
new file mode 100644
index 00000000..3ea4ce59
--- /dev/null
+++ b/tests/union_with.rs
@@ -0,0 +1,79 @@
+extern crate roaring;
+use roaring::RoaringBitmap;
+
+#[test]
+fn array_to_array() {
+ let mut bitmap1: RoaringBitmap = FromIterator::from_iter(0..2000);
+ ... | 1 | 79 | 0 |
dbdc45a74269eb264b2492d022f376ccb9cb8253 | Wim Looman | 2015-01-03T05:59:52 | Improve tests some more | diff --git a/tests/difference_with.rs b/tests/difference_with.rs
index 7329edb4..a00c183a 100644
--- a/tests/difference_with.rs
+++ b/tests/difference_with.rs
@@ -69,13 +69,9 @@ fn bitmap_and_array_to_array() {
#[test]
fn arrays() {
- let mut bitmap1: RoaringBitmap = FromIterator::from_iter(0..2000);
- let mu... | 4 | 28 | 44 |
d6a3126309b3e0e5f715a669eb910b65e3a914d0 | Wim Looman | 2015-01-03T05:52:39 | Tidy up some tests | diff --git a/tests/is_subset.rs b/tests/is_subset.rs
index c9c81e17..7e4485f6 100644
--- a/tests/is_subset.rs
+++ b/tests/is_subset.rs
@@ -2,64 +2,78 @@ extern crate roaring;
use roaring::RoaringBitmap;
#[test]
-fn array_not_subset() {
- let bitmap1: RoaringBitmap = FromIterator::from_iter(0..2000);
- let bit... | 2 | 53 | 106 |
e8eced506881e237217b60825bd5814028eb5349 | Wim Looman | 2015-01-02T10:39:09 | Add some more thorough tests, fix small bugs
- Off by one errors in container lengths cause of wrapping.
- Reversed binary search so failed with more containers. | diff --git a/src/container.rs b/src/container.rs
index 067448c3..9f20593c 100644
--- a/src/container.rs
+++ b/src/container.rs
@@ -1,4 +1,5 @@
-use std::{ u32 };
+use std::{ u16, u32 };
+use std::fmt::{ Show, Formatter, Result };
use store::Store;
use store::Store::{ Array, Bitmap };
@@ -14,7 +15,7 @@ impl Containe... | 6 | 172 | 75 |
f7751da9c83d6d405a6549ac0c8d0e4c96dbdebf | Wim Looman | 2015-01-02T09:13:43 | re-implement paired methods | diff --git a/src/container.rs b/src/container.rs
index ed003c82..067448c3 100644
--- a/src/container.rs
+++ b/src/container.rs
@@ -3,7 +3,7 @@ use std::{ u32 };
use store::Store;
use store::Store::{ Array, Bitmap };
-#[deriving(PartialEq)]
+#[deriving(PartialEq, Clone)]
pub struct Container {
key: u16,
l... | 3 | 94 | 70 |
4136b8b8d43ab8d1acaab70c461db07ea2c7fea0 | Wim Looman | 2015-01-02T06:39:23 | Alternative workaround for rust-lang/rust#20419 | diff --git a/src/container.rs b/src/container.rs
index a1c920d1..1ce2ea60 100644
--- a/src/container.rs
+++ b/src/container.rs
@@ -60,12 +60,10 @@ impl Container {
#[inline]
pub fn iter<'a>(&'a self) -> Box<Iterator<u16> + 'a> {
- let result: Box<Iterator<u16> + 'a>;
match self.store {
- ... | 1 | 2 | 4 |
b1d1c8f3fc7c7dd1471987140b73a2592257611a | Wim Looman | 2015-01-02T06:38:13 | Fix unused variable warning | diff --git a/src/store.rs b/src/store.rs
index dca0536e..b327f762 100644
--- a/src/store.rs
+++ b/src/store.rs
@@ -174,7 +174,7 @@ fn union_with(mut this: &mut Store, other: &Store) {
(& &Array(ref mut vec1), &Array(ref vec2)) => union_with_array(vec1, vec2),
(& &Bitmap(ref mut bits1), &Bitmap(ref bit... | 1 | 1 | 1 |
184e0397c2d55962157bed45be5439ba03efa5db | Wim Looman | 2015-01-02T04:52:48 | Add in workaround that lets the boxed iterator work | diff --git a/src/container.rs b/src/container.rs
index 3df6f4a5..a1c920d1 100644
--- a/src/container.rs
+++ b/src/container.rs
@@ -60,10 +60,12 @@ impl Container {
#[inline]
pub fn iter<'a>(&'a self) -> Box<Iterator<u16> + 'a> {
+ let result: Box<Iterator<u16> + 'a>;
match self.store {
- ... | 1 | 4 | 2 |
66d77f3d23966d605758d3b28247d5757f6c4e65 | Wim Looman | 2015-01-02T04:51:57 | Revert to failing implementation | diff --git a/src/container.rs b/src/container.rs
index a2c9f620..3df6f4a5 100644
--- a/src/container.rs
+++ b/src/container.rs
@@ -62,8 +62,7 @@ impl Container {
pub fn iter<'a>(&'a self) -> Box<Iterator<u16> + 'a> {
match self.store {
Array(ref vec) => box vec.iter().map(|x| *x),
- ... | 1 | 1 | 2 |
d3371b09dab5deeb4372dfc8f591c32d50cb9f74 | Wim Looman | 2015-01-02T03:28:35 | Fix docs not being generated properly | diff --git a/src/imp.rs b/src/imp.rs
index ea6ecc8c..a1612f9d 100644
--- a/src/imp.rs
+++ b/src/imp.rs
@@ -4,12 +4,7 @@ use std::slice::BinarySearchResult::{ Found, NotFound };
use iter::{ Iter, UnionIter, IntersectionIter, DifferenceIter, SymmetricDifferenceIter };
use container::Container;
-#[deriving(PartialEq)]... | 2 | 5 | 7 |
5246b009597d6ea0403cc0e4c3590c620ba398c2 | Wim Looman | 2015-01-02T03:03:48 | Count up with count_ones instead of down | diff --git a/src/store.rs b/src/store.rs
index 89241739..dca0536e 100644
--- a/src/store.rs
+++ b/src/store.rs
@@ -243,9 +243,9 @@ impl Store {
match self {
&Array(ref vec) => vec.len() as u16,
&Bitmap(ref bits) => {
- let mut len = u32::BITS * 2048;
+ le... | 1 | 2 | 2 |
b929302f8c77e58d1c378238e1a7d837e5f04d51 | Wim Looman | 2015-01-01T22:07:57 | Add slicing syntax feature | diff --git a/src/lib.rs b/src/lib.rs
index 35e9b7b0..85bc90fc 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,3 +1,5 @@
+#![feature(slicing_syntax)]
+
pub use iter::{ Iter, UnionIter, IntersectionIter, DifferenceIter, SymmetricDifferenceIter };
mod imp; | 1 | 2 | 0 |
7281a0d9463e67ca0496766bc3ff75ace47a068b | Wim Looman | 2014-12-31T05:28:17 | Work around compiler issue | diff --git a/src/container.rs b/src/container.rs
index e76f85ce..3bd605d9 100644
--- a/src/container.rs
+++ b/src/container.rs
@@ -61,7 +61,8 @@ impl Container {
pub fn iter<'a>(&'a self) -> Box<Iterator<u16> + 'a> {
match self.store {
Array(ref vec) => box vec.iter().map(|x| *x),
- ... | 2 | 4 | 3 |
0e530c43d5453c5191b357bb7cf7aa6684506dc4 | Wim Looman | 2014-12-30T22:41:44 | Use container iter by-value rather than boxing | diff --git a/src/imp.rs b/src/imp.rs
index f25c5bf9..e500ffe9 100644
--- a/src/imp.rs
+++ b/src/imp.rs
@@ -71,7 +71,7 @@ pub fn len(this: &RB) -> uint {
#[inline]
pub fn iter<'a>(this: &'a RB) -> Iter<'a> {
- Iter::new(box this.containers.iter())
+ Iter::new(this.containers.iter())
}
pub fn is_disjoint(th... | 2 | 5 | 5 |
f7b3fa8a53e05696b186efc2e93bf49134736e11 | Wim Looman | 2014-12-29T05:33:50 | Iterate rather than array index | diff --git a/src/container.rs b/src/container.rs
index 2094a694..e76f85ce 100644
--- a/src/container.rs
+++ b/src/container.rs
@@ -83,11 +83,11 @@ impl Container {
struct BitmapIter<'a> {
key: uint,
bit: uint,
- bits: &'a [u32, ..2048],
+ bits: &'a [u32; 2048],
}
impl<'a> BitmapIter<'a> {
- fn n... | 2 | 5 | 5 |
31c93c5bc81ec36c12ee74125a88b51e6575c55e | Wim Looman | 2014-12-29T05:28:29 | Cleanup iterator
Use box around sub-iterators instead of custom enum.
Use map where possible for options. | diff --git a/src/container.rs b/src/container.rs
index ccb388f0..2094a694 100644
--- a/src/container.rs
+++ b/src/container.rs
@@ -1,5 +1,4 @@
use std::{ u32 };
-use std::slice::Iter;
use store::Store;
use store::Store::{ Array, Bitmap };
@@ -59,10 +58,10 @@ impl Container {
}
#[inline]
- pub fn ite... | 2 | 16 | 31 |
3907a1cc2a1abbd66dac329fc17ad014dd3cbf9d | Wim Looman | 2014-12-29T04:06:41 | Tidy up store implementations | diff --git a/src/store.rs b/src/store.rs
index 4239a308..1e6cd894 100644
--- a/src/store.rs
+++ b/src/store.rs
@@ -5,7 +5,11 @@ use store::Store::{ Array, Bitmap };
pub enum Store {
Array(Vec<u16>),
- Bitmap([u32, ..2048]),
+ Bitmap([u32; 2048]),
+}
+
+fn bitmap_location(index: u16) -> (uint, uint) {
+ ... | 1 | 45 | 76 |
12f9b08943331c35c4fcbfb5625a8de0461d5339 | Wim Looman | 2014-12-29T03:27:48 | Simplify implementation of is_disjoint/is_subset | diff --git a/src/imp.rs b/src/imp.rs
index 56f050c4..79194b57 100644
--- a/src/imp.rs
+++ b/src/imp.rs
@@ -52,10 +52,12 @@ pub fn contains(this: &RB, value: u32) -> bool {
}
}
+#[inline]
pub fn clear(this: &mut RB) {
this.containers.clear();
}
+#[inline]
pub fn is_empty(this: &RB) -> bool {
this.... | 1 | 31 | 55 |
f3ea0eb9a50c18b3325dedf38619f628cc298de2 | Wim Looman | 2014-12-29T02:58:17 | Split implementation from API definition | diff --git a/src/imp.rs b/src/imp.rs
new file mode 100644
index 00000000..fe4d8db7
--- /dev/null
+++ b/src/imp.rs
@@ -0,0 +1,177 @@
+use std::{ u16 };
+use std::slice::BinarySearchResult::{ Found, NotFound };
+
+use iter::RoaringIterator;
+use container::Container;
+
+pub struct RoaringBitmap {
+ containers: Vec<Con... | 2 | 207 | 138 |
b249a9b465b65d02dca565525b95b716839f90b0 | Wim Looman | 2014-12-28T12:17:54 | Bump vesion | diff --git a/Cargo.toml b/Cargo.toml
index 615a20f5..845b404c 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "roaring"
-version = "0.0.6"
+version = "0.0.7"
authors = ["Wim Looman <ghostunderscore@gmail.com>"]
description = "http://roaringbitmap.org for http://www.rust-lang.org" | 1 | 1 | 1 |
b90f0478da01e909a74060075316d0ae4de63ada | Wim Looman | 2014-12-28T12:09:36 | Version bump | diff --git a/Cargo.toml b/Cargo.toml
index 34d261bc..615a20f5 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "roaring"
-version = "0.0.5"
+version = "0.0.6"
authors = ["Wim Looman <ghostunderscore@gmail.com>"]
description = "http://roaringbitmap.org for http://www.rust-lang.org" | 1 | 1 | 1 |
ae06cc92a072860413afc25ef5907dc20a2d1fd8 | Wim Looman | 2014-12-28T11:55:31 | Bump version number | diff --git a/Cargo.toml b/Cargo.toml
index 9ab84301..67668fcb 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "roaring"
-version = "0.0.2"
+version = "0.0.3"
authors = ["Wim Looman <ghostunderscore@gmail.com>"]
description = "http://roaringbitmap.org for http://www.rust-lang.org" | 1 | 1 | 1 |
bc9273ad5f7d3ab934b1d4c8615cfe5f65d704cb | Wim Looman | 2014-12-28T10:31:50 | Bump version | diff --git a/Cargo.toml b/Cargo.toml
index 34b2a555..9ab84301 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "roaring"
-version = "0.0.1"
+version = "0.0.2"
authors = ["Wim Looman <ghostunderscore@gmail.com>"]
description = "http://roaringbitmap.org for http://www.rust-lang.org" | 1 | 1 | 1 |
1fd0cde98b72a1852207e0b47c2087784ab5495f | Wim Looman | 2014-12-28T00:29:53 | Working iterators | diff --git a/src/container.rs b/src/container.rs
index 80a1f338..5d412d51 100644
--- a/src/container.rs
+++ b/src/container.rs
@@ -1,8 +1,6 @@
-use std::{ u16, u32 };
+use std::{ u32 };
use std::slice::Iter;
-use util::Either;
-use util::Either::{ Left, Right };
use store::Store;
use store::Store::{ Array, Bitmap ... | 3 | 47 | 44 |
7bc86add8889abaace1da4fe40e4597dd8887c6f | Wim Looman | 2014-12-27T10:41:29 | As close as possible to working | diff --git a/src/container.rs b/src/container.rs
index e0d73cb6..80a1f338 100644
--- a/src/container.rs
+++ b/src/container.rs
@@ -82,8 +82,8 @@ impl<'a> BitmapIter<'a> {
}
}
-impl<'a> Iterator<&'a u16> for BitmapIter<'a> {
- fn next(&mut self) -> Option<&'a u16> {
+impl<'a> Iterator<u16> for BitmapIter<'a> ... | 3 | 35 | 28 |
7f16cc5fffd8627084cb26b3d1ddd94fd8cdae8e | Wim Looman | 2014-12-27T10:24:53 | Work on trying to implement iter, doesn't compile | diff --git a/src/container.rs b/src/container.rs
index 84bd63f6..e0d73cb6 100644
--- a/src/container.rs
+++ b/src/container.rs
@@ -1,3 +1,8 @@
+use std::{ u16, u32 };
+use std::slice::Iter;
+
+use util::Either;
+use util::Either::{ Left, Right };
use store::Store;
use store::Store::{ Array, Bitmap };
@@ -52,5 +57,5... | 4 | 116 | 3 |
1dcadd0bc2d0798aa39a425b3b20ea54881b1713 | Wim Looman | 2014-12-27T10:26:39 | Fix master | diff --git a/src/lib.rs b/src/lib.rs
index b4027553..1e81a5d6 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -192,7 +192,7 @@ impl RoaringBitmap {
/// println!("{}", x);
/// }
/// ```
- pub fn iter<'a>(&'a self) -> RoaringIterator<'a> {
+ pub fn iter<'a>(&'a self) {
unimplemented!()
... | 1 | 1 | 1 |
e5cf2cace8a580d9ccd1e49a5e485970d5e666d0 | Wim Looman | 2014-12-27T08:09:09 | Add API docs | diff --git a/src/lib.rs b/src/lib.rs
index 78d90dcb..cd1528b1 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -6,17 +6,52 @@ use container::Container;
mod store;
mod container;
+/// A compressed bitmap using the [Roaring bitmap compression scheme](http://roaringbitmap.org).
+///
+/// # Examples
+///
+/// ```rust
+/// u... | 2 | 121 | 15 |
7e4402f58d765731edaa6d8c5ea20dd217b4eb8f | Wim Looman | 2014-12-27T06:52:09 | 'warning: only one of `license` or `license-file` is necessary' | diff --git a/Cargo.toml b/Cargo.toml
index 6d221ace..34b2a555 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -12,4 +12,3 @@ readme = "README.md"
keywords = ["roaring", "data-structure", "bitmap"]
license = "MIT"
-license-file = "LICENSE" | 1 | 0 | 1 |
16f9ccc2fc186f3fc805abb5fad9d8cf2f55b791 | Wim Looman | 2014-12-27T06:51:02 | Fix keyword | diff --git a/Cargo.toml b/Cargo.toml
index 539ba4f8..6d221ace 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -9,7 +9,7 @@ homepage = "https://github.com/Nemo157/roaring-rs"
repository = "https://github.com/Nemo157/roaring-rs"
readme = "README.md"
-keywords = ["roaring", "data structure", "bitmap"]
+keywords = ["roarin... | 1 | 1 | 1 |
9d05d810c81719a8859d960220a637da8a2cdcd1 | Arthur Gautier | 2026-04-10T23:24:51 | Use release versions of dependencies (#821)
Bumps:
- `aes` to `0.9.0`
- `belt-block` to `0.2.0`
- `belt-ctr` to `0.2.0`
- `cmac` to `0.8.0`
- `ctr` to `0.10.0`
- `ghash` to `0.6.0`
- `pmac` to `0.8.0`
- `universal-hash` to `0.6.1` | diff --git a/Cargo.lock b/Cargo.lock
index 61ac065..300213d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -25,13 +25,13 @@ dependencies = [
[[package]]
name = "aes"
-version = "0.9.0-rc.4"
+version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "04097e08a47d9ad181c2e1f4a5fabc9... | 12 | 45 | 54 |
37bd4e2a0718f08a57c86b41079c574009bba9cb | Tony Arcieri | 2026-03-26T23:47:45 | Cargo.lock: bump dependencies (#817) | diff --git a/Cargo.lock b/Cargo.lock
index e095e64..61ac065 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -80,9 +80,9 @@ dependencies = [
[[package]]
name = "anyhow"
-version = "1.0.100"
+version = "1.0.102"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a23eb6b1614318a8071c9b2521f36b4... | 1 | 61 | 46 |
ed495db0ffff350654e3fbc47ee2a080c1bad164 | Artyom Pavlov | 2026-02-18T12:44:33 | eax: simplify tag computation (#805) | diff --git a/eax/src/lib.rs b/eax/src/lib.rs
index 7b81063..d2e6c7f 100644
--- a/eax/src/lib.rs
+++ b/eax/src/lib.rs
@@ -133,8 +133,7 @@ pub use cipher;
use aead::{TagPosition, inout::InOutBuf};
use cipher::{
- BlockCipherEncrypt, BlockSizeUser, InnerIvInit, StreamCipherCore, array::Array,
- common::OutputSiz... | 1 | 4 | 27 |
291d34ddbfe5a2919f662d0b68650ebc9d479718 | Tony Arcieri | 2026-02-09T15:20:09 | belt-dwp: remove use of `opaque-debug` (#797) | diff --git a/Cargo.lock b/Cargo.lock
index 2ae0706..97c7596 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -136,7 +136,6 @@ dependencies = [
"belt-block",
"belt-ctr",
"hex-literal",
- "opaque-debug",
"subtle",
"universal-hash",
"zeroize",
@@ -465,12 +464,6 @@ dependencies = [
"zeroize",
]
-[[package]]
-na... | 3 | 0 | 10 |
ff5d17903e46d230fd72505646b861e356f4eba2 | Tony Arcieri | 2026-02-07T15:50:29 | Bump `cipher` to v0.5 (#793)
Release PR: RustCrypto/traits#2281 | diff --git a/Cargo.lock b/Cargo.lock
index b8e9a70..2612b58 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -213,9 +213,9 @@ dependencies = [
[[package]]
name = "cipher"
-version = "0.5.0-rc.8"
+version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9002c8edb9b1e21938663da3489c... | 9 | 14 | 14 |
30ab5efd0f61e57d5a20b6f9f5c96e85649ac5f4 | Kingsley Yung | 2026-02-02T14:59:09 | aes-gcm: support 32-bit and 64-bit tags under `hazmat` feature (#777)
Add 32-bit and 64-bit tag length support to AES-GCM. (Fix #541)
Appendix C of NIST SP800-38D enforces a maxium decryption invocations on
a key when using short tag, while this crate currently does not track
the number of invocations. The crate user... | diff --git a/aes-gcm/Cargo.toml b/aes-gcm/Cargo.toml
index 018be55..59dc0a4 100644
--- a/aes-gcm/Cargo.toml
+++ b/aes-gcm/Cargo.toml
@@ -38,6 +38,7 @@ alloc = ["aead/alloc"]
arrayvec = ["aead/arrayvec"]
bytes = ["aead/bytes"]
getrandom = ["aead/getrandom"]
+hazmat = []
rand_core = ["aead/rand_core"]
[package.met... | 2 | 16 | 0 |
defcb47d069f9a23c88851811534a614bf5361db | Tony Arcieri | 2026-01-28T14:36:48 | Bump dependencies (#784)
Upgrades the following dependency requirements:
- `ghash` v0.6.0-rc.4
- `poly1305` v0.9.0-rc.4
- `polyval` v0.7.0-rc.6 | diff --git a/Cargo.lock b/Cargo.lock
index 57163dc..08567ac 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -340,9 +340,9 @@ dependencies = [
[[package]]
name = "ghash"
-version = "0.6.0-rc.3"
+version = "0.6.0-rc.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "333de57ed9494a40df4bbb86... | 4 | 9 | 9 |
3021c464d3c2174d250e2b0e967283f9cfbd3cc0 | Tony Arcieri | 2026-01-24T17:37:28 | Cargo.lock: bump dependencies (#776)
Updates the following dependencies:
$ cargo update
Updating crates.io index
Locking 7 packages to latest Rust 1.85 compatible versions
Updating digest v0.11.0-rc.5 -> v0.11.0-rc.8
Updating hybrid-array v0.4.5 -> v0.4.6
Updating libc v0.2.178 -> v0.2.180
... | diff --git a/Cargo.lock b/Cargo.lock
index 41464cb..21544e4 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -285,9 +285,9 @@ dependencies = [
[[package]]
name = "digest"
-version = "0.11.0-rc.5"
+version = "0.11.0-rc.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ebf9423bafb058e414219... | 1 | 14 | 14 |
ac2095d09c31e906d132aea9585b6cfef61b1e6b | Tony Arcieri | 2026-01-24T17:05:57 | Bump trait crate dependencies (#775)
Updates the following:
- `aead` v0.6.0-rc.8
- `cipher` v0.5.0-rc.6
- `universal-hash` v0.6.0-rc.7
Also bumps:
- `chacha20` v0.10.0-rc.9 | diff --git a/Cargo.lock b/Cargo.lock
index 698e334..41464cb 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -5,9 +5,9 @@ version = 4
[[package]]
name = "aead"
-version = "0.6.0-rc.5"
+version = "0.6.0-rc.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "67a578e7d4edaef88aeb9cdd81556f4a62... | 13 | 336 | 47 |
bedaccdcd368f95883c81745570fab2702579a33 | Artyom Pavlov | 2026-01-16T15:38:53 | ocb3: switch `L_TABLE_SIZE` to generic parameter (#763)
This allows users to change the table size if necessary.
Additionally, fixes the off-by-one error in the length check reported in
https://github.com/RustCrypto/AEADs/security/advisories/GHSA-82w3-c9gr-gp52
and properly returns error on large plaintexts/AAD inste... | diff --git a/ocb3/src/lib.rs b/ocb3/src/lib.rs
index 25557eb..b17338d 100644
--- a/ocb3/src/lib.rs
+++ b/ocb3/src/lib.rs
@@ -32,27 +32,6 @@ use core::marker::PhantomData;
use dbl::Dbl;
use subtle::ConstantTimeEq;
-/// Number of L values to be precomputed. Precomputing m values, allows
-/// processing inputs of leng... | 2 | 61 | 38 |
73027cdde16f8f95ab85b817ce529568ccdd6263 | Tony Arcieri | 2025-12-29T15:16:46 | Cargo.lock: bump dependencies (#761)
Updates the following dependencies:
$ cargo update
Updating crates.io index
Locking 12 packages to latest Rust 1.85 compatible versions
Updating bytes v1.10.1 -> v1.11.0
Updating cfg-if v1.0.0 -> v1.0.4
Updating digest v0.11.0-rc.4 -> v0.11.0-rc.5
Upda... | diff --git a/Cargo.lock b/Cargo.lock
index 4c77636..698e334 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -154,9 +154,9 @@ dependencies = [
[[package]]
name = "bytes"
-version = "1.10.1"
+version = "1.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d71b6127be86fdcfddb610f7182ac572... | 1 | 24 | 24 |
d05806aeef5fcb4df92776ed3efae5e5120451a8 | Tony Arcieri | 2025-12-28T00:18:17 | Bump `aead` crate dependency to v0.6.0-rc.5 (#758) | diff --git a/Cargo.lock b/Cargo.lock
index 4bd3468..4c77636 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -5,9 +5,9 @@ version = 4
[[package]]
name = "aead"
-version = "0.6.0-rc.4"
+version = "0.6.0-rc.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d4432ec21d472b82641b64c82ad1daca98... | 13 | 56 | 122 |
83d4144cb6f807643ff258af2bd69ab228c1a177 | Ben Beasley | 2025-12-05T16:08:00 | ocb3: update hex-literal to v1 (#745) | diff --git a/ocb3/Cargo.toml b/ocb3/Cargo.toml
index ddda079..75213e1 100644
--- a/ocb3/Cargo.toml
+++ b/ocb3/Cargo.toml
@@ -27,7 +27,7 @@ zeroize = { version = "1", optional = true, default-features = false }
[dev-dependencies]
aead = { version = "0.6.0-rc.3", features = ["dev"], default-features = false }
aes = { ... | 1 | 1 | 1 |
a20063fd19f12c99bb0b42b8662f69144d063c2a | Oleksii Shmalko | 2025-11-02T14:44:47 | aead-stream: remove unnecessary KeyInit constraint on from_aead (#739)
`Encryptor::from_aead` and `Decryptor::from_aead` require AEAD to
implement `KeyInit`, which seems unnecessary and unused. I believe we
can drop that requirement. | diff --git a/aead-stream/src/lib.rs b/aead-stream/src/lib.rs
index 4d09590..91c2040 100644
--- a/aead-stream/src/lib.rs
+++ b/aead-stream/src/lib.rs
@@ -200,7 +200,6 @@ macro_rules! impl_stream_object {
#[doc = "object from the given AEAD primitive."]
pub fn from_aead(aead: A, nonce: &Nonce<A,... | 1 | 0 | 1 |
3e69724704eaf2e20c1e5d7dd87246c5b0e669c7 | Tony Arcieri | 2025-10-27T16:26:36 | ccm v0.6.0-pre.0 (#737)
Closes #736 | diff --git a/Cargo.lock b/Cargo.lock
index 8e4df6c..cf0c1b2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -165,7 +165,7 @@ checksum = "d71b6127be86fdcfddb610f7182ac57211d4b18a3e9c82eb2d17662f2227ad6a"
[[package]]
name = "ccm"
-version = "0.6.0-pre"
+version = "0.6.0-pre.0"
dependencies = [
"aead",
"aes",
diff --... | 2 | 2 | 2 |
ca7e6aaa283705162b2443a956085d051546be22 | Arthur Gautier | 2025-09-20T11:46:25 | eax: cleanup stale macros (#721) | diff --git a/eax/tests/common/mod.rs b/eax/tests/common/mod.rs
deleted file mode 100644
index 457cd8d..0000000
--- a/eax/tests/common/mod.rs
+++ /dev/null
@@ -1,73 +0,0 @@
-//! Common functionality shared by tests
-
-/// Test vectors
-#[derive(Debug)]
-pub struct TestVector<K: 'static> {
- pub key: &'static K,
- ... | 1 | 0 | 73 |
5836865904924d1a3257eb3ad5a68f5c61ab78a9 | Tony Arcieri | 2025-09-03T03:53:21 | Cut prereleases with `hybrid-array` v0.4 support (#715)
Releases the following:
- `aead-stream` v0.6.0-rc.1
- `aes-gcm` v0.11.0-rc.1
- `aes-gcm-siv` v0.12.0-rc.1
- `aes-siv` v0.8.0-rc.1
- `chacha20poly1305` v0.11.0-rc.1
- `xaes-256-gcm` v0.1.0-rc.1 | diff --git a/Cargo.lock b/Cargo.lock
index 90328f8..c0016df 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -19,7 +19,7 @@ dependencies = [
[[package]]
name = "aead-stream"
-version = "0.6.0-rc.0"
+version = "0.6.0-rc.1"
dependencies = [
"aead",
]
@@ -37,7 +37,7 @@ dependencies = [
[[package]]
name = "aes-gcm"
... | 8 | 19 | 19 |
4475ee83862bde859459ebc00173af4c2f8c807e | Tony Arcieri | 2025-09-03T03:38:50 | Bump universal hashes (#714)
Uses `hybrid-array` v0.4-compatible versions | diff --git a/Cargo.lock b/Cargo.lock
index 47c2d56..90328f8 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -417,9 +417,9 @@ dependencies = [
[[package]]
name = "poly1305"
-version = "0.9.0-rc.1"
+version = "0.9.0-rc.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "acc2072a7f2eb76d8cb98... | 6 | 17 | 28 |
90e18651fbac6b5fc202f4abf4b0db1047272fd7 | Tony Arcieri | 2025-09-03T03:24:01 | Bump ciphers and block modes (#713)
Uses `hybrid-array` v0.4-compatible crate releases | diff --git a/Cargo.lock b/Cargo.lock
index e85d6d1..47c2d56 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -26,9 +26,9 @@ dependencies = [
[[package]]
name = "aes"
-version = "0.9.0-rc.0"
+version = "0.9.0-rc.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cd4838e4ad37bb032dea137f441d... | 12 | 44 | 51 |
9c68a2955257a8a9cf428f8065ebf12f99c820e6 | Tony Arcieri | 2025-09-03T03:02:29 | Bump `dbl` to v0.5 (#712) | diff --git a/Cargo.lock b/Cargo.lock
index 703fb6b..e85d6d1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -261,8 +261,9 @@ dependencies = [
[[package]]
name = "dbl"
-version = "0.5.0-pre"
-source = "git+https://github.com/RustCrypto/utils#adfccfea2686ef191b607f653cc3587753b6ec66"
+version = "0.5.0"
+source = "registr... | 4 | 5 | 6 |
1c232c895e6b3617dca0098d6eb24a18103afb5d | Tony Arcieri | 2025-09-02T22:44:55 | Bump `cipher` to v0.5.0-rc.1 (#711) | diff --git a/Cargo.lock b/Cargo.lock
index 939a278..703fb6b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -150,8 +150,9 @@ checksum = "4a859067dcb257cb2ae028cb821399b55140b76fb8b2a360e052fe109019db43"
[[package]]
name = "block-buffer"
-version = "0.11.0-rc.4"
-source = "git+https://github.com/RustCrypto/utils#adfccfe... | 10 | 23 | 28 |
4e4da69bcebf335bec46a960ecbca8b7eac583fd | Tony Arcieri | 2025-09-02T12:37:02 | Bump `hybrid-array` to v0.4 (#710) | diff --git a/Cargo.lock b/Cargo.lock
index 799a109..939a278 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -116,8 +116,7 @@ dependencies = [
[[package]]
name = "belt-ctr"
version = "0.2.0-rc.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f9e62741717c47d2f988623df3ee9265788c339255c2ca5... | 5 | 47 | 32 |
eec09b62e39ff98bf9de733e1a6c938ed8547aba | Tony Arcieri | 2025-07-31T18:42:31 | aes-siv: remove `siv::KeySize` alias from public API (#701)
It's confusing, and end users should use `KeySizeUser`.
Closes #700 | diff --git a/aes-siv/src/siv.rs b/aes-siv/src/siv.rs
index 2f646e4..593cfe7 100644
--- a/aes-siv/src/siv.rs
+++ b/aes-siv/src/siv.rs
@@ -99,7 +99,7 @@ pub const MAX_HEADERS: usize = 126;
type Ctr128BE<C> = ctr::CtrCore<C, ctr::flavors::Ctr128BE>;
/// Size of an AES-SIV key given a particular cipher
-pub type KeySiz... | 1 | 1 | 1 |
a1e58cae52d6538fcd372c239047d990d83ca809 | Alexandr Kitaev | 2025-06-17T16:08:08 | belt-dwp: minor code cleanup (#696)
* Removed unused allow_unused
* Replaced `xor_s` with `update_padded` | diff --git a/belt-dwp/src/gf/utils.rs b/belt-dwp/src/gf/utils.rs
index 0c7b7f9..ace5668 100644
--- a/belt-dwp/src/gf/utils.rs
+++ b/belt-dwp/src/gf/utils.rs
@@ -1,4 +1,3 @@
-#![allow(unused)]
use core::num::Wrapping;
/// Multiplication in GF(2)[X], truncated to the low 64-bits, with “holes”
diff --git a/belt-dwp/sr... | 3 | 3 | 8 |
543c7a0b7a14e85cd53edc9c4b6e7788eb734bcd | Artyom Pavlov | 2025-06-04T17:31:05 | deoxys: fix Clippy lint (#695) | diff --git a/deoxys/src/lib.rs b/deoxys/src/lib.rs
index 8e414df..4d9f92c 100644
--- a/deoxys/src/lib.rs
+++ b/deoxys/src/lib.rs
@@ -351,7 +351,7 @@ mod tests {
impl MockBuffer {
/// Get an [`InOutBuf`] from a [`MockBuffer`]
- pub fn to_in_out_buf(&mut self) -> InOutBuf<'_, '_, u8> {
+ pub... | 1 | 5 | 5 |
ced530b61e90208c6a20863d63fc8befd1175c0f | Artyom Pavlov | 2025-06-04T17:25:12 | belt-dwp: support additional tag sizes (#694)
The specification allows tag truncation (section 5.4). Additionally, DWP
can be used with a "full" 128 bit tag size without any security issues
(see this [issue](https://github.com/bcrypto/belt/issues/8)). While
technically tag sizes bigger than 64 bits do not conform to t... | diff --git a/belt-dwp/src/lib.rs b/belt-dwp/src/lib.rs
index e49114c..0580e02 100644
--- a/belt-dwp/src/lib.rs
+++ b/belt-dwp/src/lib.rs
@@ -73,23 +73,23 @@
//! [`aead::Buffer`] for `arrayvec::ArrayVec` (re-exported from the [`aead`] crate as
//! [`aead::arrayvec::ArrayVec`]).
-pub use aead::{self, AeadCore, AeadIn... | 1 | 34 | 21 |
89166d2f5aef1095d6aab7779eb0f6a34614799a | Tony Arcieri | 2025-05-30T16:55:19 | Bump `cipher` dependency to v0.5.0-rc.0 (#692)
Also bumps previously released crates to `rc.0` and bumps version and
adds `-pre` to crates with breaking changes which didn't get properly
bumped before | diff --git a/Cargo.lock b/Cargo.lock
index fdd07cc..4fa404c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -5,11 +5,12 @@ version = 4
[[package]]
name = "aead"
-version = "0.6.0-rc.0"
-source = "git+https://github.com/RustCrypto/traits.git#3620aba4f1e81e506b46a5f88c47f7ee3a7b87e0"
+version = "0.6.0-rc.1"
+source = "re... | 14 | 135 | 162 |
32d8e7aeac68a11ae7989138c9b98d8dda817d7b | Arthur Gautier | 2025-04-19T16:02:45 | ascon-aead128: rewrite internals to use inout (#687) | diff --git a/Cargo.lock b/Cargo.lock
index be9cc1c..1ba8327 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -98,6 +98,7 @@ version = "0.1.0"
dependencies = [
"aead",
"ascon",
+ "inout",
"subtle",
"zeroize",
]
@@ -392,7 +393,6 @@ dependencies = [
"ctr",
"dbl",
"hex-literal 0.4.1",
- "hex-literal",
"inout"... | 3 | 36 | 29 |
e7ce04cbe920c6382d327c36640ecf494dfd53a7 | Arthur Gautier | 2025-04-17T18:10:30 | ocb3: migrate internals to use inout (#667)
This is to prepare the migration to `AeadInOut`, following
https://github.com/RustCrypto/traits/pull/1793 | diff --git a/Cargo.lock b/Cargo.lock
index 16d4985..be9cc1c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -370,8 +370,7 @@ dependencies = [
[[package]]
name = "inout"
version = "0.2.0-rc.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ac5e145e8ade9f74c0a5efc60ccb4e714b0144f7e2220b7ca6... | 4 | 83 | 74 |
1a0482df1e8b8c7fbafac37ebd7935d93b2134d6 | Artyom Pavlov | 2025-03-24T23:33:43 | deoxys: tweak `DeoxysMode::encrypt/decrypt_inout` methods (#680)
The change reduces code drift to the right and simplifies the branching structure. | diff --git a/deoxys/src/modes.rs b/deoxys/src/modes.rs
index 0f91ec3..a4e01bb 100644
--- a/deoxys/src/modes.rs
+++ b/deoxys/src/modes.rs
@@ -92,7 +92,6 @@ where
let mut tag = Tag::default();
let mut checksum = Checksum::default();
let mut tweak = Tweak::default();
- let buffer_len = bu... | 1 | 90 | 117 |
557d86411d298d83325a3b6e8280e21b0cbea7b4 | Arthur Gautier | 2025-03-24T21:37:33 | deoxys: rewrite the internals to use inout (#666)
This is to prepare the migration to `AeadInOut`, following
https://github.com/RustCrypto/traits/pull/1793
Note: there is a strong chance this could actually use the
StreamCipherCore api, but I couldn't not make it fit. | diff --git a/Cargo.lock b/Cargo.lock
index 3d89fdc..bfb48af 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -244,6 +244,7 @@ dependencies = [
"aead",
"aes",
"hex-literal",
+ "inout",
"subtle",
"zeroize",
]
diff --git a/deoxys/Cargo.toml b/deoxys/Cargo.toml
index 7c36020..dbf9bef 100644
--- a/deoxys/Cargo.toml
++... | 4 | 277 | 126 |
caa19fec88a2c04af47227f67df98aa581d845aa | Tony Arcieri | 2025-03-23T22:32:52 | Revert "ascon-aead: remove license headers from source files (#676)" (#678)
This reverts commit aafc20ed4af21c7c2246e10ce80147a5ad1196d5.
See discussion on #676 | diff --git a/ascon-aead/src/asconcore.rs b/ascon-aead/src/asconcore.rs
index 4f1613a..2cd828b 100644
--- a/ascon-aead/src/asconcore.rs
+++ b/ascon-aead/src/asconcore.rs
@@ -1,3 +1,6 @@
+// Copyright 2021-2023 Sebastian Ramacher
+// SPDX-License-Identifier: Apache-2.0 OR MIT
+
use aead::{
Error,
array::{Array... | 2 | 6 | 0 |
aafc20ed4af21c7c2246e10ce80147a5ad1196d5 | Artyom Pavlov | 2025-03-23T00:23:46 | ascon-aead: remove license headers from source files (#676)
We generally do not include license headers in each file and rely solely
on the LICENSE files instead. | diff --git a/ascon-aead/src/asconcore.rs b/ascon-aead/src/asconcore.rs
index 2cd828b..4f1613a 100644
--- a/ascon-aead/src/asconcore.rs
+++ b/ascon-aead/src/asconcore.rs
@@ -1,6 +1,3 @@
-// Copyright 2021-2023 Sebastian Ramacher
-// SPDX-License-Identifier: Apache-2.0 OR MIT
-
use aead::{
Error,
array::{Array... | 2 | 0 | 6 |
a324b494b6499b9bcf86a5d6c1dfbb3604587e2c | Arthur Gautier | 2025-03-17T20:07:46 | deoxys: reorganize `authenticate_message` (#671)
This is split off from https://github.com/RustCrypto/AEADs/pull/666 | diff --git a/deoxys/src/modes.rs b/deoxys/src/modes.rs
index d02d586..ccb2b11 100644
--- a/deoxys/src/modes.rs
+++ b/deoxys/src/modes.rs
@@ -294,38 +294,46 @@ where
subkeys: &Array<DeoxysKey, B::SubkeysSize>,
tag: &mut Tag,
) {
- if !buffer.is_empty() {
- tweak[0] = TWEAK_M;
+ ... | 1 | 32 | 24 |
b5a7effe0fb1200e10b8527ed90b4dda5cf50b26 | Artyom Pavlov | 2025-01-24T20:48:17 | mgm: update Cargo.lock (#654) | diff --git a/mgm/Cargo.lock b/mgm/Cargo.lock
index 20a5b86..5f17200 100644
--- a/mgm/Cargo.lock
+++ b/mgm/Cargo.lock
@@ -18,9 +18,9 @@ dependencies = [
[[package]]
name = "arrayvec"
-version = "0.7.4"
+version = "0.7.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "96d30a06541fbafbc... | 1 | 26 | 26 |
ad69263abac66575ecb800f3063830b34ad0c31e | Artyom Pavlov | 2025-01-21T19:10:50 | aead-stream: move the remaining items from `aead` (#647)
This PR follows removal of the items from `aead` in
https://github.com/RustCrypto/traits/pull/1713
In a future PR I plan to refactor `aead-stream` further, so it's
convenient to have all code in one place. | diff --git a/aead-stream/Cargo.toml b/aead-stream/Cargo.toml
index 6533896..f58ca44 100644
--- a/aead-stream/Cargo.toml
+++ b/aead-stream/Cargo.toml
@@ -13,7 +13,7 @@ categories = ["cryptography", "no-std"]
rust-version = "1.81"
[dependencies]
-aead = { version = "=0.6.0-rc.0", default-features = false, features = ... | 2 | 301 | 10 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.