mirror of
https://github.com/hanzoai/dev.git
synced 2026-10-25 03:32:32 +00:00
Wholesale-adopt latest upstream codex-rs (97 crates, new architecture: model-provider-info crate, app-server-daemon/transport, code-mode-host, thread-store, file-watcher, etc.). Hanzo-only crates (browser, debug-client, instructions, tui2) preserved on disk (not yet re-added to workspace). Builds clean as upstream (codex bin). Hanzo overlay (dev bin, api.hanzo.ai default, hanzo.id/Claude login, branding) re-applied in following commits. Co-authored-by: Hanzo Dev <[email protected]>
19 lines
814 B
Rust
19 lines
814 B
Rust
//! Minimal Windows exec-server fixture for cross-platform tests.
|
|
//!
|
|
//! Keeping this wrapper separate avoids depending on the full Codex binary's
|
|
//! Windows cross-build, which is not yet supported by the Bazel graph. Linking
|
|
//! only the exec-server also makes the Wine test substantially faster to
|
|
//! iterate on.
|
|
|
|
use codex_exec_server::ExecServerRuntimePaths;
|
|
|
|
#[tokio::main]
|
|
async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
|
|
let current_exe = std::env::current_exe()?;
|
|
// This fixture is always a Windows executable, so it neither invokes nor
|
|
// needs the separate Linux sandbox binary.
|
|
let runtime_paths =
|
|
ExecServerRuntimePaths::new(current_exe, /*codex_linux_sandbox_exe*/ None)?;
|
|
codex_exec_server::run_main("ws://127.0.0.1:0", runtime_paths).await
|
|
}
|