macro_rules! runtime {
($project:expr) => { ... };
}Expand description
Create a new runtime, using the local crate as component.
use drogue_bazaar::{project, runtime, app::{Main, Startup}};
project!(PROJECT: "Drogue IoT");
#[derive(serde::Deserialize)]
struct Config {}
async fn run(config: Config, startup: &mut dyn Startup) -> anyhow::Result<()> {
Ok(())
}
fn main() {
let runtime = runtime!(PROJECT)
.exec(run);
}