From 56e7b6feb226ca6dc2bb3bf5eb965ae23b8cb60a Mon Sep 17 00:00:00 2001 From: Maybe Waffle Date: Sun, 10 Oct 2021 14:47:21 +0300 Subject: [PATCH] Add `auto-send` to the list of default features --- Cargo.toml | 2 +- README.md | 2 +- examples/admin_bot/Cargo.toml | 2 +- examples/dialogue_bot/Cargo.toml | 2 +- examples/dices_bot/Cargo.toml | 2 +- examples/heroku_ping_pong_bot/Cargo.toml | 2 +- examples/inline_bot/Cargo.toml | 2 +- examples/ngrok_ping_pong_bot/Cargo.toml | 2 +- examples/redis_remember_bot/Cargo.toml | 2 +- examples/shared_state_bot/Cargo.toml | 2 +- examples/simple_commands_bot/Cargo.toml | 2 +- examples/sqlite_remember_bot/Cargo.toml | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 193a570b..ccedbe32 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,7 +25,7 @@ authors = [ maintenance = { status = "actively-developed" } [features] -default = ["native-tls", "ctrlc_handler", "teloxide-core/default"] +default = ["native-tls", "ctrlc_handler", "teloxide-core/default", "auto-send"] sqlite-storage = ["sqlx"] redis-storage = ["redis"] diff --git a/README.md b/README.md index e2e79c1d..67686bc5 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,7 @@ $ rustup override set nightly 5. Run `cargo new my_bot`, enter the directory and put these lines into your `Cargo.toml`: ```toml [dependencies] -teloxide = { version = "0.5", features = ["auto-send", "macros"] } +teloxide = { version = "0.5", features = ["macros"] } log = "0.4" pretty_env_logger = "0.4.0" tokio = { version = "1.8", features = ["rt-multi-thread", "macros"] } diff --git a/examples/admin_bot/Cargo.toml b/examples/admin_bot/Cargo.toml index 52c6f017..4ee67f87 100644 --- a/examples/admin_bot/Cargo.toml +++ b/examples/admin_bot/Cargo.toml @@ -7,7 +7,7 @@ edition = "2018" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -teloxide = { path = "../../", features = ["macros", "auto-send"] } +teloxide = { path = "../../", features = ["macros"] } log = "0.4.8" pretty_env_logger = "0.4.0" tokio = { version = "1.3.0", features = ["rt-multi-thread", "macros"] } diff --git a/examples/dialogue_bot/Cargo.toml b/examples/dialogue_bot/Cargo.toml index 8d2ea09a..be8d5085 100644 --- a/examples/dialogue_bot/Cargo.toml +++ b/examples/dialogue_bot/Cargo.toml @@ -7,7 +7,7 @@ edition = "2018" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -teloxide = { path = "../../", features = ["frunk", "macros", "auto-send"] } +teloxide = { path = "../../", features = ["frunk", "macros"] } futures = "0.3.5" tokio = { version = "1.3.0", features = ["rt-multi-thread", "macros"] } diff --git a/examples/dices_bot/Cargo.toml b/examples/dices_bot/Cargo.toml index 763f2c8b..b6feb4b2 100644 --- a/examples/dices_bot/Cargo.toml +++ b/examples/dices_bot/Cargo.toml @@ -7,7 +7,7 @@ edition = "2018" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -teloxide = { path = "../../", features = ["auto-send"] } +teloxide = { path = "../../" } log = "0.4.8" pretty_env_logger = "0.4.0" tokio = { version = "1.3.0", features = ["rt-multi-thread", "macros"] } diff --git a/examples/heroku_ping_pong_bot/Cargo.toml b/examples/heroku_ping_pong_bot/Cargo.toml index edcc76f5..713b4fd4 100644 --- a/examples/heroku_ping_pong_bot/Cargo.toml +++ b/examples/heroku_ping_pong_bot/Cargo.toml @@ -7,7 +7,7 @@ edition = "2018" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -teloxide = { path = "../../", features = ["auto-send"] } +teloxide = { path = "../../" } log = "0.4.8" pretty_env_logger = "0.4.0" tokio = { version = "1.3.0", features = ["rt-multi-thread", "macros"] } diff --git a/examples/inline_bot/Cargo.toml b/examples/inline_bot/Cargo.toml index 40e7281d..913b25c8 100644 --- a/examples/inline_bot/Cargo.toml +++ b/examples/inline_bot/Cargo.toml @@ -7,7 +7,7 @@ edition = "2018" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -teloxide = { path = "../../", features = ["macros", "auto-send"] } +teloxide = { path = "../../", features = ["macros"] } log = "0.4.8" pretty_env_logger = "0.4.0" tokio = { version = "1.3.0", features = ["rt-multi-thread", "macros"] } diff --git a/examples/ngrok_ping_pong_bot/Cargo.toml b/examples/ngrok_ping_pong_bot/Cargo.toml index 571fe1ff..5f05b0d7 100644 --- a/examples/ngrok_ping_pong_bot/Cargo.toml +++ b/examples/ngrok_ping_pong_bot/Cargo.toml @@ -7,7 +7,7 @@ edition = "2018" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -teloxide = { path = "../../", features = ["auto-send"] } +teloxide = { path = "../../" } log = "0.4.8" pretty_env_logger = "0.4.0" tokio = { version = "1.3.0", features = ["rt-multi-thread", "macros"] } diff --git a/examples/redis_remember_bot/Cargo.toml b/examples/redis_remember_bot/Cargo.toml index c134f0a4..57d7b547 100644 --- a/examples/redis_remember_bot/Cargo.toml +++ b/examples/redis_remember_bot/Cargo.toml @@ -6,7 +6,7 @@ edition = "2018" [dependencies] # You can also choose "cbor-serializer" or built-in JSON serializer -teloxide = { path = "../../", features = ["redis-storage", "bincode-serializer", "macros", "auto-send"] } +teloxide = { path = "../../", features = ["redis-storage", "bincode-serializer", "macros"] } log = "0.4.8" pretty_env_logger = "0.4.0" diff --git a/examples/shared_state_bot/Cargo.toml b/examples/shared_state_bot/Cargo.toml index eb613ba1..dbaacc86 100644 --- a/examples/shared_state_bot/Cargo.toml +++ b/examples/shared_state_bot/Cargo.toml @@ -7,7 +7,7 @@ edition = "2018" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -teloxide = { path = "../../", features = ["auto-send"] } +teloxide = { path = "../../" } log = "0.4.8" pretty_env_logger = "0.4.0" tokio = { version = "1.3.0", features = ["rt-multi-thread", "macros"] } diff --git a/examples/simple_commands_bot/Cargo.toml b/examples/simple_commands_bot/Cargo.toml index 7aef1030..d5368de3 100644 --- a/examples/simple_commands_bot/Cargo.toml +++ b/examples/simple_commands_bot/Cargo.toml @@ -7,7 +7,7 @@ edition = "2018" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -teloxide = { path = "../../", features = ["macros", "auto-send"] } +teloxide = { path = "../../", features = ["macros"] } log = "0.4.8" pretty_env_logger = "0.4.0" tokio = { version = "1.3.0", features = ["rt-multi-thread", "macros"] } diff --git a/examples/sqlite_remember_bot/Cargo.toml b/examples/sqlite_remember_bot/Cargo.toml index d224d528..74b1d23a 100644 --- a/examples/sqlite_remember_bot/Cargo.toml +++ b/examples/sqlite_remember_bot/Cargo.toml @@ -6,7 +6,7 @@ edition = "2018" [dependencies] # You can also choose "cbor-serializer" or built-in JSON serializer -teloxide = { path = "../../", features = ["sqlite-storage", "bincode-serializer", "redis-storage", "macros", "auto-send"] } +teloxide = { path = "../../", features = ["sqlite-storage", "bincode-serializer", "redis-storage", "macros"] } log = "0.4.8" pretty_env_logger = "0.4.0"