1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#![allow(unused_imports)]
#![allow(unused_variables)]

mod core;
mod event_bus;
mod interfaces;
mod patterns;
mod producer;
mod subscriber;

// use producer::Producer;
// use subscriber::Subscriber;

#[cfg(test)]
mod tests {
    #[test]
    fn it_works() {
        assert_eq!(2 + 2, 4);
    }
}

// pub struct Model;

// impl Component for Model {
//     type Message = ();
//     type Properties = ();

//     fn create(_props: Self::Properties, _link: ComponentLink<Self>) -> Self {
//         Self
//     }

//     fn change(&mut self, _msg: Self::Properties) -> ShouldRender {
//         false
//     }

//     fn update(&mut self, _props: Self::Message) -> ShouldRender {
//         unimplemented!()
//     }

//     fn view(&self) -> Html {
//         html! {
//             <>
//                 <Producer />
//                 <Subscriber />
//             </>
//         }
//     }
// }

pub mod prelude {
    pub use super::patterns::builder::*;
}