updated examples

This commit is contained in:
famfo 2021-12-30 14:01:16 +01:00
parent 0e62b364d4
commit ca573f8eeb
3 changed files with 3 additions and 23 deletions

View file

@ -4,7 +4,7 @@ version = 3
[[package]]
name = "async-circe"
version = "0.1.5"
version = "0.1.1"
dependencies = [
"tokio",
"tracing",
@ -30,15 +30,6 @@ dependencies = [
"tokio",
]
[[package]]
name = "hermit-abi"
version = "0.1.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33"
dependencies = [
"libc",
]
[[package]]
name = "lazy_static"
version = "1.4.0"
@ -97,16 +88,6 @@ dependencies = [
"winapi",
]
[[package]]
name = "num_cpus"
version = "1.13.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "19e64526ebdee182341572e50e9ad03965aa510cd94427a4549448f285e957a1"
dependencies = [
"hermit-abi",
"libc",
]
[[package]]
name = "pin-project-lite"
version = "0.2.7"
@ -152,7 +133,6 @@ dependencies = [
"libc",
"memchr",
"mio",
"num_cpus",
"pin-project-lite",
"tokio-macros",
"winapi",

View file

@ -6,7 +6,7 @@ edition = "2021"
[dependencies.tokio]
version = "1.15"
features = ["macros", "rt-multi-thread"]
features = ["macros", "rt"]
[dependencies.async-circe]
path = "../.."

View file

@ -1,6 +1,6 @@
use async_circe::{commands::Command, Client, Config};
#[tokio::main]
#[tokio::main(flavor = "current_thread")]
async fn main() -> Result<(), tokio::io::Error> {
let config = Config::new(
&["#main", "#no-normies"],