Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
86 lines (78 loc) · 3.61 KB
/
Copy pathCargo.toml
File metadata and controls
86 lines (78 loc) · 3.61 KB
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
[package]
name = "bazel-diff"
version = "39.0.0"
edition = "2021"
rust-version = "1.85"
license = "Apache-2.0"
description = "Determine impacted Bazel targets between two revisions"
repository = "https://github.com/Tinder/bazel-diff"
build = "build.rs"
publish = false
[[bin]]
name = "bazel-diff"
path = "src/main.rs"
[features]
default = ["mimalloc", "vendored-protoc"]
vendored-protoc = ["dep:protoc-bin-vendored"]
[dependencies]
anyhow = "1.0"
attohttpc = { version = "=0.28.5", default-features = false, features = ["basic-auth", "tls-rustls-webpki-roots"] }
buffa = "0.9.1"
clap = { version = "4.5", features = ["derive", "env"] }
ctrlc = { version = "3.5", features = ["termination"] }
flate2 = "1.1"
# gcp_auth is async-only and brings hyper/tokio for its token requests. Its default features
# would add the OS trust store (rustls-native-certs); the serve binary trusts webpki-roots
# everywhere else, so that is selected instead. hyper-rustls is listed only to enable the
# `ring` provider gcp_auth's default feature set would otherwise have enabled.
gcp_auth = { version = "=0.12.3", default-features = false, features = ["webpki-roots"] }
hex = "0.4"
hyper-rustls = { version = "0.27", default-features = false, features = ["ring"] }
# no_thp: build mimalloc without its MADV_HUGEPAGE hint. With the hint, the first touch of each
# mimalloc page faults in and zeroes a whole 2 MiB huge page, much of which generate-hashes never
# uses: peak RSS was 14-35% higher on the perf-proof workloads, for no CPU gain. Systems that turn
# huge pages on for every process (THP "always") are unaffected.
mimalloc = { version = "0.1", optional = true, features = ["no_thp"] }
opentelemetry = { version = "0.31", default-features = false, features = ["trace", "metrics", "logs"] }
opentelemetry-appender-tracing = { version = "0.31", features = ["experimental_use_tracing_span_context"] }
# 0.31 uses reqwest 0.12, whose webpki transport shares the existing rustls/ring backend.
opentelemetry-otlp = { version = "0.31", default-features = false, features = ["http-proto", "logs", "reqwest-blocking-client", "reqwest-rustls-webpki-roots"] }
opentelemetry_sdk = { version = "0.31", default-features = false, features = ["trace", "metrics", "logs"] }
# Already resolved for aws-creds; parses STS answers in web_identity.rs.
quick-xml = { version = "0.32", features = ["serialize"] }
rayon = "1.10"
rustls-pki-types = "1.15"
rust-s3 = { version = "=0.36.0", default-features = false, features = ["sync-rustls-tls"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
sha2 = "0.10"
tempfile = "3.20"
tiny_http = "0.12"
tokio = { version = "1", features = ["rt", "time", "net"] }
tracing = "0.1"
tracing-opentelemetry = { version = "0.32", default-features = false }
tracing-subscriber = { version = "0.3", default-features = false, features = ["registry"] }
url = "2.5"
walkdir = "2.5"
[target.'cfg(all(target_arch = "aarch64", not(target_env = "msvc")))'.dependencies]
sha2 = { version = "0.10", features = ["asm"] }
[build-dependencies]
buffa-build = "0.9.1"
protoc-bin-vendored = { version = "3.2", optional = true }
[dev-dependencies]
zip = { version = "2.2", default-features = false, features = ["deflate"] }
# Mirrors the clippy policy in .bazelrc (the Bazel build is what CI checks);
# keep the two lists in step.
[lints.clippy]
pedantic = { level = "warn", priority = -1 }
missing_errors_doc = "allow"
missing_panics_doc = "allow"
must_use_candidate = "allow"
too_many_lines = "allow"
similar_names = "allow"
struct_excessive_bools = "allow"
case_sensitive_file_extension_comparisons = "allow"
implicit_hasher = "allow"
[profile.release]
lto = "thin"
strip = true