docs: add cargo install instructions to README
Some checks are pending
Rust / Test on aarch64-unknown-linux-gnu (push) Waiting to run
Rust / Test on x86_64-unknown-linux-gnu (push) Waiting to run

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I2ff7d28036ef717fb8a5a29c0f98e3e86a6a6964
This commit is contained in:
raf 2026-01-12 11:01:00 +03:00
commit 3de8b5ef8e
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF

View file

@ -210,16 +210,25 @@ Or run it directly with `nix run`
nix run nixpkgs#microfetch
```
Non-Nix users will have to build Microfetch with `cargo`. It is not published
anywhere but I imagine you can use `cargo install --git` to install it from
source.
[crates.io]: https://crates.io/crates/microfetch
Non-Nix users, if they plan to run this for some reason, will need to build
Microfetch from source or install it with `cargo`. Microfetch is published on
[crates.io] and can be installed with `cargo install`.
```bash
cargo install --git https://github.com/notashelf/microfetch.git
# Get Microfetch from crates.io
cargo install microfetch
```
Microfetch is _currently_ not available anywhere else. Though, does it _really_
have to be?
### Other Distros
<!-- Remove & replace with "unofficial" warning if adding distro-specific instructions -->
To my knowledge, there is no package for (nor a reason to package) Microfetch
but if you run a patched version for your distribution, feel free to leave your
repository (AUR, COPR, etc.) here as reference for those that might be
interested in Microfetch tailored to their distributions.
## Customizing