agent-abstraction 0.3.0

Drive the Claude Code, Codex and GitHub Copilot CLIs headlessly from Rust. One request type, one event stream and one session model across all three, with resume and fork.
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 = "agent-abstraction"
version = "0.3.0"
build = false
exclude = [
    "tests/**",
    ".github/**",
    "AGENTS.md",
    "CLAUDE.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Drive the Claude Code, Codex and GitHub Copilot CLIs headlessly from Rust. One request type, one event stream and one session model across all three, with resume and fork."
readme = "README.md"
keywords = [
    "agent",
    "claude",
    "codex",
    "copilot",
    "llm",
]
categories = [
    "development-tools",
    "api-bindings",
    "asynchronous",
]
license = "MIT"
repository = "https://github.com/pathscale/RustAgentAbstraction"

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

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

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

[dependencies.uuid]
version = "1"
features = [
    "v4",
    "serde",
]

[dev-dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "time",
]

[dev-dependencies.uuid]
version = "1"
features = ["v4"]

[target."cfg(unix)".dependencies.libc]
version = "0.2"

[lints.clippy]
result_large_err = "allow"

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
missing_docs = "warn"
unsafe_code = "deny"