Closed commonsensesoftware closed 11 months ago
2 files ± 0 6 suites ±0 0s :stopwatch: ±0s 95 tests +27 95 :heavy_check_mark: +27 0 :zzz: ±0 0 :x: ±0 189 runs +54 189 :heavy_check_mark: +54 0 :zzz: ±0 0 :x: ±0
Results for commit 487414f6. ± Comparison against base commit 30b74e8c.
This PR started as an experiment to add keyed services, but has now introduced a number of core features that will now form the basis of 3.0
Features
'static
lifetime requirement in generic type arguments (fordyn Any
)Fn
tofn
which removes the explicit'static
lifetime on closures (that should be stateless anyway)ServiceDescriptorBuilder
has moved to the builder featureServiceProvider
by convention using declared typeScopedServiceProvider
Injectable
:struct
definitionstruct
impl Iterator<Item>
(as opposed to justVec
) in injected constructorsInjectable::inject
now returnsInjectBuilder
which also allows:with_key<TKey>()
as_mut()
Debug
toServiceCollection
Display
with colorized terminal output is also supported