refactor: trim wasm blockers from shared api dependencies

Compile websocket-only exports out of codex-api on wasm and stop enabling Tokio net there by default. Also cut the Tokio process dependency out of wasm builds of codex-git-utils by gating the async git-info module, move codex-utils-image's Tokio dependency to tests, and enable uuid's js RNG feature for wasm in codex-protocol. Native cargo checks passed for codex-api, codex-git-utils, and codex-protocol after the refactor.
This commit is contained in:
Jeremy Lewi
2026-04-13 09:55:19 -07:00
parent ee4138c363
commit 5bc4c5c997
8 changed files with 44 additions and 5 deletions

View File

@@ -1,7 +1,9 @@
pub mod compact;
pub mod memories;
pub mod models;
#[cfg(not(target_arch = "wasm32"))]
pub mod realtime_websocket;
pub mod responses;
#[cfg(not(target_arch = "wasm32"))]
pub mod responses_websocket;
mod session;