Closed netvl closed 4 years ago
Closed by #200
@gugahoa Could you please trigger a new release so we can consume this change? Now I'm blocked to proceed further, as I'm forced to use tokio_compat::
API and I need to have future implementing Send 😟
Thank you!
UPD: Found that actually I can specify git repo directly in dependencies (like telegram-bot = { git = "https://github.com/telegram-rs/telegram-bot.git" }
), but still would be cool to use it directly from package store.
Only disadvantage to this is that I'm also using the tracing crate. My application is now being flooded with trace and debug messages from this crate...
This very simple piece of code fails to compile with a very scary error:
This error points out the fact that the
current_request
field is notSend
, because the nested trait object is notBox<... + Send>
.This seems to make it impossible to run any kind of update handling procedure in sub-tasks (created by various
spawn
methods), but only in the "main" task (created by theblock_on
kind of methods). This is unfortunately a hard restriction for many complex projects.