Add instructions for unlinking Homebrew Rust on macOS (#3085)

This commit is contained in:
micolous 2024-10-03 13:28:31 +10:00 committed by GitHub
parent 44b93804e6
commit 30a04f9b8b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -12,7 +12,7 @@ Kanidm currently is packaged for the following systems:
- OpenSUSE Tumbleweed - OpenSUSE Tumbleweed
- OpenSUSE Leap 15.4/15.5/15.6 - OpenSUSE Leap 15.4/15.5/15.6
- MacOS - macOS
- Arch Linux - Arch Linux
- CentOS Stream 9 - CentOS Stream 9
- Debian - Debian
@ -47,16 +47,35 @@ zypper ref
zypper in kanidm-clients zypper in kanidm-clients
``` ```
### MacOS - Brew ### macOS - Homebrew
[Homebrew](https://brew.sh/) allows addition of third party repositories for installing tools. On [Kanidm provides a Homebrew cask](https://github.com/kanidm/homebrew-kanidm),
MacOS you can use this to install the Kanidm tools. which lets [Homebrew](https://brew.sh/) build and install the CLI client tools
from source:
```bash ```bash
brew tap kanidm/kanidm brew tap kanidm/kanidm
brew install kanidm brew install kanidm
``` ```
> [!TIP]
>
> **Rust developers:** this formula will install a Rust toolchain with Homebrew,
> and add it to your `PATH`. *This may interfere with any Rust toolchain
> you've installed with [`rustup`](https://rustup.rs/).*
>
> You can unlink Homebrew's Rust toolchain (removing it from your `PATH`) with:
>
> ```sh
> brew unlink rust
> ```
>
> Homebrew will always use its version of Rust when building Rust packages, even
> when it is unlinked.
>
> Alternatively, you may wish to [install the Kanidm CLI with `cargo`](#cargo)
> instead this will use whatever Rust toochain you've already installed.
### Arch Linux ### Arch Linux
[Kanidm on AUR](https://aur.archlinux.org/packages?O=0&K=kanidm) [Kanidm on AUR](https://aur.archlinux.org/packages?O=0&K=kanidm)