Cargo Features

[dependencies]
syrette = { version = "0.5.1", default-features = false, features = ["factory", "prevent-circular", "async"] }
default = prevent-circular

The prevent-circular feature is set by default whenever syrette is added without default-features = false somewhere in the dependency tree.

factory

Enables factory of syrette_macros

Affects builder::BoxFn, private::any_factory, private::factory, private::castable_factory, async::AsyncFactoryVariant, async::AsyncFactoryProvider, blocking::FactoryProvider, ptr::FactoryPtr, ptr::ThreadsafeFactoryPtr

prevent-circular default

Enables prevent-circular of syrette_macros

async

Enables async-lock ^2.6.0 and async-trait, async of syrette_macros

Affects di_container::asynchronous, errors::async_di_container, interfaces::async_injectable, syrette::future, castable_factory::threadsafe, factory::IThreadsafeFactory, provider::r#async, test_utils::subjects_async, test_utils::mocks.async_provider