From 29a027c8009d8ba6640de7ee77ba7ab99ec72b06 Mon Sep 17 00:00:00 2001 From: Maybe Waffle Date: Fri, 3 Feb 2023 17:12:35 +0400 Subject: [PATCH 1/2] Switch to path+version `teloxide-{core,macros}` deps --- crates/teloxide/Cargo.toml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/crates/teloxide/Cargo.toml b/crates/teloxide/Cargo.toml index 7e44d574..e4034f62 100644 --- a/crates/teloxide/Cargo.toml +++ b/crates/teloxide/Cargo.toml @@ -63,17 +63,15 @@ full = [ [dependencies] -teloxide-core = { version = "0.9.0", default-features = false } -teloxide-macros = { version = "0.7.1", optional = true } +teloxide-core = { version = "0.9.0", path = "../teloxide-core", default-features = false } +teloxide-macros = { version = "0.7.1", path = "../teloxide-macros", optional = true } serde_json = "1.0" serde = { version = "1.0", features = ["derive"] } dptree = "0.3.0" -# These lines are used only for development. -# teloxide-core = { path = "../teloxide-core", default-features = false } -# teloxide-macros = { path = "../teloxide-macros", optional = true } +# Uncomment this if you want to test teloxide with a specific dptree commit # dptree = { git = "https://github.com/teloxide/dptree", rev = "df578e4" } tokio = { version = "1.8", features = ["fs"] } From 8e435c9e7f2cafb4977dee264da42831d8e310d9 Mon Sep 17 00:00:00 2001 From: Maybe Waffle Date: Fri, 3 Feb 2023 17:12:57 +0400 Subject: [PATCH 2/2] Add a reminder to update teloxide's Cargo.toml when adding features to core --- crates/teloxide-core/Cargo.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/teloxide-core/Cargo.toml b/crates/teloxide-core/Cargo.toml index 31f5a476..f81d1ef3 100644 --- a/crates/teloxide-core/Cargo.toml +++ b/crates/teloxide-core/Cargo.toml @@ -17,6 +17,8 @@ categories = ["api-bindings", "asynchronous"] [features] +# NB: When adding features here, don't forget to update teloxide's Cargo.toml + default = ["native-tls"] rustls = ["reqwest/rustls-tls"]