Repository: taiki-e/cargo-hack (language: rust)

Issue:
Use `+stable` in "From source" installation guide
Like https://github.com/tokio-rs/bytes/issues/506#issuecomment-903531626 and https://github.com/nix-rust/nix/pull/1792#issuecomment-1213468747, I have recommended this several times in the past.



Discussion / hints:

Fix patch:
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index b2fb6263..8e6154cc 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -68,6 +68,7 @@ jobs:
           - target: aarch64-apple-darwin
             os: macos-11
           - target: x86_64-unknown-linux-musl
+          - target: x86_64-unknown-freebsd
     runs-on: ${{ matrix.os || 'ubuntu-18.04' }}
     steps:
       - uses: actions/checkout@v3
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 7fdf06b9..05fbd1d9 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -60,6 +60,7 @@ jobs:
             os: macos-11
           - target: x86_64-pc-windows-msvc
             os: windows-2019
+          - target: x86_64-unknown-freebsd
     runs-on: ${{ matrix.os || 'ubuntu-18.04' }}
     steps:
       - uses: actions/checkout@v3
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3c006be5..dfd109c0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,6 +10,8 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
 
 ## [Unreleased]
 
+- Distribute prebuilt binaries for x86_64 FreeBSD. ([#160](https://github.com/taiki-e/cargo-hack/pull/160))
+
 ## [0.5.16] - 2022-07-30
 
 - Fix an issue that a warning was displayed when excluding a feature that exists only in some crates in the workspace. ([#158](https://github.com/taiki-e/cargo-hack/pull/158))
diff --git a/README.md b/README.md
index 1b7cf9c3..6eb7ec11 100644
--- a/README.md
+++ b/README.md
@@ -383,7 +383,7 @@ fields of [`cargo metadata`][cargo-metadata].*
 ### From source
 
 ```sh
-cargo install cargo-hack
+cargo +stable install cargo-hack
 ```
 
 *Compiler support: requires rustc 1.56+*
@@ -396,7 +396,19 @@ cargo-hack requires Cargo 1.26+.
 ### From prebuilt binaries
 
 You can download prebuilt binaries from the [Release page](https://github.com/taiki-e/cargo-hack/releases).
-Prebuilt binaries are available for macOS, Linux (gnu and musl), and Windows (static executable).
+Prebuilt binaries are available for macOS, Linux (gnu and musl), Windows (static executable), and FreeBSD.
+
+<details>
+<summary>Example of script to download cargo-hack</summary>
+
+```sh
+# Get host target
+host=$(rustc -Vv | grep host | sed 's/host: //')
+# Download binary and install to $HOME/.cargo/bin
+curl -LsSf https://github.com/taiki-e/cargo-hack/releases/latest/download/cargo-hack-$host.tar.gz | tar xzf - -C $HOME/.cargo/bin
+```
+
+</details>
 
 <!-- omit in toc -->
 ### On GitHub Actions


Test patch: