forked from matthiaskrgr/cargo-cache
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
96 lines (73 loc) · 3.3 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
[package]
name = "cargo-cache"
version = "0.5.1"
authors = ["Matthias Krüger <matthias.krueger@famsik.de>"]
description = "Manage cargo cache ($CARGO_HOME or ~/.cargo/), show sizes and remove directories selectively"
homepage = "https://github.com/matthiaskrgr/cargo-cache"
repository = "https://github.com/matthiaskrgr/cargo-cache"
license = "MIT/Apache-2.0"
readme = "README.md"
keywords = ["cargo", "cache", "cli", "manage", "cargo-home"]
categories = ["command-line-utilities", "development-tools::cargo-plugins", "development-tools"]
build = "src/build.rs"
edition = "2018"
[features]
default = ["cargo_metadata", "chrono", "clap", "dirs-next", "git2", "humansize", "rayon", "regex", "rustc_tools_util", "walkdir"]
bench = [] # run benchmarks
ci-autoclean = [] # minimal implementation that builds fast for CI
offline_tests = [] # only run tests that do not require internet connection
# some details: https://github.com/NixOS/nixpkgs/pull/77310
[dependencies]
# https://github.com/oli-obk/cargo_metadata
cargo_metadata = { version = "0.11.0", optional = true } # get crate package name
# https://github.com/kbknapp/clap-rs
clap = { version = "2.33.1", optional = true } # cmdline arg parsing
# https://github.com/alexcrichton/git2-rs
git2 = { version = "0.13.5", default-features = false, optional = true } # check if repo is git repo
# https://github.com/brson/home
home = "0.5.3" # get CARGO_HOME
# https://github.com/LeopoldArkham/humansize
humansize = { version = "1.1.0", optional = true } # convert digits of bytes to human readable size
# https://github.com/rayon-rs/rayon
rayon = { version = "1.3.0", optional = true } # parallelize iterators
# https://github.com/rust-lang/regex
regex = { version = "1.3.7", optional = true } # use regex for matching
# https://github.com/rust-lang/rust-clippy/tree/master/rustc_tools_util
rustc_tools_util = { version = "0.2.0", optional = true } # git version information
# https://github.com/BurntSushi/walkdir
walkdir = { version = "2.3.1", optional = true } # walk content of directory/CARGO_HOME recursively
# https://github.com/alexcrichton/cfg-if
cfg-if = { version = "0.1.10" } # if cfg(..) { ... }
# https://github.com/chronotope/chrono
chrono = { version = "0.4.11", optional = true } # compare dates etc
# https://github.com/xdg-rs/dirs
dirs-next = { version = "1.0.1", optional = true } # get cache dirs to look for sccache cache
# https://github.com/XAMPPRocky/remove_dir_all
remove_dir_all = { version = "0.6.0" } # remove_dir_all on windows
[dev-dependencies]
# https://github.com/rhysd/path-slash
path-slash = "0.1.1" # normalize windows paths
# https://github.com/colin-kiegel/rust-pretty-assertions
pretty_assertions = "0.6.1" # colored diff assertions
# https://github.com/webdesus/fs_extra
fs_extra = "1.1.0" # copy directories recursively
# https://github.com/Stebalien/tempfile
tempfile = "3.1.0" # create and rm temporary directories for tests
[build-dependencies]
# https://github.com/rust-lang/rust-clippy/tree/master/rustc_tools_util
rustc_tools_util = "0.2.0" # git version information
[[bin]]
name = "cargo-cache"
path = "src/main.rs"
test = true
bench = true
[badges]
#travis-ci = { repository = "matthiaskrgr/cargo-cache", branch = "master" }
[profile.release]
lto = true
codegen-units = 1
incremental = false
[profile.bench]
lto = true
codegen-units = 1
incremental = false