Skip to content

Commit

Permalink
Reapply "Tokio"
Browse files Browse the repository at this point in the history
This reverts commit 7891d28.
  • Loading branch information
lukas0008 committed Aug 7, 2024
1 parent 7891d28 commit f1b7d64
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
13 changes: 13 additions & 0 deletions Cargo.lock

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

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ edition = "2021"

[profile.release]
lto = true

[workspace.dependencies]
tokio = { version = "1.39.2", features = ["net", "macros", "rt-multi-thread", "fs", "io-util"] }
3 changes: 1 addition & 2 deletions pumpkin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,4 @@ crossbeam-channel = "0.5.13"

uuid = { version = "1.10", features = ["serde"]}



tokio.workspace = true
3 changes: 2 additions & 1 deletion pumpkin/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ pub mod server;
pub mod util;

#[cfg(not(target_os = "wasi"))]
fn main() -> io::Result<()> {
#[tokio::main]
async fn main() -> io::Result<()> {
use std::{cell::RefCell, time::Instant};

let time = Instant::now();
Expand Down

0 comments on commit f1b7d64

Please sign in to comment.