Closed seguidor777 closed 4 years ago
it looks to me like you haven't added any features to your tokio dependency.
try
tokio = { version = "0.2.4", features = ["full"] }
It also looks like Result<(), Box<dyn Error>>
doesn't implement Termination
, which is unfortunate. You could try replacing Box<dyn Error>
with anyhow::Error
(docs) and see if that gets you where you need.
You are absolutely right, I am new to Rust and did not know of the features addition.
Thanks a lot!
Rust 1.39.0 (latest stable)
Crates:
tokio 0.2.4 futures 0.3.1
Platform
Linux latitude 4.19.0-kali5-amd64 #1 SMP Debian 4.19.37-6kali1 (2019-07-22) x86_64 GNU/Linux
Description
I created a project using the proxy example After running
cargo build
I see the following errors:Could you please let me know if there really is a problem with the versions or if there are others that I should use?