Skip to content

Commit

Permalink
Prepare 0.9.0 for release
Browse files Browse the repository at this point in the history
  • Loading branch information
lun3x committed Sep 7, 2023
1 parent 4087ba8 commit 673b24e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 5 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
@@ -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)
==========================

Expand Down
4 changes: 2 additions & 2 deletions multi_index_map/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "multi_index_map"
version = "0.8.1"
version = "0.9.0"
edition = "2021"
authors = ["Louis Wyborn <louiswyborn@gmail.com>"]
rust-version = "1.62"
Expand All @@ -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" }
Expand Down
2 changes: 1 addition & 1 deletion multi_index_map_derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "multi_index_map_derive"
version = "0.8.1"
version = "0.9.0"
edition = "2021"
authors = ["Louis Wyborn <louiswyborn@gmail.com>"]
rust-version = "1.62"
Expand Down

0 comments on commit 673b24e

Please sign in to comment.