Releases: Leandros/ferrunix
Releases · Leandros/ferrunix
v0.5.1
0.5.1 - 2025-04-25
🐛 Bug Fixes
- Remove development feature from
ferrunix-macros
, speeding up compilation
0.5.0 - 2025-04-25
🚀 Features
- BREAKING: Registration and retrieval functions renamed, to follow Rust
API guidelines:Registry::transient
->Registry::register_transient
Registry::singleton
->Registry::register_singleton
Registry::get_transient
->Registry::transient
Registry::get_singleton
->Registry::singleton
- Fallible registration functions added. Registration may now return
Result<T, Err>
instead of onlyT
.Registry::try_register_transient
Registry::try_register_singleton
- Support for nested/child registries.
Registry::child
v0.4.0
0.4.0 - 2025-03-26
🚀 Features
- Singleton created via
#[derive]
now supportdyn
types- BREAKING:
dyn
types are now automatically wrapped in aBox
:Box<dyn T>
,
which requires all users to now retrieve singletons using the new type:registry.get_singleton::<Box<dyn T>>
- BREAKING:
🐛 Bug Fixes
- Remove unused tests
- Fix singleton behavior with derive macro
v0.3.1
[0.3.1] - 2024-11-05
🐛 Bug Fixes
- Publish
ferrunix
v0.3.1 which depends on an updatedferrunix-macros
Full Changelog: v0.3.0...v0.3.1
v0.3.0
[0.3.0] - 2024-11-05
MSRV is bumped from 1.64.0
to 1.67.1
. MSRV with tokio
enabled is 1.75.0
.
🚀 Features
- Add support for
async
constructors. Enabled with thetokio
feature. - Detect loops and missing dependency in the dependency graph, detected by
Registry::validate_all
/Registry::validate_all_full
. - Constructor of singletons is now
FnOnce
. - Much less restrictive type bounds. Bounds for single-threaded registry is
only'static
, bounds for multi-threaded registry isSend + 'static
,
bounds for async areSend + Sync + 'static
. - Test all documentation code using newly introduced
doc-tests
sub-crate. - Working
#[derive(Inject)]
macro.
🐛 Bug Fixes
- Results of validations are cached correctly.
- All features are now additive. Priority of features is as follows:
tokio
>
multithread
>default
. - Updated examples.
Full Changelog: v0.2.0...v0.3.0
Initial Pre-Release
Full Changelog: https://github.com/Leandros/ferrunix/commits/v0.2.0
Changelog
All notable changes to this project will be documented in this file.
[0.2.0] - 2024-10-16
🚀 Features
- Mostly working proc-macro
- Allow simplified trait object syntax
- Add
multithread
feature
🐛 Bug Fixes
- Ci badge
- Specify version of dependency for publishing
- Specify ferrunix-macros version
- Required minimal versions
- Disable miri strict provenance
- Failing test
- Book upload
- Remaining lints
- Breaking minversion
- Disable
unsync
if not required - Build on rust 1.64
- Ci failing
- Panic in cmd! proc-macro
📚 Documentation
- Dependency builder
- Add initial documentation
- Update readme example
- Update readme license agreement
- Fix main readme
- Add license shield to readme
- Update readme
🧪 Testing
- Better attr test
- Improved derive macro tests
- Add unit tests for utils