Cache cargo artifacts

This commit is contained in:
Stjepan Glavina 2019-09-09 09:26:00 +02:00
parent 2c02037673
commit 714e173948

View file

@ -1,6 +1,16 @@
language: rust
env: RUSTFLAGS="-D warnings"
env:
- RUSTFLAGS="-D warnings"
# Cache the whole `~/.cargo` directory to keep `~/cargo/.crates.toml`.
cache:
directories:
- /home/travis/.cargo
# Don't cache the cargo registry because it's too big.
before_cache:
- rm -rf /home/travis/.cargo/registry
matrix:
fast_finish: true