[package]
edition = "2021"
rust-version = "1.80"
name = "kimi-wire"
version = "0.3.0"
authors = ["Evgeny Khodzitsky"]
build = false
exclude = [
".git",
".omc",
"target",
"fuzz/target",
"cliff.toml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Typed Rust client for the Kimi Code CLI Wire protocol"
readme = "README.md"
keywords = [
"kimi",
"wire",
"jsonrpc",
"cli",
"agent",
]
categories = [
"network-programming",
"command-line-utilities",
]
license = "MIT"
repository = "https://github.com/ekhodzitsky/kimi-wire"
[features]
default = [
"process",
"redact",
]
process = [
"dep:tokio-util",
"dep:tokio-stream",
"dep:tracing",
]
redact = ["dep:regex"]
[lib]
name = "kimi_wire"
path = "src/lib.rs"
[[example]]
name = "basic_prompt"
path = "examples/basic_prompt.rs"
required-features = ["process"]
[[example]]
name = "mock_test"
path = "examples/mock_test.rs"
required-features = []
[[test]]
name = "bidirectional_test"
path = "tests/bidirectional_test.rs"
[[test]]
name = "builder_test"
path = "tests/builder_test.rs"
[[test]]
name = "child_process_test"
path = "tests/child_process_test.rs"
[[test]]
name = "client_test"
path = "tests/client_test.rs"
[[test]]
name = "error_test"
path = "tests/error_test.rs"
[[test]]
name = "property_test"
path = "tests/property_test.rs"
[[test]]
name = "roundtrip_test"
path = "tests/roundtrip_test.rs"
[[test]]
name = "transport_test"
path = "tests/transport_test.rs"
[[bench]]
name = "serde_roundtrip"
path = "benches/serde_roundtrip.rs"
harness = false
[dependencies.regex]
version = "1.11"
optional = true
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
features = ["preserve_order"]
[dependencies.thiserror]
version = "2.0"
[dependencies.tokio]
version = "1.44"
features = [
"fs",
"io-std",
"io-util",
"macros",
"net",
"process",
"rt",
"rt-multi-thread",
"signal",
"sync",
"time",
]
[dependencies.tokio-stream]
version = "0.1"
optional = true
[dependencies.tokio-util]
version = "0.7"
features = ["codec"]
optional = true
[dependencies.tracing]
version = "0.1"
optional = true
[dev-dependencies.criterion]
version = "0.5"
features = [
"async_tokio",
"html_reports",
]
default-features = false
[dev-dependencies.proptest]
version = "1.6"
[dev-dependencies.tempfile]
version = "3.14"
[dev-dependencies.tokio-stream]
version = "0.1"
[dev-dependencies.tokio-util]
version = "0.7"
features = ["codec"]
[dev-dependencies.tracing]
version = "0.1"
[dev-dependencies.tracing-subscriber]
version = "0.3"