diff --git a/Cargo.lock b/Cargo.lock index 612405e..241578f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -159,6 +159,7 @@ dependencies = [ "blocking", "futures-lite", "once_cell", + "tokio", ] [[package]] @@ -1836,6 +1837,16 @@ dependencies = [ "libm", ] +[[package]] +name = "num_cpus" +version = "1.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4161fcb6d602d4d2081af7c3a45852d875a03dd337a6bfdd6e06407b61342a43" +dependencies = [ + "hermit-abi", + "libc", +] + [[package]] name = "once_cell" version = "1.17.1" @@ -3161,6 +3172,7 @@ dependencies = [ "bytes", "libc", "mio", + "num_cpus", "pin-project-lite 0.2.9", "socket2 0.4.9", "tokio-macros", diff --git a/Cargo.toml b/Cargo.toml index 33582a2..0139f2d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,7 @@ dotenvy = "0.15.7" # For tide tide = "0.16.0" -async-std = { version = "1.12.0", features = ["attributes"] } +async-std = { version = "1", features = ["attributes", "tokio1"] } serde = { version = "1.0", features = ["derive"] } # For sqlite