Skip to content

v0.5.0

Choose a tag to compare

@github-actions github-actions released this 11 May 19:54
· 3 commits to release since this release
4549672

Changes

New Features

Add `Init` trait for post-construction service initialization 4549672
  • Init trait with init(&self, &ServiceProvider) for one-time setup
  • ServiceBuilder::with_init::<T>() registers init closures in order
  • ServiceProvider::init() runs closures; returns AlreadyInitialized on repeat call
  • InitError enum with Init and AlreadyInitialized variants

Refactor

Route macro-generated paths through `prelude` module f0cdde2
  • Generated impls now reference ::studiole_di::prelude:: instead of ::studiole_di::
  • Remove redundant root-level re-exports from lib.rs