Skip to content
Snippets Groups Projects
Commit 1b2a288e authored by Dorian Weber's avatar Dorian Weber
Browse files

Removed the `main.rs` from the odem-rs library crate.

parent 07721c32
Branches
No related merge requests found
#![allow(dead_code, unused_imports, internal_features)]
use core::{cell::Cell, pin::pin};
use odem_rs::prelude::*;
use tracing::{debug, info, Level};
async fn sim_main(sim: &Sim) -> f64 {
debug!("begin");
debug!("end");
sim.now()
}
fn main() {
tracing_subscriber::fmt()
.with_max_level(Level::DEBUG)
.with_target(false)
.with_timer(model_time!("[{time:#.1}]"))
.init();
let result = Simulator::default().run(sim_main);
println!("model_time: {}", result.unwrap().display());
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment