codex-codes 0.145.0

Typed Rust SDK for the OpenAI Codex agent CLI: serde models of the codex app-server JSON-RPC protocol, plus sync and async (Tokio) clients for multi-turn Codex agent sessions, tool calls, and approvals.
Documentation

Build #3970582 2026-07-27 22:20:45

# rustc version rustc 1.99.0-nightly (d0babd8b6 2026-07-15)

# docs.rs version docsrs 0.0.0 (f1b150f0cd76f7cabcd39e1f4790ba771b28b5c4 2026-07-19 )

# build log [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-w" "/opt/rustwide/workdir" "--user" "1001:1001" "a34ecf90e8eb9fe362bb8b13899af14171e9f915fdece395cc6affce4a667e6f" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2026-07-16" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=html-non-static-files\", \"--resource-suffix\", \"-20260715-1.99.0-nightly-d0babd8b6\", \"--static-root-path\", \"/-/rustdoc.static/\", \"--cap-lints\", \"warn\", \"--extern-html-root-takes-precedence\"]" "--offline" "-Zunstable-options" "--config=doc.extern-map.registries.crates-io=\"https://docs.rs/{pkg_name}/{version}/x86_64-unknown-linux-gnu\"" "-Zrustdoc-scrape-examples" "-j6" "--target" "x86_64-unknown-linux-gnu", kill_on_drop: false }` [INFO] [stderr] warning: Rustdoc did not scrape the following examples because they require dev-dependencies: async_client, basic_repl, schema_coverage, sync_client [INFO] [stderr] If you want Rustdoc to scrape these examples, then add `doc-scrape-examples = true` [INFO] [stderr] to the [[example]] target configuration of at least one example. [INFO] [stderr] warning: target filter specified, but no targets matched; this is a no-op [INFO] [stderr] Documenting codex-codes v0.145.0 (/opt/rustwide/workdir) [INFO] [stderr] warning: unresolved link to `ContentBlock` [INFO] [stderr] --> src/messages.rs:10:31 [INFO] [stderr] | [INFO] [stderr] 10 | //! The pattern mirrors the [`ContentBlock`] dispatch in the sibling [INFO] [stderr] | ^^^^^^^^^^^^ no item named `ContentBlock` in scope [INFO] [stderr] | [INFO] [stderr] = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]` [INFO] [stderr] = note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unresolved link to `AbsolutePathBufGuard::new` [INFO] [stderr] --> src/protocol_generated/types.rs:21:88 [INFO] [stderr] | [INFO] [stderr] 21 | ...base path must be set using [AbsolutePathBufGuard::new]. If no base path is set, the deserialization will fail unless the path be... [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ no item named `AbsolutePathBufGuard` in scope [INFO] [stderr] [INFO] [stderr] warning: unresolved link to `crate::CommandExecutionApprovalResponse` [INFO] [stderr] --> src/client_sync.rs:306:63 [INFO] [stderr] | [INFO] [stderr] 306 | /// approval, pass a [`CommandExecutionApprovalResponse`](crate::CommandExecutionApprovalResponse). [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no item named `CommandExecutionApprovalResponse` in module `codex_codes` [INFO] [stderr] [INFO] [stderr] warning: unresolved link to `crate::FileChangeApprovalResponse` [INFO] [stderr] --> src/client_sync.rs:307:73 [INFO] [stderr] | [INFO] [stderr] 307 | /// For file change approval, pass a [`FileChangeApprovalResponse`](crate::FileChangeApprovalResponse). [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no item named `FileChangeApprovalResponse` in module `codex_codes` [INFO] [stderr] [INFO] [stderr] warning: unresolved link to `crate::CommandExecutionApprovalResponse` [INFO] [stderr] --> src/client_async.rs:330:63 [INFO] [stderr] | [INFO] [stderr] 330 | /// approval, pass a [`CommandExecutionApprovalResponse`](crate::CommandExecutionApprovalResponse). [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no item named `CommandExecutionApprovalResponse` in module `codex_codes` [INFO] [stderr] [INFO] [stderr] warning: unresolved link to `crate::FileChangeApprovalResponse` [INFO] [stderr] --> src/client_async.rs:331:73 [INFO] [stderr] | [INFO] [stderr] 331 | /// For file change approval, pass a [`FileChangeApprovalResponse`](crate::FileChangeApprovalResponse). [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no item named `FileChangeApprovalResponse` in module `codex_codes` [INFO] [stderr] [INFO] [stderr] warning: redundant explicit link target [INFO] [stderr] --> src/messages.rs:855:29 [INFO] [stderr] | [INFO] [stderr] 855 | /// [`Error::Protocol`](crate::Error::Protocol). Unknown methods decode to [INFO] [stderr] | ----------------- ^^^^^^^^^^^^^^^^^^^^^^ explicit target is redundant [INFO] [stderr] | | [INFO] [stderr] | because label contains path that resolves to same destination [INFO] [stderr] | [INFO] [stderr] = note: when a link's destination is not specified, [INFO] [stderr] the label is used to resolve intra-doc links [INFO] [stderr] = note: `#[warn(rustdoc::redundant_explicit_links)]` on by default [INFO] [stderr] help: remove explicit link target [INFO] [stderr] | [INFO] [stderr] 855 - /// [`Error::Protocol`](crate::Error::Protocol). Unknown methods decode to [INFO] [stderr] 855 + /// [`Error::Protocol`]. Unknown methods decode to [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: redundant explicit link target [INFO] [stderr] --> src/messages.rs:857:63 [INFO] [stderr] | [INFO] [stderr] 857 | /// `params` don't fit returns [`Error::Deserialization`](crate::Error::Deserialization) [INFO] [stderr] | ------------------------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ explicit target is redundant [INFO] [stderr] | | [INFO] [stderr] | because label contains path that resolves to same destination [INFO] [stderr] | [INFO] [stderr] = note: when a link's destination is not specified, [INFO] [stderr] the label is used to resolve intra-doc links [INFO] [stderr] help: remove explicit link target [INFO] [stderr] | [INFO] [stderr] 857 - /// `params` don't fit returns [`Error::Deserialization`](crate::Error::Deserialization) [INFO] [stderr] 857 + /// `params` don't fit returns [`Error::Deserialization`] [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `codex-codes` (lib doc) generated 8 warnings [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.71s [INFO] [stderr] Generated /opt/rustwide/target/x86_64-unknown-linux-gnu/doc/codex_codes/index.html [INFO] running `Command { std: "docker" "inspect" "a34ecf90e8eb9fe362bb8b13899af14171e9f915fdece395cc6affce4a667e6f", kill_on_drop: false }`