incurs 0.7.2

A declarative CLI framework for Rust with typed commands, agent discovery, HTTP, and MCP
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.88"
name = "incurs"
version = "0.7.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A declarative CLI framework for Rust with typed commands, agent discovery, HTTP, and MCP"
readme = "README.md"
license = "MIT"
repository = "https://github.com/douglance/incurs"
resolver = "2"

[features]
agent-plugins = [
    "yaml",
    "dep:url",
    "dep:http",
]
agent-plugins-mcp = [
    "agent-plugins",
    "dep:reqwest",
    "dep:sse-stream",
    "rmcp/transport-child-process",
    "tokio/process",
    "tokio/rt-multi-thread",
    "tokio/time",
]
cli = [
    "tokio/rt-multi-thread",
    "tokio/io-std",
    "tokio/io-util",
    "tokio/time",
    "tokio/signal",
    "tokio/process",
]
default = [
    "cli",
    "toon",
    "tokens",
]
http = [
    "axum",
    "axum-streams",
    "tower",
    "tower-http",
    "hyper",
    "yaml",
    "tokio/net",
    "dep:http",
]
mcp = []
openapi = [
    "oas3",
    "openapiv3",
    "dep:reqwest",
    "yaml",
]
tokens = ["tiktoken-rs"]
toon = ["toon-format"]
yaml = ["serde_yaml_ng"]

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

[[example]]
name = "agent-plugin-fixture"
path = "examples/agent-plugin-fixture.rs"

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

[[example]]
name = "mcp_conformance"
path = "examples/mcp_conformance.rs"
required-features = ["http"]

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

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

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

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

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

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

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

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

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

[dependencies.axum]
version = "0.8"
optional = true

[dependencies.axum-streams]
version = "0.21"
features = ["json"]
optional = true

[dependencies.dirs]
version = "6"

[dependencies.futures]
version = "0.3"

[dependencies.http]
version = "1"
optional = true

[dependencies.hyper]
version = "1"
optional = true

[dependencies.incurs-macros]
version = "0.6.0"

[dependencies.incurs-mcp-protocol]
version = "0.2.0"

[dependencies.oas3]
version = "0.20"
optional = true

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

[dependencies.reqwest]
version = "0.12"
features = [
    "rustls-tls",
    "stream",
]
optional = true
default-features = false

[dependencies.rmcp]
version = "=3.0.0-beta.5"
features = [
    "client",
    "server",
    "transport-io",
    "transport-streamable-http-client-reqwest",
    "transport-streamable-http-server",
]

[dependencies.schemars]
version = "1"

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

[dependencies.serde_json]
version = "1"

[dependencies.serde_yaml_ng]
version = "0.10"
optional = true

[dependencies.sha2]
version = "0.10"

[dependencies.sse-stream]
version = "0.2.4"
optional = true

[dependencies.thiserror]
version = "2"

[dependencies.tiktoken-rs]
version = "0.6"
optional = true

[dependencies.tokio]
version = "1"
features = [
    "sync",
    "macros",
    "io-std",
    "io-util",
]
default-features = false

[dependencies.tokio-stream]
version = "0.1"

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

[dependencies.toon-format]
version = "0.4"
optional = true

[dependencies.tower]
version = "0.5"
optional = true

[dependencies.tower-http]
version = "0.6"
optional = true

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

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

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

[dev-dependencies.regex-lite]
version = "0.1"

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

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

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