#cargo #git #updating #update #version #minor #projects

app cuo

Automated updating and git commiting of cargo project dependencies

2 unstable releases

Uses old Rust 2015

0.3.0 May 11, 2018
0.2.0 May 1, 2018

#12 in #minor

MIT license

8KB
133 lines

cuo

Build status

Tool to automate updating minor dependency versions in rust bin projects.

Loosely Based upon the following bash script:


#!/bin/bash

function updated_outdated {
    cargo update
    cargo outdated
    if [ $? -eq 0 ]
    then
        rg -q "Cargo.lock" .gitignore
        if [ $? -eq 1 ]
        then
            git add --all
            git commit -m "Update deps"
            if [ $? -eq 0 ]
            then
                git push origin master
            fi
        fi
    fi
}

find . -mindepth 1 -maxdepth 1 -type d | while read -r dir
do
    pushd $dir
    if [[ -f "Cargo.toml" ]]
    then
        echo "CHECKING $dir"
        updated_outdated
    fi
    popd
done

Dependencies

~26–38MB
~713K SLoC