Artifice Installer - Installer for the Artifice Network

description

this crate serves as the installer for the artifice network, however it can also be used as a simple task scheduler

dependcies

toml [dependencies] installer = "*" manager = "*"

Example

```rust use manager::{ArtificeDB, Database}; use installer::installation::*; use std::time::Duration; use manager::database::ArtificePeers; use std::io::{Read, Write}; use networking::ArtificeConfig;

fn main(){ let database = ArtificeDB::create("/home/user/.artifice").unwrap(); let password = "helloworld".tostring(); let mut installer = Installer::new(InstallationSrc::NewCompiled, database, 4, Duration::fromsecs(5000000)); let firsttask = Task::::new(1, "create", move |database, schedule|{ let peers: ArtificePeers = database.createtable("peers".tostring(), &password.clone().intobytes())?; let config: ArtificeConfig = database.loadentry("config".tostring(), &password.clone().intobytes())?; Ok(()) }); installer.addtask(firsttask); installer.run(); } ```