unified-agent-api-claude-code 0.2.2

Async wrapper around the Claude Code CLI for non-interactive prompting
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 = "2021"
rust-version = "1.78"
name = "unified-agent-api-claude-code"
version = "0.2.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Async wrapper around the Claude Code CLI for non-interactive prompting"
homepage = "https://github.com/atomize-hq/unified-agent-api"
documentation = "https://docs.rs/unified-agent-api-claude-code"
readme = "README.md"
keywords = [
    "claude",
    "cli",
    "wrapper",
    "agent",
]
categories = [
    "api-bindings",
    "command-line-interface",
]
license-file = "LICENSE"
repository = "https://github.com/atomize-hq/unified-agent-api"

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

[[bin]]
name = "fake_claude_stream_json"
path = "src/bin/fake_claude_stream_json.rs"

[[example]]
name = "claude_home"
path = "examples/claude_home.rs"

[[example]]
name = "doctor"
path = "examples/doctor.rs"

[[example]]
name = "env_binary"
path = "examples/env_binary.rs"

[[example]]
name = "help_version"
path = "examples/help_version.rs"

[[example]]
name = "mcp_list"
path = "examples/mcp_list.rs"

[[example]]
name = "mcp_manage"
path = "examples/mcp_manage.rs"

[[example]]
name = "mirror_output"
path = "examples/mirror_output.rs"

[[example]]
name = "multi_turn_continue"
path = "examples/multi_turn_continue.rs"

[[example]]
name = "multi_turn_fork"
path = "examples/multi_turn_fork.rs"

[[example]]
name = "multi_turn_no_session_persistence"
path = "examples/multi_turn_no_session_persistence.rs"

[[example]]
name = "multi_turn_resume"
path = "examples/multi_turn_resume.rs"

[[example]]
name = "plugin_manage"
path = "examples/plugin_manage.rs"

[[example]]
name = "print_agents"
path = "examples/print_agents.rs"

[[example]]
name = "print_allow_dangerously_skip_permissions"
path = "examples/print_allow_dangerously_skip_permissions.rs"

[[example]]
name = "print_betas"
path = "examples/print_betas.rs"

[[example]]
name = "print_chrome_flags"
path = "examples/print_chrome_flags.rs"

[[example]]
name = "print_debug_file"
path = "examples/print_debug_file.rs"

[[example]]
name = "print_disable_slash_commands"
path = "examples/print_disable_slash_commands.rs"

[[example]]
name = "print_file_resources"
path = "examples/print_file_resources.rs"

[[example]]
name = "print_from_pr"
path = "examples/print_from_pr.rs"

[[example]]
name = "print_ide"
path = "examples/print_ide.rs"

[[example]]
name = "print_include_partial_messages"
path = "examples/print_include_partial_messages.rs"

[[example]]
name = "print_json"
path = "examples/print_json.rs"

[[example]]
name = "print_json_schema"
path = "examples/print_json_schema.rs"

[[example]]
name = "print_mcp_config"
path = "examples/print_mcp_config.rs"

[[example]]
name = "print_model_fallback_budget"
path = "examples/print_model_fallback_budget.rs"

[[example]]
name = "print_plugin_dirs"
path = "examples/print_plugin_dirs.rs"

[[example]]
name = "print_session_id"
path = "examples/print_session_id.rs"

[[example]]
name = "print_settings_sources"
path = "examples/print_settings_sources.rs"

[[example]]
name = "print_stdin_text"
path = "examples/print_stdin_text.rs"

[[example]]
name = "print_stream_json"
path = "examples/print_stream_json.rs"

[[example]]
name = "print_stream_json_extract_text"
path = "examples/print_stream_json_extract_text.rs"

[[example]]
name = "print_stream_json_replay_user_messages"
path = "examples/print_stream_json_replay_user_messages.rs"

[[example]]
name = "print_system_prompts"
path = "examples/print_system_prompts.rs"

[[example]]
name = "print_text"
path = "examples/print_text.rs"

[[example]]
name = "print_tools_disallowed"
path = "examples/print_tools_disallowed.rs"

[[example]]
name = "print_tools_safe_bash"
path = "examples/print_tools_safe_bash.rs"

[[example]]
name = "print_verbose"
path = "examples/print_verbose.rs"

[[example]]
name = "setup_token_flow"
path = "examples/setup_token_flow.rs"

[[example]]
name = "update"
path = "examples/update.rs"

[[test]]
name = "claude_home_env_flow"
path = "tests/claude_home_env_flow.rs"

[[test]]
name = "doctor_enter"
path = "tests/doctor_enter.rs"

[[test]]
name = "examples_manifest"
path = "tests/examples_manifest.rs"

[[test]]
name = "help_version_argv"
path = "tests/help_version_argv.rs"

[[test]]
name = "help_version_flow"
path = "tests/help_version_flow.rs"

[[test]]
name = "mcp_argv"
path = "tests/mcp_argv.rs"

[[test]]
name = "plugin_argv"
path = "tests/plugin_argv.rs"

[[test]]
name = "print_flags_manifest"
path = "tests/print_flags_manifest.rs"

[[test]]
name = "print_flows_manifest"
path = "tests/print_flows_manifest.rs"

[[test]]
name = "print_resume_value_flow"
path = "tests/print_resume_value_flow.rs"

[[test]]
name = "request_argv"
path = "tests/request_argv.rs"

[[test]]
name = "root_flags_argv"
path = "tests/root_flags_argv.rs"

[[test]]
name = "run_command_timeout_reaps_child"
path = "tests/run_command_timeout_reaps_child.rs"

[[test]]
name = "setup_token_flow"
path = "tests/setup_token_flow.rs"

[[test]]
name = "setup_token_no_url_flow"
path = "tests/setup_token_no_url_flow.rs"

[[test]]
name = "setup_token_timeout_reaps_child"
path = "tests/setup_token_timeout_reaps_child.rs"

[[test]]
name = "stream_json"
path = "tests/stream_json.rs"

[[test]]
name = "stream_json_contract"
path = "tests/stream_json_contract.rs"

[[test]]
name = "stream_json_session_id_accessor"
path = "tests/stream_json_session_id_accessor.rs"

[[test]]
name = "stream_json_streaming"
path = "tests/stream_json_streaming.rs"

[[test]]
name = "support_paths"
path = "tests/support_paths.rs"

[[test]]
name = "update_argv"
path = "tests/update_argv.rs"

[[test]]
name = "update_flow"
path = "tests/update_flow.rs"

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

[dependencies.portable-pty]
version = "0.9"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "1.0"

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

[dependencies.tracing]
version = "0.1"

[dev-dependencies.futures-util]
version = "0.3"

[dev-dependencies.tempfile]
version = "3.12"