Skip to content

Commit

Permalink
added eyre
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbchron committed Jan 29, 2024
1 parent ff6d069 commit 1679d55
Show file tree
Hide file tree
Showing 4 changed files with 137 additions and 1 deletion.
128 changes: 128 additions & 0 deletions engine/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions engine/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ members = ["crates/engine"]

[workspace.dependencies]
tokio = { version = "1.35.1", features = ["full"] }
color-eyre = "0.6.2"
1 change: 1 addition & 0 deletions engine/crates/engine/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ edition = "2021"

[dependencies]
tokio.workspace = true
color-eyre.workspace = true
8 changes: 7 additions & 1 deletion engine/crates/engine/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
use color_eyre::eyre::Result;

#[tokio::main]
async fn main() {
async fn main() -> Result<()> {
color_eyre::install()?;

println!("Hello, world!");

Ok(())
}

0 comments on commit 1679d55

Please sign in to comment.