From 88a6d31399bd14da6574471a8df4423e63ef340f Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 14 Sep 2023 22:00:34 +0200 Subject: refactor!: remove blocking DI container prelude module BREAKING CHANGE: The blocking DI container prelude module have been removed as it is no longer necessary seeing as the blocking DI container interface have been removed --- examples/basic/bootstrap.rs | 2 +- examples/factory/bootstrap.rs | 2 +- examples/generics/bootstrap.rs | 3 +-- examples/named/bootstrap.rs | 2 +- examples/with-3rd-party/bootstrap.rs | 3 +-- 5 files changed, 5 insertions(+), 7 deletions(-) (limited to 'examples') diff --git a/examples/basic/bootstrap.rs b/examples/basic/bootstrap.rs index 1cad500..2c45676 100644 --- a/examples/basic/bootstrap.rs +++ b/examples/basic/bootstrap.rs @@ -1,7 +1,7 @@ use std::error::Error; use std::rc::Rc; -use syrette::di_container::blocking::prelude::*; +use syrette::DIContainer; use crate::animals::cat::Cat; use crate::animals::dog::Dog; diff --git a/examples/factory/bootstrap.rs b/examples/factory/bootstrap.rs index e535dd2..f8bef6e 100644 --- a/examples/factory/bootstrap.rs +++ b/examples/factory/bootstrap.rs @@ -1,8 +1,8 @@ use std::error::Error; use std::rc::Rc; -use syrette::di_container::blocking::prelude::*; use syrette::ptr::TransientPtr; +use syrette::DIContainer; use crate::interfaces::user::{IUser, IUserFactory}; use crate::interfaces::user_manager::IUserManager; diff --git a/examples/generics/bootstrap.rs b/examples/generics/bootstrap.rs index 4034aa8..98d03db 100644 --- a/examples/generics/bootstrap.rs +++ b/examples/generics/bootstrap.rs @@ -1,7 +1,6 @@ use std::rc::Rc; -use syrette::di_container::blocking::prelude::*; -use syrette::di_container_bind; +use syrette::{di_container_bind, DIContainer}; use crate::interfaces::printer::IPrinter; use crate::printer::Printer; diff --git a/examples/named/bootstrap.rs b/examples/named/bootstrap.rs index f7edc5d..5f63b47 100644 --- a/examples/named/bootstrap.rs +++ b/examples/named/bootstrap.rs @@ -1,7 +1,7 @@ use std::rc::Rc; use anyhow::Result; -use syrette::di_container::blocking::prelude::*; +use syrette::DIContainer; use crate::interfaces::ninja::INinja; use crate::interfaces::weapon::IWeapon; diff --git a/examples/with-3rd-party/bootstrap.rs b/examples/with-3rd-party/bootstrap.rs index 9a55eb1..4fea754 100644 --- a/examples/with-3rd-party/bootstrap.rs +++ b/examples/with-3rd-party/bootstrap.rs @@ -1,9 +1,8 @@ use std::error::Error; use std::rc::Rc; -use syrette::declare_default_factory; -use syrette::di_container::blocking::prelude::*; use syrette::ptr::TransientPtr; +use syrette::{declare_default_factory, DIContainer}; use third_party_lib::Shuriken; use crate::interfaces::ninja::INinja; -- cgit v1.2.3-18-g5258