From 418ead85763947c97f32c1f9f9634c6a629ae32e Mon Sep 17 00:00:00 2001 From: Audun Halland Date: Sat, 10 Dec 2022 02:36:26 +0100 Subject: [PATCH] release 0.5.0 --- CHANGELOG.md | 4 +++- Cargo.toml | 4 ++-- README.md | 2 +- entrait_macros/Cargo.toml | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 16abca5..edb4630 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,11 +5,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## Unreleased + +## [0.5.0] - 2022-12-10 ### Changed - Feature `async-trait` renamed to `boxed-futures`. - Feature `use-async-trait` renamed to `use-boxed-futures`. - Feature `use-associated-future` renamed to `use-associated-futures`. -- Upgrade unimock to 0.4. +- `unimock` optional dependency upgraded to `0.4`. - New entrait option `mock_api` to optionally generate a mock setup interface. ### Removed - `entrait_impl`. Replaced by `#[entrait] impl TraitImpl for MyType {}`. diff --git a/Cargo.toml b/Cargo.toml index e02f7df..18c8046 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "entrait" -version = "0.5.0-alpha.1" +version = "0.5.0" authors = ["Audun Halland "] edition = "2021" license = "MIT" @@ -18,7 +18,7 @@ boxed-futures = ["dep:async-trait"] nightly-tests = [] [dependencies] -entrait_macros = { path = "entrait_macros", version = "0.5.0-alpha.1" } +entrait_macros = { path = "entrait_macros", version = "0.5.0" } implementation = "0.1" async-trait = { version = "0.1", optional = true } unimock = { version = "0.4", optional = true } diff --git a/README.md b/README.md index 830e61e..93fa47c 100644 --- a/README.md +++ b/README.md @@ -165,7 +165,7 @@ Unimock exports a single mock struct which can be passed as argument to every fu To enable mock configuration of entraited functions, supply the `mock_api` option, e.g. `mock_api=TraitMock` if the name of the trait is `Trait`. This works the same way for entraited modules, only that those already _have_ a module to export from. -Unimock support is enabled by passing the `unimock` option to entrait (`#[entrait(Foo, unimock)]`), or turning on the `unimock` _feature_, which makes all entraited functions mockable, even in upstream crates. +Unimock support for entrait is enabled by passing the `unimock` option to entrait (`#[entrait(Foo, unimock)]`), or turning on the `unimock` _feature_, which makes all entraited functions mockable, even in upstream crates (as long as `mock_api` is provided.). ```rust #[entrait(Foo, mock_api=FooMock)] diff --git a/entrait_macros/Cargo.toml b/entrait_macros/Cargo.toml index 8d67f90..ac39f26 100644 --- a/entrait_macros/Cargo.toml +++ b/entrait_macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "entrait_macros" -version = "0.5.0-alpha.1" +version = "0.5.0" authors = ["Audun Halland "] edition = "2021" license = "MIT"