codex-helper 0.12.1

A Rust-based local helper / proxy for Codex CLI traffic with multi-provider routing, usage-aware switching, filtering, and session helpers.
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "codex-helper"
version = "0.12.1"
authors = ["Mingzhen Zhuang <superfrankie621@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Rust-based local helper / proxy for Codex CLI traffic with multi-provider routing, usage-aware switching, filtering, and session helpers."
homepage = "https://github.com/Latias94/codex-helper"
readme = "README_EN.md"
keywords = [
    "codex",
    "proxy",
    "cli",
    "ai",
]
categories = [
    "command-line-utilities",
    "development-tools",
    "asynchronous",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Latias94/codex-helper"

[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-{ target }.tar.xz"
pkg-fmt = "txz"
bin-dir = "{ name }-{ target }/{ bin }{ binary-ext }"

[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-{ target }.zip"
pkg-fmt = "zip"
bin-dir = "{ bin }{ binary-ext }"

[features]
gui = ["dep:codex-helper-gui"]

[[bin]]
name = "ch"
path = "src/main.rs"

[[bin]]
name = "codex-helper"
path = "src/main.rs"

[[bin]]
name = "codex-helper-gui"
path = "src/bin/codex-helper-gui.rs"
required-features = ["gui"]

[dependencies.anyhow]
version = "1.0.100"

[dependencies.atty]
version = "0.2.14"

[dependencies.axum]
version = "0.8.7"
features = [
    "http2",
    "macros",
    "ws",
]

[dependencies.base64]
version = "0.22.1"

[dependencies.clap]
version = "4.5.53"
features = ["derive"]

[dependencies.codex-helper-core]
version = "0.12.1"

[dependencies.codex-helper-gui]
version = "0.12.1"
optional = true

[dependencies.codex-helper-tui]
version = "0.12.1"

[dependencies.dirs]
version = "6.0.0"

[dependencies.futures-util]
version = "0.3.31"

[dependencies.humantime]
version = "2.1.0"

[dependencies.hyper]
version = "1.8.1"
features = ["full"]

[dependencies.owo-colors]
version = "4.2.3"

[dependencies.rand]
version = "0.8.5"

[dependencies.regex]
version = "1.12.2"

[dependencies.reqwest]
version = "0.13.1"
features = [
    "json",
    "stream",
]

[dependencies.serde]
version = "1.0.228"
features = ["derive"]

[dependencies.serde_json]
version = "1.0.145"

[dependencies.thiserror]
version = "2.0.17"

[dependencies.tokio]
version = "1.48.0"
features = [
    "macros",
    "rt-multi-thread",
    "signal",
    "fs",
]

[dependencies.toml]
version = "0.8"

[dependencies.tracing]
version = "0.1.41"

[dependencies.tracing-appender]
version = "0.2.3"

[dependencies.tracing-subscriber]
version = "0.3.20"
features = ["env-filter"]

[dependencies.uuid]
version = "1.18.1"
features = ["v4"]

[dev-dependencies.pretty_assertions]
version = "1.4.1"

[target."cfg(windows)".dependencies.windows-sys]
version = "0.59.0"
features = [
    "Win32_Foundation",
    "Win32_System_Threading",
    "Win32_Security",
]

[target."cfg(windows)".dependencies.winreg]
version = "0.52.0"

[profile.dist]
lto = "thin"
inherits = "release"