claude-code-acp-rs 0.1.21

Use Claude Code from any ACP client - A Rust implementation of Claude Code ACP Agent
# 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.90"
name = "claude-code-acp-rs"
version = "0.1.21"
authors = ["guochao.song <soddygo@qq.com>"]
build = "build.rs"
include = [
    "src/**/*.rs",
    "build.rs",
    "Cargo.toml",
    "LICENSE",
    "README.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Use Claude Code from any ACP client - A Rust implementation of Claude Code ACP Agent"
homepage = "https://github.com/soddygo/claude-code-acp-rs"
documentation = "https://docs.rs/claude-code-acp-rs"
readme = "README.md"
keywords = [
    "claude",
    "acp",
    "agent",
    "ai",
    "anthropic",
]
categories = [
    "development-tools",
    "api-bindings",
    "asynchronous",
]
license = "MIT"
repository = "https://github.com/soddygo/claude-code-acp-rs"

[features]
bundled-cli = ["claude-code-agent-sdk/bundled-cli"]
default = [
    "otel",
    "sacp-flush",
    "bundled-cli",
]
otel = [
    "opentelemetry",
    "opentelemetry_sdk",
    "opentelemetry-otlp",
    "tracing-opentelemetry",
]
sacp-flush = []
verbose-debug = []

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

[[bin]]
name = "claude-code-acp-rs"
path = "src/main.rs"

[dependencies.agent-client-protocol-schema]
version = "0.10.8"
features = [
    "unstable_session_model",
    "unstable_session_fork",
    "unstable_session_resume",
    "unstable_session_list",
    "unstable_session_usage",
]

[dependencies.anyhow]
version = "1.0"

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

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

[dependencies.base64]
version = "0.22.1"

[dependencies.chrono]
version = "0.4"

[dependencies.clap]
version = "4.5"
features = [
    "derive",
    "env",
]

[dependencies.claude-code-agent-sdk]
version = "0.1.38"
features = []

[dependencies.dashmap]
version = "6.1"

[dependencies.dirs]
version = "6.0"

[dependencies.futures]
version = "0.3"

[dependencies.globset]
version = "0.4"

[dependencies.notify]
version = "8"

[dependencies.notify-debouncer-mini]
version = "0.7"

[dependencies.once_cell]
version = "1.20"

[dependencies.opentelemetry]
version = "0.31"
optional = true

[dependencies.opentelemetry-otlp]
version = "0.31"
features = [
    "grpc-tonic",
    "http-proto",
]
optional = true

[dependencies.opentelemetry_sdk]
version = "0.31"
features = ["rt-tokio"]
optional = true

[dependencies.pin-project]
version = "1.1"

[dependencies.process-wrap]
version = "9.0"
features = ["tokio1"]

[dependencies.regex]
version = "1.12"

[dependencies.sacp]
version = "10.1.0"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.similar]
version = "2.7"

[dependencies.thiserror]
version = "2.0"

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

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

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-opentelemetry]
version = "0.32"
optional = true

[dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "json",
]

[dependencies.uuid]
version = "1.20"
features = ["v4"]

[dependencies.walkdir]
version = "2.5"

[dev-dependencies.pretty_assertions]
version = "1"

[dev-dependencies.serial_test]
version = "3"

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

[dev-dependencies.tokio-test]
version = "0.4"

[lints.clippy]
collapsible_if = "allow"
doc_markdown = "allow"
format_push_string = "allow"
manual_non_exhaustive = "allow"
map_unwrap_or = "allow"
match_same_arms = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_pass_by_value = "allow"
redundant_closure_for_method_calls = "allow"
return_self_not_must_use = "allow"
similar_names = "allow"
struct_field_names = "allow"
too_many_lines = "allow"
trivially_copy_pass_by_ref = "allow"
uninlined_format_args = "allow"
unnecessary_literal_bound = "allow"
unused_self = "allow"
wildcard_imports = "allow"

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

[lints.rust]
let-underscore = "warn"
missing_debug_implementations = "warn"

[lints.rust.future_incompatible]
level = "warn"
priority = -1

[lints.rust.nonstandard_style]
level = "warn"
priority = -1

[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1

[lints.rust.unused]
level = "warn"
priority = -1

[profile.dist]
lto = "thin"
inherits = "release"