Skip to content

Commit

Permalink
Prepare v0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
greyblake committed Aug 9, 2023
1 parent 00a820b commit 3f43c7d
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 7 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## v0.3.0 - 2023-08-09
* Make `::all()` function return an array instead of vector.

## v0.2.0 - 2023-08-06
* Add `Kind` trait.

Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ The `Kinded` trait allows to build abstract functions that can be used with diff
The kind type gets implementation of `::all()` associated function, which returns a vector with all kind variants:

```rs
assert_eq!(DrinkKind::all(), vec![DrinkKind::Mate, DrinkKind::Coffee, DrinkKind::Tea]);
assert_eq!(DrinkKind::all(), [DrinkKind::Mate, DrinkKind::Coffee, DrinkKind::Tea]);
```


Expand Down
4 changes: 2 additions & 2 deletions kinded/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "kinded"
version = "0.2.0"
version = "0.3.0"
edition = "2021"
authors = ["Serhii Potapov <[email protected]>"]

Expand All @@ -16,4 +16,4 @@ categories = ["data-structures", "rust-patterns"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
kinded_macros = { version = "0.2.0", path = "../kinded_macros" }
kinded_macros = { version = "0.3.0", path = "../kinded_macros" }
2 changes: 1 addition & 1 deletion kinded/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
//! Tea { variety: String, caffeine: bool }
//! }
//!
//! assert_eq!(DrinkKind::all(), vec![DrinkKind::Mate, DrinkKind::Coffee, DrinkKind::Tea]);
//! assert_eq!(DrinkKind::all(), [DrinkKind::Mate, DrinkKind::Coffee, DrinkKind::Tea]);
//! ```
//!
//! ## Attributes
Expand Down
2 changes: 1 addition & 1 deletion kinded_macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "kinded_macros"
version = "0.2.0"
version = "0.3.0"
edition = "2021"
authors = ["Serhii Potapov <[email protected]>"]

Expand Down

0 comments on commit 3f43c7d

Please sign in to comment.