-
-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
60 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
mod app_error; | ||
mod session; | ||
mod systems; | ||
pub mod systems; | ||
|
||
pub use app_error::*; | ||
pub use session::*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
mod app_error; | ||
mod session; | ||
mod systems; | ||
|
||
use session::MoonSession; | ||
use starbase::tracing::TracingOptions; | ||
use starbase::{App, MainResult}; | ||
use starbase_utils::string_vec; | ||
|
||
#[tokio::main] | ||
async fn main() -> MainResult { | ||
let app = App::default(); | ||
app.setup_diagnostics(); | ||
|
||
let _guard = app.setup_tracing(TracingOptions { | ||
filter_modules: string_vec!["moon", "proto", "schematic", "starbase", "warpgate"], | ||
log_env: "MOON_LOG".into(), | ||
// log_file: cli.log_file.clone(), | ||
// test_env: "MOON_TEST".into(), | ||
..TracingOptions::default() | ||
}); | ||
|
||
let mut session = MoonSession::new(); | ||
|
||
app.run(&mut session, |s| async move { | ||
dbg!(&s); | ||
println!("Hello"); | ||
|
||
Ok(()) | ||
}) | ||
.await?; | ||
|
||
Ok(()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters