From 09d3db9f9beefb032b7fdaeea0f84d809b65916f Mon Sep 17 00:00:00 2001 From: Temirkhan Myrzamadi Date: Fri, 31 Jul 2020 21:43:28 +0600 Subject: [PATCH] Fix Cargo.toml files in the examples --- README.md | 2 +- examples/admin_bot/Cargo.toml | 3 +-- examples/dialogue_bot/Cargo.toml | 8 +++++--- examples/dices_bot/Cargo.toml | 2 +- examples/heroku_ping_pong_bot/Cargo.toml | 5 ++--- examples/ngrok_ping_pong_bot/Cargo.toml | 4 +--- examples/redis_remember_bot/Cargo.toml | 4 +++- examples/shared_state_bot/Cargo.toml | 5 ++--- examples/simple_commands_bot/Cargo.toml | 3 +-- 9 files changed, 17 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index c6bf09b7..5422502b 100644 --- a/README.md +++ b/README.md @@ -82,7 +82,7 @@ teloxide-macros = "0.3.2" log = "0.4.8" pretty_env_logger = "0.4.0" -tokio = "0.2.11" +tokio = { version = "0.2.11", features = ["rt-threaded", "macros"] } ``` ## API overview diff --git a/examples/admin_bot/Cargo.toml b/examples/admin_bot/Cargo.toml index cbbe1b8d..3a4950a8 100644 --- a/examples/admin_bot/Cargo.toml +++ b/examples/admin_bot/Cargo.toml @@ -8,9 +8,8 @@ edition = "2018" [dependencies] log = "0.4.8" -futures = "0.3.4" -tokio = "0.2.9" pretty_env_logger = "0.4.0" +tokio = { version = "0.2.11", features = ["rt-threaded", "macros"] } teloxide = { path = "../../" } [profile.release] diff --git a/examples/dialogue_bot/Cargo.toml b/examples/dialogue_bot/Cargo.toml index 7defcc1b..1f08c16a 100644 --- a/examples/dialogue_bot/Cargo.toml +++ b/examples/dialogue_bot/Cargo.toml @@ -8,16 +8,18 @@ edition = "2018" [dependencies] log = "0.4.8" -tokio = "0.2.9" +pretty_env_logger = "0.4.0" frunk = "0.3.1" frunk_core = "0.3.1" -pretty_env_logger = "0.4.0" futures = "0.3.5" -derive_more = "0.99.9" +tokio = { version = "0.2.11", features = ["rt-threaded", "macros"] } + teloxide = { path = "../../", features = ["frunk"] } teloxide-macros = "0.3.2" +derive_more = "0.99.9" + [profile.release] lto = true diff --git a/examples/dices_bot/Cargo.toml b/examples/dices_bot/Cargo.toml index a5db82ee..3c2a6ed8 100644 --- a/examples/dices_bot/Cargo.toml +++ b/examples/dices_bot/Cargo.toml @@ -8,8 +8,8 @@ edition = "2018" [dependencies] log = "0.4.8" -tokio = "0.2.9" pretty_env_logger = "0.4.0" +tokio = { version = "0.2.11", features = ["rt-threaded", "macros"] } teloxide = { path = "../../" } [profile.release] diff --git a/examples/heroku_ping_pong_bot/Cargo.toml b/examples/heroku_ping_pong_bot/Cargo.toml index d5d8d1f1..d568e8a8 100644 --- a/examples/heroku_ping_pong_bot/Cargo.toml +++ b/examples/heroku_ping_pong_bot/Cargo.toml @@ -8,10 +8,9 @@ edition = "2018" [dependencies] log = "0.4.8" -futures = "0.3.4" -tokio = "0.2.9" pretty_env_logger = "0.4.0" -teloxide = { path = "../../" } +tokio = { version = "0.2.11", features = ["rt-threaded", "macros"] } +teloxide = { path = "../../" } # Used to setup a webhook warp = "0.2.2" diff --git a/examples/ngrok_ping_pong_bot/Cargo.toml b/examples/ngrok_ping_pong_bot/Cargo.toml index 31d91b31..9522426f 100644 --- a/examples/ngrok_ping_pong_bot/Cargo.toml +++ b/examples/ngrok_ping_pong_bot/Cargo.toml @@ -8,10 +8,8 @@ edition = "2018" [dependencies] log = "0.4.8" -futures = "0.3.4" -tokio = "0.2.9" pretty_env_logger = "0.4.0" - +tokio = { version = "0.2.11", features = ["rt-threaded", "macros"] } teloxide = { path = "../../" } # Used to setup a webhook diff --git a/examples/redis_remember_bot/Cargo.toml b/examples/redis_remember_bot/Cargo.toml index 12e62055..6927b9d8 100644 --- a/examples/redis_remember_bot/Cargo.toml +++ b/examples/redis_remember_bot/Cargo.toml @@ -5,7 +5,9 @@ authors = ["Maximilian Siling "] edition = "2018" [dependencies] -tokio = "0.2.9" +log = "0.4.8" +pretty_env_logger = "0.4.0" +tokio = { version = "0.2.11", features = ["rt-threaded", "macros"] } # You can also choose "cbor-serializer" or built-in JSON serializer teloxide = { path = "../../", features = ["redis-storage", "bincode-serializer"] } diff --git a/examples/shared_state_bot/Cargo.toml b/examples/shared_state_bot/Cargo.toml index 136c2ec0..fc26da82 100644 --- a/examples/shared_state_bot/Cargo.toml +++ b/examples/shared_state_bot/Cargo.toml @@ -8,7 +8,6 @@ edition = "2018" [dependencies] log = "0.4.8" -tokio = "0.2.9" pretty_env_logger = "0.4.0" -lazy_static = "1.4.0" -teloxide = { path = "../../" } \ No newline at end of file +tokio = { version = "0.2.11", features = ["rt-threaded", "macros"] } +teloxide = { path = "../../" } diff --git a/examples/simple_commands_bot/Cargo.toml b/examples/simple_commands_bot/Cargo.toml index 6dd8047b..7acc2030 100644 --- a/examples/simple_commands_bot/Cargo.toml +++ b/examples/simple_commands_bot/Cargo.toml @@ -8,7 +8,6 @@ edition = "2018" [dependencies] log = "0.4.8" -futures = "0.3.4" -tokio = "0.2.9" pretty_env_logger = "0.4.0" +tokio = { version = "0.2.11", features = ["rt-threaded", "macros"] } teloxide = { path = "../../" }