aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-11-28 21:01:37 +0100
committerHampusM <hampus@hampusmat.com>2022-11-28 21:02:14 +0100
commitc40f03d29f01ccdbed367b594a0eaf031877efc1 (patch)
treeb2eb77135a2263a39204625d40de945a6aee9b9e
parent9f27a925bd323e8e0864bedeb33a3c6953517ea1 (diff)
build: bump versions to 0.4.2v0.4.2
-rw-r--r--CHANGELOG.md40
-rw-r--r--Cargo.toml4
-rw-r--r--macros/Cargo.toml4
3 files changed, 44 insertions, 4 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 799d342..f1f2c43 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,46 @@
## Unreleased
+## v0.4.2 - 2022-11-28
+### Bug Fixes
+- allow for concrete type interfaces to be marked async
+- make factories work again after Rust nightly-2022-11-07
+- allow declaring a concrete type as it's own interface
+- allow injectable macro flag arguments without a interface argument
+
+### Build System/Dependency Changes
+- bump versions to 0.4.2
+- fix running macros tests on Rust stable
+
+### Code Refactoring
+- reorganize non-public API items
+- use the async-lock crate instead of Tokio
+- improve type param names, docs & more of casting
+- fix some Clippy lints regarding format!()
+- fix unused self clippy lint in blocking DI container
+- improve cast error handling
+- improve readability of cast functions
+
+### Code Testing
+- replace the test_util_macros crate with utility-macros
+- add unit test for create_caster_fn_ident
+- add unit tests for parsing injectable macro args
+- remove some unused imports
+- add unit tests for parsing declare_interface macro args
+- add unit test for parsing factory type aliases
+- make small improvements in the declare_default_factory macro args tests
+- add unit tests for parsing factory macro args
+- add unit tests for parsing declare_default_factory macro args
+- split up cast unit tests into their respective modules
+
+### Documentation Changes
+- add a example to the crate root
+- add terminology guide to readme
+- add msrv
+- add arguments for IoC & DI to readme
+- add comments explaining the prevent-circular example
+
+
## v0.4.1 - 2022-10-30
### Bug Fixes
- remove unused Rust feature flag
diff --git a/Cargo.toml b/Cargo.toml
index 2f6f9c7..ced765a 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "syrette"
-version = "0.4.1"
+version = "0.4.2"
license = "MIT OR Apache-2.0"
authors = ["HampusM <hampus@hampusmat.com>"]
description = "The convenient dependency injection framework"
@@ -40,7 +40,7 @@ name = "prevent-circular"
required-features = ["prevent-circular"]
[dependencies]
-syrette_macros = { path = "./macros", version = "0.4.0" }
+syrette_macros = { path = "./macros", version = "0.4.2" }
linkme = "0.3.0"
once_cell = "1.4"
ahash = "0.7.6"
diff --git a/macros/Cargo.toml b/macros/Cargo.toml
index 4028263..3299983 100644
--- a/macros/Cargo.toml
+++ b/macros/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "syrette_macros"
-version = "0.4.1"
+version = "0.4.2"
license = "MIT OR Apache-2.0"
authors = ["HampusM <hampus@hampusmat.com>"]
description = "Macros for Syrette, the convenient dependency injection framework"
@@ -29,7 +29,7 @@ once_cell = "1.13.1"
thiserror = "1.0.37"
[dev_dependencies]
-syrette = { version = "0.4.1", path = ".." }
+syrette = { version = "0.4.2", path = ".." }
mockall = "0.11.1"
pretty_assertions = "1.3.0"
syn = { version = "1.0.96", features = ["full", "extra-traits"] }