From 4cb3884e24b3cba3347ff93475bbabd6fe18d2fa Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 22 Jul 2022 13:25:45 +0200 Subject: refactor: make factories an optional feature --- examples/basic/interfaces/cow.rs | 10 ---------- examples/basic/interfaces/mod.rs | 1 - 2 files changed, 11 deletions(-) delete mode 100644 examples/basic/interfaces/cow.rs (limited to 'examples/basic/interfaces') diff --git a/examples/basic/interfaces/cow.rs b/examples/basic/interfaces/cow.rs deleted file mode 100644 index 59ce7b1..0000000 --- a/examples/basic/interfaces/cow.rs +++ /dev/null @@ -1,10 +0,0 @@ -use syrette::factory; -use syrette::interfaces::factory::IFactory; - -pub trait ICow -{ - fn moo(&self); -} - -#[factory] -pub type CowFactory = dyn IFactory<(i32,), dyn ICow>; diff --git a/examples/basic/interfaces/mod.rs b/examples/basic/interfaces/mod.rs index 6511d17..5444978 100644 --- a/examples/basic/interfaces/mod.rs +++ b/examples/basic/interfaces/mod.rs @@ -1,4 +1,3 @@ pub mod cat; -pub mod cow; pub mod dog; pub mod human; -- cgit v1.2.3-18-g5258