-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathCargo.toml
More file actions
63 lines (49 loc) · 1.49 KB
/
Cargo.toml
File metadata and controls
63 lines (49 loc) · 1.49 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
[package]
name = "anthropic-proxy"
version = "1.0.1"
edition = "2021"
authors = ["m0n0x41d <zakutnii.ivan@gmail.com>"]
description = "High-performance Anthropic API proxy to OpenAI-compatible endpoints"
license = "MIT"
repository = "https://github.com/m0n0x41d/anthropic-proxy-rs"
[[bin]]
name = "anthropic-proxy"
path = "src/main.rs"
[dependencies]
# Async runtime
tokio = { version = "1.42", features = ["rt-multi-thread", "macros"] }
# Web framework
axum = { version = "0.7", features = ["http2"] }
# HTTP client
reqwest = { version = "0.12", features = ["json", "stream", "rustls-tls"], default-features = false }
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
# Async utilities
futures = "0.3"
tokio-stream = "0.1"
# Observability
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# Error handling
anyhow = "1.0"
thiserror = "2.0"
# Environment variables
dotenvy = "0.15"
# CLI argument parsing
clap = { version = "4.5", features = ["derive"] }
# Daemonize
daemonize = "0.5"
# Server utilities
tower = { version = "0.5", features = ["util"] }
tower-http = { version = "0.6", features = ["trace", "cors"] }
# Async streams
async-stream = "0.3"
bytes = "1.9"
pin-project = "1.1"
[profile.release]
opt-level = "z" # Optimize for size
lto = true # Enable Link Time Optimization
codegen-units = 1 # Better optimization
strip = true # Strip symbols for smaller binary
panic = "abort" # Smaller binary