How to fix Rust tools that bind libgit2.so
Recently, after a system update, I became not able to run some of the system tools written on Rust, like exa
and bat
$ bat --version ~
bat: error while loading shared libraries: libgit2.so.1.4: cannot open shared object file: No such file or directory
The fix was easy: rebuild a binary
$ cargo install exa bat --force