Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support cargo-binstall #864

Open
Fishrock123 opened this issue Jul 20, 2023 · 2 comments
Open

Support cargo-binstall #864

Fishrock123 opened this issue Jul 20, 2023 · 2 comments

Comments

@Fishrock123
Copy link

cargo-edit is pretty handy in CI contexts but compiling it each time can be a bit arduous.

It would be nice if cargo-edit supported using cargo-binstall via uploaded binaries to GitHub releases or similar. Being able to pull binaries directly would be much more handy for CI projects.

@epage
Copy link
Collaborator

epage commented Jul 21, 2023

I feel like providing more streamlined CI support for cargo-edit would convey a programmatic stability we do not have.

  1. My goal for this project is to kill it off. By that, I mean we merge the commands into cargo. For cargo-upgrade, we are tracking that here
  2. As we are still figuring out the UX for merging into cargo, we are very free with doing major UX changes in appropriately marked breaking releases.

@StudioLE
Copy link

StudioLE commented Oct 5, 2024

You can install the binaries with Homebrew, it's a lot faster than cargo install cargo-edit.

9 seconds vs 1 minute 15 seconds

Homebrew is pre-installed on the GitHub Actions ubuntu image, (although it's not added to PATH).

Either run directly using:

    - run: /home/linuxbrew/.linuxbrew/bin/brew install cargo-edit
    - run: /home/linuxbrew/.linuxbrew/bin/cargo-set-version set-version 1.2.3-alpha

Or add to PATH:

        - run: |
          eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
          brew install cargo-edit
          cargo set-version 1.2.3-alpha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants