Files
zerogravity/Cargo.toml
Nikketryhard 134126358f fix: cross-platform support + auto token from state.vscdb
- User-Agent now matches actual OS (macOS/Windows/Linux)
- grep -oP replaced with grep -oE for macOS BSD compat
- Port-killer gated with cfg(unix)/cfg(windows)
- zg binary: macOS uses launchctl, Windows uses schtasks
- Data dir mismatch fixed in mitm-redirect.sh
- Windows setup-windows.ps1 ProjectDir fixed
- README: token path, prerequisites updated
- setup-linux.sh: pre-flight dependency checks
- OAuth token auto-read from Antigravity state.vscdb
- Version bump to 1.0.1
2026-02-18 04:09:41 -06:00

59 lines
1.4 KiB
TOML

[package]
name = "zerogravity"
version = "1.0.1"
edition = "2021"
license = "MIT"
description = "OpenAI-compatible proxy for Google Antigravity"
repository = "https://github.com/NikkeTryHard/zerogravity"
authors = ["NikkeTryHard"]
[[bin]]
name = "zerogravity"
path = "src/main.rs"
[[bin]]
name = "zg"
path = "src/bin/zg.rs"
[dependencies]
axum = { version = "0.8", features = ["json"] }
tokio = { version = "1", features = ["full"] }
wreq = { version = "6.0.0-rc.28", features = ["json"] }
wreq-util = "3.0.0-rc.10"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
uuid = { version = "1", features = ["v4"] }
regex = "1"
async-stream = "0.3"
tower-http = { version = "0.6", features = ["cors"] }
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
clap = { version = "4", features = ["derive"] }
rand = "0.8"
flate2 = "1"
brotli = "7"
chrono = "0.4"
# MITM proxy dependencies
rcgen = "0.13"
rustls = { version = "0.23", features = ["ring"] }
tokio-rustls = "0.26"
rustls-native-certs = "0.8"
rustls-pemfile = "2"
time = "0.3"
base64 = "0.22"
httparse = "1"
# HTTP/2 + gRPC interception
hyper = { version = "1", features = ["http2", "client", "server"] }
hyper-util = { version = "0.1", features = ["tokio"] }
http-body-util = "0.1"
http = "1"
bytes = "1"
tokio-stream = "0.1"
[profile.release]
opt-level = "z"
lto = true
strip = true