diff --git a/Cargo.toml b/Cargo.toml index 05d2901..52d4b63 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lifeline" -version = "0.2.0" +version = "0.2.1" description = "Lifeline is a dependency injection library for message-based applications." keywords = ["async", "tokio", "async", "actor", "actors"] categories = ["Asynchronous", "Rust patterns"] diff --git a/src/bus.rs b/src/bus.rs index 42ff8c5..4d7ef07 100644 --- a/src/bus.rs +++ b/src/bus.rs @@ -12,11 +12,11 @@ pub trait Message: Debug { pub trait Resource: Storage + Debug + Send {} -pub trait Serves {} -impl Serves for B where Msg: Message {} +// pub trait Serves {} +// impl Serves for B where Msg: Message {} -pub trait Stores {} -impl Stores for B where R: Resource {} +// pub trait Stores {} +// impl Stores for B where R: Resource {} /// The bus carries pub trait Bus: Default + Debug + Sized { diff --git a/src/service.rs b/src/service.rs index 7ee13b3..c8cfa09 100644 --- a/src/service.rs +++ b/src/service.rs @@ -103,13 +103,13 @@ pub trait Task { impl Task for T {} -#[async_trait] -pub trait AsyncService: Task { - type Bus: Bus; - type Lifeline; +// #[async_trait] +// pub trait AsyncService: Task { +// type Bus: Bus; +// type Lifeline; - async fn spawn(bus: &Self::Bus) -> Self::Lifeline; -} +// async fn spawn(bus: &Self::Bus) -> Self::Lifeline; +// } // #[async_trait] // pub trait AsyncCarrier: Task {