redu icon indicating copy to clipboard operation
redu copied to clipboard

FR: Support installation using `cargo binstall`

Open ilyagr opened this issue 9 months ago • 3 comments

You'd need to either rename your release binaries to something https://github.com/cargo-bins/cargo-binstall understands by default or (probably better) add some metadata to Cargo.toml similarly to https://github.com/blacknon/hwatch/pull/135.

Fortunately, redu doesn't take that long to compile, but many rust programs do, so I hesitated before running plain cargo install.

P.S. Thank you for the nice tool!

ilyagr avatar Apr 12 '25 22:04 ilyagr

Hello, thank you for your interest in redu!

I hadn't heard about cargo-binstall before but I'm happy to include support in Cargo.toml, looks like a fairly minor change. Could you possibly prepare a PR with this?

drdo avatar Apr 13 '25 05:04 drdo

Good to know you'd be interested. It is a small change.

I don't want to over-promise, but I will hopefully get around to it at some point unless somebody else beats me to it.

ilyagr avatar Apr 13 '25 05:04 ilyagr

This seems blocked on https://github.com/cargo-bins/cargo-binstall/issues/2119. Or, you could store the files as uncompressed in releases. I would guess (but haven't checked), browsers will use compression when downloading anyway.

A more minor issue is https://github.com/cargo-bins/cargo-binstall/issues/2126. For that, it might be nice to rename ...-arm64 binaries to ...-aarch64, but I suppose it's not absolutely necessary.

ilyagr avatar Apr 15 '25 00:04 ilyagr