Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
55 lines (52 loc) · 1.76 KB
/
Copy pathCargo.toml
File metadata and controls
55 lines (52 loc) · 1.76 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
# A read-only caching proxy for Git repositories.
[package]
name = "git-cache-proxy"
version = "0.1.13"
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"
[dependencies]
anyhow = "1.0"
axum = "0.8"
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.18", 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.
reqwest = { version = "0.12", default-features = false, features = [
"rustls-tls-native-roots",
] }
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"] }
tower = { version = "0.5", features = ["limit"] }
tracing = "0.1"
tracing-appender = "0.2"
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
[dev-dependencies]
tempfile = "3"
tokio = { version = "1", features = ["test-util"] }
tower = { version = "0.5", features = ["util"] }