lifecycle 0.1.0

Rust implementation of https://github.com/stuartsierra/component
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::tests::mocks::{ConfigOptions, ExampleSystem};
use crate::Lifecycle;

#[test]
fn example_system() {
    let config_options = ConfigOptions::new("localhost", "3000");

    let system = ExampleSystem::new(config_options);

    let system = system.start();

    system.stop();
}