forked from mozilla/sccache
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
181 lines (169 loc) · 4.44 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
[package]
edition = "2021"
name = "sccache"
rust-version = "1.65"
version = "0.5.4"
categories = ["command-line-utilities", "development-tools::build-utils"]
description = "Sccache is a ccache-like tool. It is used as a compiler wrapper and avoids compilation when possible, storing a cache in a remote storage using various cloud storage."
keywords = ["ccache"]
license = "Apache-2.0"
readme = "README.md"
repository = "https://github.com/mozilla/sccache/"
[[bin]]
name = "sccache"
[[bin]]
name = "sccache-dist"
required-features = ["dist-server"]
[profile.release]
codegen-units = 1
lto = true
strip = true
[dependencies]
anyhow = { version = "1.0", features = ["backtrace"] }
ar = "0.9"
async-trait = "0.1"
base64 = "0.21"
bincode = "1"
blake3 = "1"
byteorder = "1.0"
bytes = "1"
clap = { version = "4.1.11", features = ["derive", "env", "wrap_help"] }
directories = "5.0.0"
encoding = "0.2"
env_logger = "0.10"
filetime = "0.2"
flate2 = { version = "1.0", optional = true, default-features = false, features = [
"rust_backend",
] }
fs-err = "2.9"
futures = "0.3"
gzp = { version = "0.11.3", default-features = false, features = [
"deflate_rust",
] }
http = "0.2"
hyper = { version = "0.14.25", optional = true, features = ["server"] }
is-terminal = "0.4.7"
jobserver = "0.1"
jwt = { package = "jsonwebtoken", version = "8", optional = true }
libc = "0.2.140"
linked-hash-map = "0.5"
log = "0.4"
num_cpus = "1.15"
number_prefix = "0.4"
once_cell = "1.17"
opendal = { version = "0.37.0", optional = true }
openssl = { version = "0.10.55", optional = true }
rand = "0.8.4"
regex = "1.7.3"
reqsign = { version = "0.13.0", optional = true }
reqwest = { version = "0.11", features = [
"json",
"blocking",
"stream",
"rustls-tls",
"trust-dns",
], optional = true }
retry = "2"
semver = "1.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
sha2 = { version = "0.10.6", optional = true }
strip-ansi-escapes = "0.1"
tar = "0.4.36"
tempfile = "3"
# trust-dns-resolver must be kept in sync with the version reqwest uses
mime = "0.3"
tokio = { version = "1", features = [
"rt-multi-thread",
"io-util",
"time",
"net",
"process",
"macros",
] }
tokio-serde = "0.8"
tokio-util = { version = "0.7", features = ["codec", "io"] }
toml = "0.7"
tower = "0.4"
trust-dns-resolver = { version = "0.22.0", features = [
"dnssec-ring",
"dns-over-rustls",
"dns-over-https-rustls",
] }
url = { version = "2", optional = true }
uuid = { version = "1.3", features = ["v4"] }
walkdir = "2"
# by default which pulls in an outdated failure version
which = { version = "4", default-features = false }
zip = { version = "0.6", default-features = false }
zstd = "0.12"
# dist-server only
memmap2 = "0.6.2"
nix = { version = "0.26.2", optional = true }
object = "0.30"
rouille = { version = "3.5", optional = true, default-features = false, features = [
"ssl",
] }
syslog = { version = "6", optional = true }
version-compare = { version = "0.1.1", optional = true }
[dev-dependencies]
assert_cmd = "2.0.10"
cc = "1.0"
chrono = "0.4.26"
itertools = "0.10"
predicates = "=3.0.3"
serial_test = "2.0"
temp-env = "0.3.4"
thirtyfour_sync = "0.27"
[target.'cfg(unix)'.dependencies]
daemonize = "0.5"
[target.'cfg(not(target_os = "freebsd"))'.dependencies.libmount]
optional = true
version = "0.1.10"
[target.'cfg(windows)'.dependencies.winapi]
features = ["fileapi", "handleapi", "stringapiset", "winnls"]
version = "0.3"
[features]
all = [
"dist-client",
"redis",
"s3",
"memcached",
"gcs",
"azure",
"gha",
"webdav",
]
azure = ["opendal", "reqsign"]
default = ["all"]
gcs = ["opendal", "reqsign", "url", "reqwest/blocking"]
gha = ["opendal"]
memcached = ["opendal/services-memcached"]
native-zlib = []
redis = ["url", "opendal/services-redis"]
s3 = ["opendal", "reqsign"]
webdav = ["opendal"]
# Enable features that will build a vendored version of openssl and
# statically linked with it, instead of linking against the system-wide openssl
# dynamically or statically.
vendored-openssl = ["openssl?/vendored"]
# Enable features that require unstable features of Nightly Rust.
unstable = []
# Enables distributed support in the sccache client
dist-client = ["flate2", "hyper", "reqwest", "url", "sha2"]
# Enables the sccache-dist binary
dist-server = [
"jwt",
"flate2",
"libmount",
"nix",
"openssl",
"reqwest",
"rouille",
"syslog",
"version-compare",
]
# Enables dist tests with external requirements
dist-tests = ["dist-client", "dist-server"]
[workspace]
exclude = ["tests/test-crate"]