by f1refly · 4y ago · 0 comments
> Linux
> Homebrew
> Arch Linux
> pacman -U jless
First, if you have to revert to homebrew as a package manager on gnu/linux you might as well tell the user to just use cargo directly, that way users only have to install the rust toolchain as opposed to the rust toolchain plus an alien package manger. The typical way would be to make cargo compile the thing, place in in ~/.local somewhere and add that path to PATH.
Second, "pacman -U ARG" installs from a file or from a URI. jless is neither. You have to properly package it before pacman will install from a file, which means you have to write a PKGBUILD file with some metadata and build instructions (about 20 lines) and call makepkg, which will then produce the package (a .tar.xz file if I'm not mistaken).
I suggest you first test the instructions you put on your website.
Installing via Linux Homebrew is simply listed as an option because it's available as a Homebrew formula. And the option to install via cargo is also noted.
For Rust projects, there really is no need for more than this. It might take a bit longer, but it’s simple and easy.
Go, Rust and Node.js cover a large portion of recent projects, and many others cheat with Docker or the like.
It works on most distros and for most languages, instead of being tied to, say, rust or arch.
Brew keeps it's packages separate, so breaking is less likely.
A separate package manager is not remotely needed for this and thus poses an unnecessary dependency and burden on users who didn't have homebrew installed. It integrates with the systems package manager in that it takes higher priority (well, or lower, depending on wether PATH was prepended or appended) during application lookup and does nothing else. Without looking at it I'd guess that homebrew does the same.
> I know almost nothing about cargo since I don't do rust
And you don't have to. Git clone, cargo install, add line to .profile (if not already there), done.