39 releases (16 stable)

1.6.2 Aug 14, 2018
1.6.1 Jul 3, 2018
1.5.2 May 6, 2018
1.4.1 Jan 20, 2018
0.6.0 Nov 30, 2016

#7 in Cargo plugins

Download history 278/week @ 2018-05-26 384/week @ 2018-06-02 223/week @ 2018-06-09 291/week @ 2018-06-16 340/week @ 2018-06-23 568/week @ 2018-06-30 709/week @ 2018-07-07 504/week @ 2018-07-14 489/week @ 2018-07-21 447/week @ 2018-07-28 639/week @ 2018-08-04 495/week @ 2018-08-11 672/week @ 2018-08-18

2,012 downloads per month

MIT license

85KB
876 lines

cargo-update TravisCI build status AppVeyorCI build status Licence Crates.io version

A cargo subcommand for checking and applying updates to installed executables

Documentation

Manpage

Installation

Firstly, ensure you have CMake and the Required Libraries™.

Then proceed as usual:

cargo install cargo-update

If that doesn't work and you're on Mac, re-try with PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig. If it still doesn't work, slam open an issue or comment on one of the existing relevant ones.

Required libraries

Library *X package name msys2 package name
libgit2 libgit2-devel mingw-w64-x86_64-libgit2
libssh2 libssh2-devel mingw-w64-x86_64-libssh2
openssl openssl-devel mingw-w64-x86_64-openssl

Usage

cargo install-update -a - check for newer versions and update all installed packages.

cargo install-update crate1 crate2 ... - check for newer versions and update selected packages, will not install new packages.

For more information and examples see the manpage.

Self-update

cargo-update will update itself seamlessly on Linux and Windows.

On Windows the following strategy is applied:

  • Check for old versions, remove them
  • Add the current version to the current executable's extension
  • Create an empty file in place of the just-renamed file (this way cargo install will "replace" it and not duplicate the entry in .crates.toml)

Dependencies

~15MB
~361K SLoC