5.9 KiB
5.9 KiB
v1.6.0 (2025-07-26)
- Features:
- Add quickcheck support, gated behind the
quickcheckfeature. - Improve performance of
RangeMap::gapsby efficiently seeking to the start of the query range.
- Add quickcheck support, gated behind the
v1.5.1 (2024-02-27)
- Fixes:
- Relax bounds on
Defaultimplementation for all map and set types. RequiringK: DefaultandV: Defaultwas accidentally introduced in v1.5.0.
- Relax bounds on
v1.5.0 (2024-02-09) "xfbs rampage edition"
Huge thanks to xfbs, who did pretty much all the work you see in the changelog below! 💖
-
Features:
- Add
unionandintersectionmethods to iterate over the union or intersection of two sets. - Add
first_range_valueandlast_range_valuemethods to map types andfirstandlastmethods to set types. - Add literal macros for all collection types — e.g.
range_set![0..100, 200..300, 400..500]. - Implement
DefaultandHashfor all collection types. - Implement
DoubleEndedIteratorfor all iterators. - Implement
From<[_; N]>(e.g.From<[Range<T>; N]> for RangeSet<T>) for all collections. (Previously you could build a collection from an iterator, but not directly from an array.) - Implement
BitOrandBitAndfor set types. (Convenience wrapper around theunionandintersectionmethods mentioned above.) - Accept any
R: Borrow<Range<K>>as argument tooverlappingmethods, allowing it to take ranges by value.
- Add
-
Changes:
- Bump minimum supported Rust version to 1.66.0 (released 2022-12-15). This is to gain access to
BTreeMap::first_key_valueandBTreeMap::last_key_value, and for compatibility with new versions of some of rangemap's test dependencies.
- Bump minimum supported Rust version to 1.66.0 (released 2022-12-15). This is to gain access to
-
Internal:
- New benchmarks and improved test coverage.
v1.4.0 (2023-09-19)
- Changes:
- Bump minimum supported Rust version to 1.61.0 (released 2022-05-19). This is for compatibility with new versions of some of rangemap's test dependencies.
v1.3.1 (2023-09-19)
- Fixes:
- Fix
PartialEq,PartialOrd, andOrdimplementations forRangeMap(andRangeSet). These previously only compared the starts of ranges instead of the entire range. Thanks to https://github.com/hecrj for finding and fixing this!
- Fix
- Changes:
- Minimum supported Rust version for running this crate's tests has increased to 1.61.0 due to a corresponding MSRV bump in a test dependency. This is causing CI builds to fail against rustc 1.56.1, but should not affect consumers of the crate. The next minor release (1.4.0) will bump the minimum supported Rust version of rangemap itself.
v1.3.0 (2023-01-03)
- Features:
- Add
overlappingmethod to all collection types, which returns an iterator over all stored entries that completely or partially overlap a given range. - Add
overlapsconvenience method to all collection types, which returns whether any stored range completely or partially overlaps a given range. - Credit to Rua for the original implementation of these new methods. (Unfortunately I couldn't use their code directly because I made other incompatible changes.) Thanks also to rumpuslabs for their engagement.
- Add
v1.2.0 (2022-12-27)
- Features:
- Add
clear,len, andis_emptymethods for all map and set types.
- Add
- Fixes:
- Make
const_fnfeature work again. (Previous release accidentally broke the const versions ofRangeMap::newandRangeSet::new.)
- Make
v1.1.0 (2022-11-12)
- Features:
- Implement
PartialEq,Eq,PartialOrd, andOrdfor all map and set types. - Make
newfunctions for all map and set typesconstwhenconst_fnfeature is enabled.
- Implement
- Changes:
- Bump minimum supported Rust version to 1.56.1. (Released a year ago.) This is for compatibility with new versions of some of rangemap's development dependencies.
v1.0.3 (2022-06-11)
- Fixes:
- Fix
Gapsiterator forRangeMapyielding an empty gap for an empty outer range. Simplified gaps logic and expanded fuzz testing to better cover this and similar cases.
- Fix
v1.0.2 (2022-05-17)
- Fixes:
- Fix empty gaps returned by
Gapsiterator forRangeInclusiveMap. Added fuzz tests forGapsiterators.
- Fix empty gaps returned by
v1.0.1 (2022-01-29)
- Fixes:
- Fix empty gaps returned by
Gapsiterator forRangeMap, and incorrect gaps returned byGapsiterator forRangeInclusiveMap.
- Fix empty gaps returned by
v1.0.0 (2022-01-28)
It's time. (No functional change.)
v0.1.14 (2021-11-16)
- Features:
- Expose nameable types for iterators:
Iterator,IntoIterator,Gaps(for each collection type).
- Expose nameable types for iterators:
- Changes:
- Document overflow behaviour required by implementors of
StepLiteandStepFns.
- Document overflow behaviour required by implementors of
v0.1.13 (2021-08-25)
- Features:
- Add serde support.
v0.1.12 (2021-08-23)
- Features:
- Implement more traits for all map and set types:
IntoIter,FromIter, andExtend.
- Implement more traits for all map and set types:
- Changes:
- Bump minimum supported Rust version to 1.46.
v0.1.11 (2021-06-30) "EOFY edition"
- Features:
- Support
no_stdenvironments.
- Support
- Changes:
- Update all dev-dependencies to latest versions.
v0.1.10 (2021-02-23)
- Fixes:
- Fix performance regression introduced in v0.1.9, which made inserts extremely slow for large maps.
v0.1.9 (2021-02-23)
- Fixes:
- Fix coalescing of contiguous ranges. In some cases
RangeMapandRangeInclusiveMapwould leave two separate contiguous ranges with the same value instead of combining them into one.
- Fix coalescing of contiguous ranges. In some cases
v0.1.8 (2020-11-22)
- Features:
- Implement
Debugfor all map and set types.
- Implement
v0.1.7 (2020-09-07)
- Features:
- Add
gapsmethod to all map and set types for iterating over sub-ranges of a given outer range that are not covered by any stored range.
- Add
v0.1.6 (2020-07-15)
- Features:
- Add
RangeInclusiveMapandRangeInclusiveSettypes for storing closed ranges.
- Add