codex-cli-sdk 0.0.1

Rust SDK for the OpenAI Codex CLI
Documentation
# 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"
rust-version = "1.85"
name = "codex-cli-sdk"
version = "0.0.1"
build = false
include = [
    "src/**/*.rs",
    "examples/**/*.rs",
    "Cargo.toml",
    "LICENSE-MIT",
    "LICENSE-APACHE",
    "README.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust SDK for the OpenAI Codex CLI"
readme = "README.md"
keywords = [
    "codex",
    "openai",
    "cli",
    "sdk",
    "ai",
]
categories = [
    "development-tools",
    "api-bindings",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/pomdotdev/codex-cli-sdk"

[features]
default = []
integration = []
testing = []
unstable = []

[lib]
name = "codex_cli_sdk"
path = "src/lib.rs"

[[example]]
name = "01_basic_query"
path = "examples/01_basic_query.rs"

[[example]]
name = "02_streaming"
path = "examples/02_streaming.rs"

[[example]]
name = "03_multi_turn"
path = "examples/03_multi_turn.rs"

[[example]]
name = "04_approval"
path = "examples/04_approval.rs"

[[example]]
name = "05_sandbox"
path = "examples/05_sandbox.rs"

[[example]]
name = "06_structured_output"
path = "examples/06_structured_output.rs"

[[example]]
name = "07_local_provider"
path = "examples/07_local_provider.rs"

[[example]]
name = "08_cancellation"
path = "examples/08_cancellation.rs"

[dependencies.async-stream]
version = "0.3"

[dependencies.async-trait]
version = "0.1"

[dependencies.dirs-next]
version = "2"

[dependencies.futures-core]
version = "0.3"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.tempfile]
version = "3"

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.0"
features = [
    "macros",
    "rt-multi-thread",
    "process",
    "io-util",
    "sync",
    "time",
]

[dependencies.tokio-stream]
version = "0.1"

[dependencies.tokio-util]
version = "0.7"

[dependencies.tracing]
version = "0.1"

[dependencies.typed-builder]
version = "0.20"

[dependencies.which]
version = "7"

[dev-dependencies.tokio]
version = "1.0"
features = ["test-util"]

[target."cfg(unix)".dependencies.nix]
version = "0.29"
features = ["signal"]

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