Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
74 lines (69 loc) · 2.53 KB
/
Copy pathCargo.toml
File metadata and controls
74 lines (69 loc) · 2.53 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
# A read-only caching proxy for Git repositories.
[package]
name = "git-cache-proxy"
version = "0.2.16"
edition = "2024"
license = "Apache-2.0"
description = "Read-only caching proxy for Git: serves clones/fetches from an in-region mirror, pulling only deltas from upstream."
repository = "https://github.com/rolandjitsu/git-cache-proxy"
keywords = ["git", "cache", "proxy", "ci", "mirror"]
categories = ["command-line-utilities", "development-tools"]
[[bin]]
name = "git-cache-proxy"
path = "src/main.rs"
# Shared integration-test helpers, pulled in via `mod helpers;`. Declared so
# Cargo does not also auto-build it as its own (zero-test) binary.
[[test]]
name = "helpers"
path = "tests/helpers.rs"
test = false
[dependencies]
anyhow = "1.0"
axum = "0.8"
# Basic is how git credential helpers present a token; decoded for the
# token-extraction path in `auth.rs`.
base64 = "0.23"
bytes = "1"
clap = { version = "4.5", features = ["derive", "env"] }
flate2 = "1"
# default-features off drops the `hashbrown` backend (and its allocator-api2 /
# foldhash / equivalent deps); the std `HashMap` backend is plenty for this.
lru = { version = "0.19", default-features = false }
prometheus = { version = "0.14", default-features = false }
# LFS objects use an HTTPS API; reqwest fetches them over rustls+ring (no native-tls,
# so the binary stays statically linked). serde_json rewrites the batch JSON; sha2
# verifies a fetched object against its oid before caching. http2 lets a burst of
# token-validation probes share one connection to the git host.
reqwest = { version = "0.12", default-features = false, features = [
"http2",
"rustls-tls-native-roots",
] }
# Already in the tree through rustls; used directly for the HMAC that signs LFS
# download grants and for the random fallback signing key.
ring = "0.17"
serde_json = "1"
sha2 = "0.11"
subtle = "2"
tokio = { version = "1", features = [
"macros",
"rt-multi-thread",
"net",
"process",
"io-util",
"fs",
"signal",
"sync",
"time",
] }
tokio-util = { version = "0.7", features = ["io", "rt"] }
tower = { version = "0.5", features = ["limit"] }
tracing = "0.1"
tracing-appender = "0.2"
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
[target.'cfg(unix)'.dependencies]
# Safe `killpg`, to stop upload-pack's process group when a client hangs up.
rustix = { version = "1", default-features = false, features = ["process", "std"] }
[dev-dependencies]
tempfile = "3"
tokio = { version = "1", features = ["test-util"] }
tower = { version = "0.5", features = ["util"] }