update with refactored mozaic
This commit is contained in:
parent
2fb497236a
commit
9b2faccfd2
4 changed files with 9 additions and 8 deletions
|
@ -28,7 +28,7 @@ fn main() {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
use mozaic::server::runtime::{Broker};
|
use mozaic::runtime::{Broker};
|
||||||
use rand::Rng;
|
use rand::Rng;
|
||||||
use errors::Consumable;
|
use errors::Consumable;
|
||||||
use mozaic::modules::ConnectionManager;
|
use mozaic::modules::ConnectionManager;
|
||||||
|
|
|
@ -7,7 +7,7 @@ edition = "2018"
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
mozaic = { git = "https://github.com/ajuvercr/MOZAIC" }
|
mozaic = { git = "https://github.com/ZeusWPI/MOZAICP" }
|
||||||
tokio = "0.1.22"
|
tokio = "0.1.22"
|
||||||
capnp = "0.10.1"
|
capnp = "0.10.1"
|
||||||
futures = "0.1.28"
|
futures = "0.1.28"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
rm bot*.txt
|
rm bot*.txt
|
||||||
cargo run $1 python simple.py
|
cargo run $1 python3 simple.py
|
||||||
|
|
|
@ -15,10 +15,11 @@ use mozaic::core_capnp::{initialize, terminate_stream, identify, actor_joined};
|
||||||
use mozaic::messaging::reactor::*;
|
use mozaic::messaging::reactor::*;
|
||||||
use mozaic::messaging::types::*;
|
use mozaic::messaging::types::*;
|
||||||
use mozaic::errors::*;
|
use mozaic::errors::*;
|
||||||
use mozaic::client_capnp::{client_message, host_message, client_kicked};
|
use mozaic::base_capnp::{client_message, host_message};
|
||||||
use mozaic::mozaic_cmd_capnp::{bot_input, bot_return};
|
use mozaic::connection_capnp::client_kicked;
|
||||||
use mozaic::server::runtime::{Broker, BrokerHandle};
|
use mozaic::cmd_capnp::{bot_input, bot_return};
|
||||||
use mozaic::server;
|
use mozaic::runtime::{Broker, BrokerHandle};
|
||||||
|
use mozaic::runtime;
|
||||||
use mozaic::modules::{BotReactor};
|
use mozaic::modules::{BotReactor};
|
||||||
|
|
||||||
use std::env;
|
use std::env;
|
||||||
|
@ -44,7 +45,7 @@ fn main() {
|
||||||
};
|
};
|
||||||
broker.spawn(self_id.clone(), reactor.params(), "main").display();
|
broker.spawn(self_id.clone(), reactor.params(), "main").display();
|
||||||
|
|
||||||
tokio::spawn(server::connect_to_server(broker, self_id, &addr));
|
tokio::spawn(runtime::connect_to_server(broker, self_id, &addr));
|
||||||
Ok(())
|
Ok(())
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue