Open vi opened 7 years ago
I think this looks great! You should probably create a pull request for it.
How do I avoid annoying non-nightly users with a fails-to-build example then?
Also futures_await crate isn't even on crates.io. Looks like it already is.
Note: published app based on this example to crates.io: wsbroad. Was previously only on Github. It also shows communication between connected clients.
Not sure what to say about the fails-to-build example, I guess the compiler message will make it obvious why the example fails to build with stable. I personally would not worry about that.
But as far as I know cargo test
also tries building all examples. Breaking cargo test
on non-nightly is a bad idea.
Ah I was not aware of that. Seems your right, I just tested it. Maybe create an examples-nightly folder that is not picked up by cargo test
.
@vi awesome stuff, merge it into some other folder until we figure out what to do with the build step.
I've created a port of "async-autobahn-server.rs" (sans error handling) using the futures-await / experimental coroutines.
Should it be added to the examples or better to wait for stabilization of respective Rust features?