cap-rs 0.0.1

Rust reference implementation of the CAP (CLI Agent Protocol).
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 = "cap-rs"
version = "0.0.1"
authors = ["rsclaw <team@rsclaw.ai>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust reference implementation of the CAP (CLI Agent Protocol)."
homepage = "https://cap-protocol.org"
readme = "README.md"
keywords = [
    "cap",
    "agent",
    "protocol",
    "cli",
]
categories = [
    "development-tools",
    "command-line-utilities",
]
license = "MIT"
repository = "https://github.com/rsclaw-ai/cap-protocol"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
a2a = []
acp = []
default = ["pty"]
full = [
    "pty",
    "stream-json",
    "acp",
    "a2a",
    "grpc",
    "orchestrator",
]
grpc = []
orchestrator = []
pty = [
    "dep:portable-pty",
    "dep:vt100",
    "dep:tokio",
    "dep:async-trait",
    "dep:thiserror",
    "dep:tracing",
]
stream-json = [
    "dep:tokio",
    "dep:tokio-util",
    "dep:async-trait",
    "dep:thiserror",
    "dep:tracing",
    "dep:futures",
]

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

[[example]]
name = "claude_chat"
path = "examples/claude_chat.rs"
required-features = ["stream-json"]

[[example]]
name = "claude_hello"
path = "examples/claude_hello.rs"
required-features = ["stream-json"]

[[example]]
name = "pty_hello"
path = "examples/pty_hello.rs"
required-features = ["pty"]

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

[dependencies.futures]
version = "0.3"
optional = true

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

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"
optional = true

[dependencies.tokio]
version = "1"
features = [
    "process",
    "io-util",
    "rt",
    "rt-multi-thread",
    "macros",
    "sync",
]
optional = true

[dependencies.tokio-util]
version = "0.7"
features = ["codec"]
optional = true

[dependencies.tracing]
version = "0.1"
optional = true

[dependencies.vt100]
version = "0.16"
optional = true

[dev-dependencies.anyhow]
version = "1.0.102"

[dev-dependencies.tokio]
version = "1"
features = ["full"]

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