mirror of
https://github.com/openai/codex.git
synced 2026-04-24 14:45:27 +00:00
chore: remove network-proxy-cli crate (#11158)
## Summary - remove `network-proxy-cli` from the Rust workspace members - delete the dedicated `codex-network-proxy-cli` crate files - remove the stale `codex-network-proxy-cli` package entry from `Cargo.lock` ## Testing - just fmt - cargo test -p codex-network-proxy
This commit is contained in:
12
codex-rs/Cargo.lock
generated
12
codex-rs/Cargo.lock
generated
@@ -1928,18 +1928,6 @@ dependencies = [
|
||||
"url",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "codex-network-proxy-cli"
|
||||
version = "0.0.0"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"clap",
|
||||
"codex-core",
|
||||
"codex-network-proxy",
|
||||
"tokio",
|
||||
"tracing-subscriber",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "codex-ollama"
|
||||
version = "0.0.0"
|
||||
|
||||
@@ -29,7 +29,6 @@ members = [
|
||||
"login",
|
||||
"mcp-server",
|
||||
"network-proxy",
|
||||
"network-proxy-cli",
|
||||
"ollama",
|
||||
"process-hardening",
|
||||
"protocol",
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
[package]
|
||||
name = "codex-network-proxy-cli"
|
||||
edition = "2024"
|
||||
version = { workspace = true }
|
||||
license.workspace = true
|
||||
|
||||
[[bin]]
|
||||
name = "codex-network-proxy"
|
||||
path = "src/main.rs"
|
||||
|
||||
[dependencies]
|
||||
anyhow = { workspace = true }
|
||||
clap = { workspace = true, features = ["derive"] }
|
||||
codex-core = { workspace = true }
|
||||
codex-network-proxy = { path = "../network-proxy" }
|
||||
tokio = { workspace = true, features = ["full"] }
|
||||
tracing-subscriber = { workspace = true, features = ["fmt"] }
|
||||
@@ -1,19 +0,0 @@
|
||||
use anyhow::Result;
|
||||
use clap::Parser;
|
||||
use codex_core::network_proxy_loader;
|
||||
use codex_network_proxy::Args;
|
||||
use codex_network_proxy::NetworkProxy;
|
||||
use codex_network_proxy::NetworkProxyState;
|
||||
use std::sync::Arc;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<()> {
|
||||
tracing_subscriber::fmt::init();
|
||||
|
||||
let args = Args::parse();
|
||||
let (state, reloader) = network_proxy_loader::build_network_proxy_state_and_reloader().await?;
|
||||
let state = Arc::new(NetworkProxyState::with_reloader(state, Arc::new(reloader)));
|
||||
let _ = args;
|
||||
let proxy = NetworkProxy::builder().state(state).build().await?;
|
||||
proxy.run().await?.wait().await
|
||||
}
|
||||
Reference in New Issue
Block a user