4 ms·
I did it because not everybody has cargo installed. I'm using cargo-dist to create this npm package.
by _sinelaw_ 11mo ago
I did it because not everybody has cargo installed. I'm using cargo-dist to create this npm package.
- alienpingu 10mo agoi just used npx to try on my working machine where i do not have cargo
- giancarlostoro 11mo agoI've been wanting a generic package manager for a while that is cross-platform. I wonder how one could find funding for such a project. Thinking about users from various OS' installing tools and software from your niche package manager, yeah that bad boy is going to grind to a halt if you have no key funding.
- venturecruelty 11mo agoArtifactory exists. It's not hard to store packages and metadata somewhere.
- freeopinion 11mo agoBy cross-platform, do you really mean Linux/BSD/Mac/Win/ChromeOS/Android? Or do you just mean something like Guix?
- apatheticonion 11mo agoSame. I started writing one as a weekend project and got as far as having a GH repo with releases that mirror the binaries of the tools that I use, normalizing the archives so they can be installed in the same way. It auto-generates a release whenever the project authors update their projects. https://github.com/alshdavid/install-scripts/releases?q=nodejs&expanded=true https://github.com/alshdavid/install-scripts/releases?q=node... https://github.com/alshdavid/install-scripts/releases https://github.com/alshdavid/install-scripts/releases All of the binaries here are expected to be standalone/portable installations, so you can download/extract the archive and just run the binary. curl -L --url https://github.com/alshdavid/install-scripts/releases/download/terraform-1.14.1/terraform-1.14.1-linux-amd64.tar.gz | tar -xvzf - -C $HOME/.local/bin $HOME/.local/bin/terraform --help I haven't yet written a package manager yet, but I was planning for it to just do the same thing as above but figure out your OS/ARCH, handle extraction and also offer a PATH update system so you can run `eval $(xpkg env)` and PATH is updated automatically.
- craftkiller 11mo ago> generic package manager for a while that is cross-platform That would be Nix. Runs on any Linux distro and OSX. Also particularly useful for NixOS and NixBSD. https://nixos.org/download/ https://nixos.org/download/
- baq 11mo agoconsider wget or curl if possible (why not if npm was...)
- LoganDark 11mo agoIs there a way to install it with cargo instead? I won't install npm on my machine just to install a Rust package
- _sinelaw_ 11mo agoSure, cargo install fresh-editor
- ulbu 11mo agoi don’t (and won’t) have npm installed. i do have cargo. strange thinking!