From 7e8378c0ebff7c044e475407583ed8caf6bf2ec0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Orhun=20Parmaks=C4=B1z?= Date: Mon, 22 Jan 2024 22:00:24 +0100 Subject: [PATCH] docs: add distro packages section (#22) --- README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/README.md b/README.md index 3455680..294a6f0 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,33 @@ You can also use it as a library within your existing logic. cargo-run-bin = { version = "1.7.2", default-features = false } ``` +### Distro packages + +
+ Packaging status + +[![Packaging status](https://repology.org/badge/vertical-allrepos/cargo-run-bin.svg)](https://repology.org/project/cargo-run-bin/versions) + +
+ +If your distribution has packaged `cargo-run-bin`, you can use that package for the installation. + +### Arch Linux + +You can use [pacman](https://wiki.archlinux.org/title/Pacman) to install from the [extra repository](https://archlinux.org/packages/extra/x86_64/cargo-run-bin/): + +```sh +pacman -S cargo-run-bin +``` + +### Alpine Linux + +`cargo-run-bin` is available for [Alpine Edge](https://pkgs.alpinelinux.org/packages?name=cargo-run-bin&branch=edge). It can be installed via [apk](https://wiki.alpinelinux.org/wiki/Alpine_Package_Keeper) after enabling the [testing repository](https://wiki.alpinelinux.org/wiki/Repositories). + +```sh +apk add cargo-run-bin +``` + ## Usage `cargo-run-bin` keeps track of the binaries and their versions from within `Cargo.toml` under the `[package.metadata.bin]`.