-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCargo.toml
More file actions
92 lines (73 loc) · 2.2 KB
/
Cargo.toml
File metadata and controls
92 lines (73 loc) · 2.2 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
87
88
89
90
91
92
[workspace]
members = ["crates/vein-adapter", "crates/vein-admin"]
[package]
name = "vein"
version = "0.4.0"
edition = "2024"
authors = ["Abdelkader Boudih <oss@seuros.com>"]
description = "A fast, intelligent multi-ecosystem package proxy/cache"
license = "AGPL-3.0-only"
repository = "https://github.com/contriboss/vein"
homepage = "https://github.com/contriboss/vein"
readme = "README.md"
keywords = ["rubygems", "crates", "npm", "proxy", "cache"]
categories = ["development-tools", "caching", "network-programming"]
[lib]
name = "vein"
path = "src/lib.rs"
[[bin]]
name = "vein"
path = "src/main.rs"
[features]
default = ["tls", "sqlite"]
tls = ["rama/rustls", "vein-adapter/tls"]
sqlite = ["vein-adapter/sqlite"]
postgres = ["vein-adapter/postgres"]
android = []
inspect = []
[dependencies]
# Rama network framework (conditional TLS via feature)
rama = { version = "0.3.0-alpha.4", features = ["http-full", "tcp", "opentelemetry"] }
# Async runtime
tokio = { version = "1.50.0", features = ["full"] }
# Serialization
serde = { version = "1.0.228", features = ["derive"] }
serde_json = "1.0.149"
serde_yaml = "0.9"
toml = "1.0.7"
# File handling and hashing
sha2 = "0.10.8"
# Archive handling
num_cpus = "1.16.0"
hex = "0.4.3"
flate2 = "1.0.32"
tar = "0.4.41"
cyclonedx-bom = "0.8.0"
# Error handling
anyhow = "1.0.102"
# CLI
clap = { version = "4.6.0", features = ["derive"] }
# Utilities
parking_lot = "0.12.3"
percent-encoding = "2.3"
rand = "0.10.0"
# Scheduling
tokio-cron-scheduler = "0.15.1"
# State machines
state-machines = { version = "0.8.1", features = ["typestate"] }
breaker-machines = "0.7.5"
chrono-machines = "0.3.1"
# Time handling
chrono = { version = "0.4.44", features = ["serde"] }
vein-adapter = { version = "0.3.0", path = "crates/vein-adapter", default-features = false }
[dev-dependencies]
tokio-test = "0.4.5"
tempfile = "3.27.0"
# Android-specific dependencies with bundled SQLite
[target.'cfg(target_os = "android")'.dependencies]
sqlx = { version = "0.8.6", features = ["runtime-tokio", "sqlite", "chrono"] }
[profile.release]
lto = true
codegen-units = 1
panic = "abort" # Smaller binary, faster panics, backtraces via unwind tables (Rust 1.92.0+)
strip = true # Strip symbols for smaller binary