From 673b24e2a01c31ec9c934733579cd97ed1267b76 Mon Sep 17 00:00:00 2001 From: Louis Wyborn Date: Thu, 7 Sep 2023 18:40:25 +0100 Subject: [PATCH] Prepare 0.9.0 for release --- README.md | 4 +++- RELEASES.md | 5 +++++ multi_index_map/Cargo.toml | 4 ++-- multi_index_map_derive/Cargo.toml | 2 +- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6ed45b4..0deec59 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,9 @@ Current implementation supports: This crate provides a derive macro `MultiIndexMap`, which when applied to the struct representing an element will generate a map to store and access these elements. Annotations are used to specify which fields to index. Currently `hashed_unique`, `hashed_non_unique`, `ordered_unique`, and `ordered_non_unique` are supported. The types of all indexed fields must implement `Clone`. -If the MultiIndexMap needs to be cloned, `Clone` must be implemented manually, see `examples/main.rs` for an example of how to do this. +If the MultiIndexMap needs to be cloned, `Clone` can be implemented manually, or if nightly rust is used, the feature `trivial_bounds` can be enabled. +This will autoderive implementations of both `Debug` and `Clone` where possible. +See `examples/main.rs` for an example of how to do it both ways. ## Example diff --git a/RELEASES.md b/RELEASES.md index 978b667..e4cfe4b 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1,3 +1,8 @@ +Version 0.9.0 (2023-09-07) +========================== + +- Add `trivial_bounds` feature to automatically derive Debug and Clone impls if all elements support Debug and Clone. This feature requires nightly rust, because it uses the `trivial_bounds` nightly feature. + Version 0.8.1 (2023-08-30) ========================== diff --git a/multi_index_map/Cargo.toml b/multi_index_map/Cargo.toml index bdfb076..4a79f31 100644 --- a/multi_index_map/Cargo.toml +++ b/multi_index_map/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "multi_index_map" -version = "0.8.1" +version = "0.9.0" edition = "2021" authors = ["Louis Wyborn "] rust-version = "1.62" @@ -14,7 +14,7 @@ readme = "README.md" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -multi_index_map_derive = { version = "0.8.1", path = "../multi_index_map_derive" } +multi_index_map_derive = { version = "0.9.0", path = "../multi_index_map_derive" } # Used as the backing store of all the elements. slab = { version = "0.4" } diff --git a/multi_index_map_derive/Cargo.toml b/multi_index_map_derive/Cargo.toml index 7eeeee1..001a167 100644 --- a/multi_index_map_derive/Cargo.toml +++ b/multi_index_map_derive/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "multi_index_map_derive" -version = "0.8.1" +version = "0.9.0" edition = "2021" authors = ["Louis Wyborn "] rust-version = "1.62"