cyclonedx-rust-cargo icon indicating copy to clipboard operation
cyclonedx-rust-cargo copied to clipboard

Add support for `cargo binstall`

Open liamwh opened this issue 1 year ago • 8 comments

As described here, so that cargo-binstall doesn't attempt to install cargo-cyclonedx from source: image

liamwh avatar Nov 14 '23 18:11 liamwh

Are you willing or interested in providing a PR for this?

lfrancke avatar Nov 14 '23 19:11 lfrancke

cargo-dist would make providing such extra easy

tshepang avatar Nov 15 '23 08:11 tshepang

i was going to file an issue to add cargo-dist support and saw this one. cargo-dist is compatible with cargo-binstall and so would solve this plus a few other niceties including package manager distribution for easy install on ci (which is my motivation- we'd love to offer cyclonedx as an option in cargo-dist itself).

i am very happy to make a PR for this- just let me know!

ashleygwilliams avatar Nov 15 '23 17:11 ashleygwilliams

I'd be happy to have a PR for it! We should also update the repo's README listing it as a possible installation option.

It'd be great to get a release workflow with cross going for building aarch64 binaries as well, but that's a separate issue (cc @keponk )

Shnatsel avatar Nov 15 '23 17:11 Shnatsel

put a PR up- cargo-dist can add the release instructions to the release body- but i'm also happy to add the installers to the README once we decide which ones you want to support.

ashleygwilliams avatar Nov 15 '23 18:11 ashleygwilliams

also, cargo-dist does the mac cross natively for you, so you'll at least have apple aarch64 binaries.

ashleygwilliams avatar Nov 15 '23 18:11 ashleygwilliams

I've had a really great experience automating releases using release-plz. I believe it's even simpler than cargo-dist, although I don't have any firsthand experience with cargo-dist myself. However I can recommend using release-plz, I found it extremely easy to use and have no complaints with it. Maybe it's helpful here?

liamwh avatar Nov 17 '23 14:11 liamwh

hey @liamwh - release plz is great and i think it can be a good tool for generating changelogs, but it doesn't have functionality for building standalone releases or generating installers. many folks use release-plz with cargo-dist for changelog generation. the main thing that cargo-dist is doing here is building binaries and then archiving those binaries for a variety of platforms, then generating installers for them.

ashleygwilliams avatar Nov 17 '23 19:11 ashleygwilliams

i believe that this was solved by #727 !

ashleygwilliams avatar Jun 14 '24 18:06 ashleygwilliams