From 6bffd862b66a7ba218a068260d119b19a0823a5c Mon Sep 17 00:00:00 2001 From: Mark Lodato Date: Tue, 7 Apr 2020 08:04:25 -0400 Subject: [PATCH] Updates example commands to include async features Due to the error: "target `XXX` in package `async-tungstenite` requires the features: `async-std-runtime`". Also updated the echo-server example command to start echo-server instead of server. --- examples/echo-server.rs | 4 ++-- examples/server.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/echo-server.rs b/examples/echo-server.rs index 489df59..412184d 100644 --- a/examples/echo-server.rs +++ b/examples/echo-server.rs @@ -2,11 +2,11 @@ //! //! You can test this out by running: //! -//! cargo run --example server 127.0.0.1:12345 +//! cargo run --features="async-std-runtime" --example echo-server 127.0.0.1:12345 //! //! And then in another window run: //! -//! cargo run --example client ws://127.0.0.1:12345/ +//! cargo run --features="async-std-runtime" --example client ws://127.0.0.1:12345/ use std::{env, io::Error}; diff --git a/examples/server.rs b/examples/server.rs index 7f427b5..5701793 100644 --- a/examples/server.rs +++ b/examples/server.rs @@ -6,11 +6,11 @@ //! //! You can test this out by running: //! -//! cargo run --example server 127.0.0.1:12345 +//! cargo run --features="async-std-runtime" --example server 127.0.0.1:12345 //! //! And then in another window run: //! -//! cargo run --example client ws://127.0.0.1:12345/ +//! cargo run --features="async-std-runtime" --example client ws://127.0.0.1:12345/ //! //! You can run the second command in multiple windows and then chat between the //! two, seeing the messages from the other client as they're received. For all