Cargo Features

[dependencies]
cargo-cache = { version = "0.8.3", default-features = false, features = ["bench", "ci-autoclean", "vendored-libgit", "offline_tests", "cargo_metadata", "chrono", "clap", "dirs-next", "flate2", "humansize", "rayon", "regex", "rustc_tools_util", "tar", "walkdir"] }
default = cargo_metadata, chrono, clap, dirs-next, flate2, git2, humansize, rayon, regex, rustc_tools_util, tar, vendored-libgit, walkdir

These default features are set whenever cargo-cache is added without default-features = false somewhere in the dependency tree.

bench

run benchmarks

ci-autoclean

minimal implementation that builds fast for CI

vendored-libgit default

Enables git2 ^0.14

https://github.com/alexcrichton/git2-rs check if repo is git repo

offline_tests

only run tests that do not require internet connection

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

some details: https://github.com/NixOS/nixpkgs/pull/77310

cargo_metadata default

Enables cargo_metadata ^0.15.0

https://github.com/oli-obk/cargo_metadata get crate package name

chrono default

Enables chrono

https://github.com/chronotope/chrono compare dates etc

clap default

Enables clap ^3.0.0

https://github.com/kbknapp/clap-rs cmdline arg parsing

dirs-next default

Enables dirs-next

https://github.com/xdg-rs/dirs get cache dirs to look for sccache cache

flate2 default

Enables flate2

https://github.com/rust-lang/flate2-rs look into gzs

git2 default vendored-libgit

Enables git2 ^0.14

humansize default

Enables humansize ^1.1.0

https://github.com/LeopoldArkham/humansize convert digits of bytes to human readable size

rayon default

Enables rayon

https://github.com/rayon-rs/rayon parallelize iterators

regex default

Enables regex

https://github.com/rust-lang/regex use regex for matching

rustc_tools_util default

Enables rustc_tools_util ^0.2.0

https://github.com/rust-lang/rust-clippy/tree/master/rustc_tools_util git version information

tar default

Enables tar

https://github.com/alexcrichton/tar-rs extract tars

walkdir default

Enables walkdir

https://github.com/BurntSushi/walkdir walk content of directory/CARGO_HOME recursively