Skip to content

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 25 Mar 13:23
· 7 commits to release since this release
cee6bd2

Changes

New Features

Warning

Breaking Change: Complete rewrite to support sync and async constructors, resolve by type or trait, and singleton or transient scopes cee6bd2
  • Replace async Service trait with sync FromServices and async FromServicesAsync
  • Add ServiceBuilder with singleton/transient scope via with_type/with_type_transient
  • Add trait object resolution via Unsize coercion behind traits feature (nightly)
  • Add async feature for FromServicesAsync, get_async, and get_trait_async
  • Rewrite di-macros with #[derive(FromServices)], #[derive(FromServicesAsync)], and #[di(default)]
  • Add migration guide, updated README, and rust-toolchain.toml