Skip to content

Commit

Permalink
release 0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
audunhalland committed Dec 10, 2022
1 parent 0035c0f commit 418ead8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}`.
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "entrait"
version = "0.5.0-alpha.1"
version = "0.5.0"
authors = ["Audun Halland <[email protected]>"]
edition = "2021"
license = "MIT"
Expand All @@ -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 }
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion entrait_macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "entrait_macros"
version = "0.5.0-alpha.1"
version = "0.5.0"
authors = ["Audun Halland <[email protected]>"]
edition = "2021"
license = "MIT"
Expand Down

0 comments on commit 418ead8

Please sign in to comment.