websockets-rs / rust-websocket

A WebSocket (RFC6455) library written in Rust
http://websockets-rs.github.io/rust-websocket/
MIT License
1.55k stars 223 forks source link

Can't get async server examples working? #250

Closed thesoftwarephilosopher closed 4 years ago

thesoftwarephilosopher commented 4 years ago

I added this to my dependencies:

tokio = "*"
websocket = "*"
futures = "*"

And then copied async-server into a new main.rs file and tried running it with cargo run, and it failed with weird tokio errors, like "failed to resolve: could not find reactor in tokio".

I tried the same thing with the autobahn async server example, similar errors.

What am I doing wrong?

vi commented 4 years ago

It's for tokio 0.1 (and futures 0.1), not for current async fn-friendly tokio 0.2

thesoftwarephilosopher commented 4 years ago

Oh ok thanks.