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
somewhere in the dependency tree.default-features = false - 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.