From f06dc43a72900f3b9482277b6dc419fc304fdac6 Mon Sep 17 00:00:00 2001 From: Curtis Doty Date: Mon, 21 Oct 2024 21:09:35 +0000 Subject: [PATCH 1/2] The ssl feature is already installed by default - since v1.9 - closes #272 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e4e232a..b8b0b53 100644 --- a/README.md +++ b/README.md @@ -107,7 +107,7 @@ There are multiple options for installing WebSocat. From easy to hard: [MacPorts](https://www.macports.org): `sudo port install websocat` ## From source -* Install the [Rust toolchain](https://rustup.rs/) and do `cargo install --features=ssl websocat`. If something fails with a `-sys` crate, try without `--features=ssl`; +* Install the [Rust toolchain](https://rustup.rs/) and do `cargo install websocat`. If something fails with a `-sys` crate, try without `--features=ssl`; * Build Websocat from source code (see below), then move `target/release/websocat` somewhere to the PATH. ## Pre-built binaries @@ -118,7 +118,7 @@ Building from source code --- 1. Install the [Rust toolchain](https://rustup.rs/). Note that Websocat v1 (i.e. the current stable version) may fail to support too new Rust due to its old dependencies which can be broken by e.g. [this](https://github.com/rust-lang/rust/pull/78802). -2. `cargo build --release --features=ssl`. +2. `cargo build --release`. 3. Find the executable somewhere under `target/`, e.g. in `target/release/websocat`. ### Rust versions From cbd3175ba3fae934b91fde8705978f95b5e02f85 Mon Sep 17 00:00:00 2001 From: Curtis Doty Date: Sat, 26 Oct 2024 01:04:43 +0000 Subject: [PATCH 2/2] Adjust logic for failure scenario --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b8b0b53..7d34310 100644 --- a/README.md +++ b/README.md @@ -107,7 +107,7 @@ There are multiple options for installing WebSocat. From easy to hard: [MacPorts](https://www.macports.org): `sudo port install websocat` ## From source -* Install the [Rust toolchain](https://rustup.rs/) and do `cargo install websocat`. If something fails with a `-sys` crate, try without `--features=ssl`; +* Install the [Rust toolchain](https://rustup.rs/) and do `cargo install websocat`. If something fails with a `-sys` crate, try with `--no-default-features`; * Build Websocat from source code (see below), then move `target/release/websocat` somewhere to the PATH. ## Pre-built binaries