Cargo Features

[dependencies]
springtime-di = { version = "1.0.2", default-features = false, features = ["async", "threadsafe", "derive"] }
default = derive, threadsafe

These default features are set whenever springtime-di is added without default-features = false somewhere in the dependency tree.

async = futures

Enables async of springtime-di-derive

Affects component::Component.create, component_registry::Constructor, instance_provider::ComponentInstanceProvider, instance_provider::TypedComponentInstanceProvider, springtime-di::future

threadsafe default

Enables threadsafe of springtime-di-derive

Affects factory::ComponentDefinitionRegistryPtr, factory::ScopeFactoryPtr, instance_provider::ErrorPtr, instance_provider::ComponentInstancePtr, instance_provider::ComponentInstanceAnyPtr, scope::ScopePtr

derive default = springtime-di-derive

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

futures async?
springtime-di-derive async? derive threadsafe