nabijaczleweli / cargo-update

A cargo subcommand for checking and applying updates to installed executables
MIT License
1.22k stars 42 forks source link

Feature request: Self update using `cargo-binstall`? #195

Closed NobodyXu closed 2 years ago

NobodyXu commented 2 years ago

I just upgraded cargo-update to v0.9.0 and I was surprised to see cargo-install being invoked to install new versions of cargo-update.

It would be great if cargo-update could also provide binaries which cargo-binstall can use to download and upgrade without building it locally, which is time and resource consuming.

Supporting cargo-binstall is not very hard. It requires:

The static linking part is a bit tricky though.

nabijaczleweli commented 2 years ago

I don't provide binary distributions of c-u and don't intend to. Installing non-system somehow-configured embedded, uncheckable, and unverifiable versions of libssh(!) and openssl(!) and whatever else is best described as "lmao". The only upstream-supported distribution is tarball-at-tag, which is mirrored on crates.io. Distributors can distribute cargo-update as they please, subject to the usual licence terms, of course.